summaryrefslogtreecommitdiff
path: root/src/passes/Print.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/passes/Print.cpp')
-rw-r--r--src/passes/Print.cpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/passes/Print.cpp b/src/passes/Print.cpp
index 2aacb513b..c9ef1a224 100644
--- a/src/passes/Print.cpp
+++ b/src/passes/Print.cpp
@@ -2203,6 +2203,24 @@ struct PrintExpressionContents
WASM_UNREACHABLE("invalid ref.is_*");
}
}
+ void visitStringNew(StringNew* curr) {
+ switch (curr->op) {
+ case StringNewUTF8:
+ printMedium(o, "string.new_wtf8 utf8");
+ break;
+ case StringNewWTF8:
+ printMedium(o, "string.new_wtf8 wtf8");
+ break;
+ case StringNewReplace:
+ printMedium(o, "string.new_wtf8 replace");
+ break;
+ case StringNewWTF16:
+ printMedium(o, "string.new_wtf16");
+ break;
+ default:
+ WASM_UNREACHABLE("invalid string.new*");
+ }
+ }
};
// Prints an expression in s-expr format, including both the