summaryrefslogtreecommitdiff
path: root/src/passes
diff options
context:
space:
mode:
authorAlon Zakai <azakai@google.com>2023-02-03 12:32:25 -0800
committerGitHub <noreply@github.com>2023-02-03 12:32:25 -0800
commit90c726a606cf8f99307a41d8f889de4e1221c4f8 (patch)
tree8dcecebb36a2aa437a8abbebd8e225aeb4a516cb /src/passes
parent42b859f01df94dfffb01258b2305df8ec4d05304 (diff)
downloadbinaryen-90c726a606cf8f99307a41d8f889de4e1221c4f8.tar.gz
binaryen-90c726a606cf8f99307a41d8f889de4e1221c4f8.tar.bz2
binaryen-90c726a606cf8f99307a41d8f889de4e1221c4f8.zip
[Strings] Add experimental string.hash instruction (#5480)
See WebAssembly/stringref#60
Diffstat (limited to 'src/passes')
-rw-r--r--src/passes/Print.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/passes/Print.cpp b/src/passes/Print.cpp
index 8c112d6a5..f7cfb7746 100644
--- a/src/passes/Print.cpp
+++ b/src/passes/Print.cpp
@@ -2404,6 +2404,9 @@ struct PrintExpressionContents
case StringMeasureWTF16View:
printMedium(o, "stringview_wtf16.length");
break;
+ case StringMeasureHash:
+ printMedium(o, "string.hash");
+ break;
default:
WASM_UNREACHABLE("invalid string.measure*");
}