diff options
author | Alon Zakai <azakai@google.com> | 2021-09-23 12:36:17 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-23 12:36:17 -0700 |
commit | 675295888609a688ee81dc9ad2024169da5aa7ed (patch) | |
tree | 796dc5d72867300f97ab234e40729ae6b7db2875 /src/wasm-binary.h | |
parent | 6d46b436b54bdae040a64bd9dafb01a7f53a8233 (diff) | |
download | binaryen-675295888609a688ee81dc9ad2024169da5aa7ed.tar.gz binaryen-675295888609a688ee81dc9ad2024169da5aa7ed.tar.bz2 binaryen-675295888609a688ee81dc9ad2024169da5aa7ed.zip |
[Wasm GC] Implement static (rtt-free) StructNew, ArrayNew, ArrayInit (#4172)
See #4149
This modifies the test added in #4163 which used static casts on
dynamically-created structs and arrays. That was technically not
valid (as we won't want users to "mix" the two forms). This makes that
test 100% static, which both fixes the test and gives test coverage
to the new instructions added here.
Diffstat (limited to 'src/wasm-binary.h')
-rw-r--r-- | src/wasm-binary.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/wasm-binary.h b/src/wasm-binary.h index 0e4b4b873..057a2a981 100644 --- a/src/wasm-binary.h +++ b/src/wasm-binary.h @@ -1052,6 +1052,8 @@ enum ASTNodes { StructGetS = 0x04, StructGetU = 0x05, StructSet = 0x06, + StructNew = 0x07, + StructNewDefault = 0x08, ArrayNewWithRtt = 0x11, ArrayNewDefaultWithRtt = 0x12, ArrayGet = 0x13, @@ -1061,6 +1063,9 @@ enum ASTNodes { ArrayLen = 0x17, ArrayCopy = 0x18, ArrayInit = 0x19, + ArrayInitStatic = 0x1a, + ArrayNew = 0x1b, + ArrayNewDefault = 0x1c, I31New = 0x20, I31GetS = 0x21, I31GetU = 0x22, |