diff options
author | Alon Zakai <azakai@google.com> | 2022-07-18 15:50:22 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-18 22:50:22 +0000 |
commit | 6bac16b3895d6d94007fcdc5c098d52ba2a408e5 (patch) | |
tree | 4bd055a212e48e5e8d65cc601174d185d2937eb8 /src/passes/Print.cpp | |
parent | 2b31aeb98a0fc8a5a505b3998d44990ed14e8c38 (diff) | |
download | binaryen-6bac16b3895d6d94007fcdc5c098d52ba2a408e5.tar.gz binaryen-6bac16b3895d6d94007fcdc5c098d52ba2a408e5.tar.bz2 binaryen-6bac16b3895d6d94007fcdc5c098d52ba2a408e5.zip |
[Strings] stringview_wtf16.length (#4809)
This measures the length of a view, so it seems simplest to make it a
sub-operation of the existing measure instruction.
Diffstat (limited to 'src/passes/Print.cpp')
-rw-r--r-- | src/passes/Print.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/passes/Print.cpp b/src/passes/Print.cpp index 526059a66..208833357 100644 --- a/src/passes/Print.cpp +++ b/src/passes/Print.cpp @@ -2256,6 +2256,9 @@ struct PrintExpressionContents case StringMeasureIsUSV: printMedium(o, "string.is_usv_sequence"); break; + case StringMeasureWTF16View: + printMedium(o, "stringview_wtf16.length"); + break; default: WASM_UNREACHABLE("invalid string.measure*"); } |