diff options
author | Alon Zakai <azakai@google.com> | 2022-07-21 10:41:39 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-21 10:41:39 -0700 |
commit | 58471ad7e2e5d5ce89830620c2b8fd6a2602be71 (patch) | |
tree | 77c042042737a11773f71c4788e21af12255f2d5 /src/passes/Print.cpp | |
parent | 880e8352ee1fff828d15da5a7fe3a7932f577ef8 (diff) | |
download | binaryen-58471ad7e2e5d5ce89830620c2b8fd6a2602be71.tar.gz binaryen-58471ad7e2e5d5ce89830620c2b8fd6a2602be71.tar.bz2 binaryen-58471ad7e2e5d5ce89830620c2b8fd6a2602be71.zip |
[Strings] GC variants for string.encode (#4817)
Diffstat (limited to 'src/passes/Print.cpp')
-rw-r--r-- | src/passes/Print.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/passes/Print.cpp b/src/passes/Print.cpp index 440ff114f..a6a0f7919 100644 --- a/src/passes/Print.cpp +++ b/src/passes/Print.cpp @@ -2330,6 +2330,15 @@ struct PrintExpressionContents case StringEncodeWTF16: printMedium(o, "string.encode_wtf16"); break; + case StringEncodeUTF8Array: + printMedium(o, "string.encode_wtf8_array utf8"); + break; + case StringEncodeWTF8Array: + printMedium(o, "string.encode_wtf8_array wtf8"); + break; + case StringEncodeWTF16Array: + printMedium(o, "string.encode_wtf16_array"); + break; default: WASM_UNREACHABLE("invalid string.encode*"); } |