diff options
author | Alon Zakai <azakai@google.com> | 2022-07-12 12:41:58 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-12 12:41:58 -0700 |
commit | 65875f3fdbf09c46aa63f54337662d404e4f1c40 (patch) | |
tree | 9af8ac774845862fba89635bbebdeafd1870af58 /src/wasm-binary.h | |
parent | f6a2a71a8b7ec52e3e4a9b7fdb4d2231a0129149 (diff) | |
download | binaryen-65875f3fdbf09c46aa63f54337662d404e4f1c40.tar.gz binaryen-65875f3fdbf09c46aa63f54337662d404e4f1c40.tar.bz2 binaryen-65875f3fdbf09c46aa63f54337662d404e4f1c40.zip |
[Strings] string.as (#4797)
Diffstat (limited to 'src/wasm-binary.h')
-rw-r--r-- | src/wasm-binary.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/wasm-binary.h b/src/wasm-binary.h index 97f6bc24e..8a03cb8af 100644 --- a/src/wasm-binary.h +++ b/src/wasm-binary.h @@ -1147,6 +1147,9 @@ enum ASTNodes { StringConcat = 0x88, StringEq = 0x89, StringIsUSV = 0x8a, + StringAsWTF8 = 0x90, + StringAsWTF16 = 0x98, + StringAsIter = 0xa0, }; enum MemoryAccess { @@ -1733,6 +1736,7 @@ public: bool maybeVisitStringEncode(Expression*& out, uint32_t code); bool maybeVisitStringConcat(Expression*& out, uint32_t code); bool maybeVisitStringEq(Expression*& out, uint32_t code); + bool maybeVisitStringAs(Expression*& out, uint32_t code); void visitSelect(Select* curr, uint8_t code); void visitReturn(Return* curr); void visitMemorySize(MemorySize* curr); |