diff options
author | Thomas Lively <tlively@google.com> | 2023-05-19 13:47:32 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-19 11:47:32 -0700 |
commit | b7b1d0df29df14634d2c680d1d2c351b624b4fbb (patch) | |
tree | 808bd70c6502ba2ba3ef275048c89deaedbe5077 /src/wasm-binary.h | |
parent | e42a58696059fd1cadcf25e10223b979214984b3 (diff) | |
download | binaryen-b7b1d0df29df14634d2c680d1d2c351b624b4fbb.tar.gz binaryen-b7b1d0df29df14634d2c680d1d2c351b624b4fbb.tar.bz2 binaryen-b7b1d0df29df14634d2c680d1d2c351b624b4fbb.zip |
Update br_on_cast binary and text format (#5734)
The final versions of the br_on_cast and br_on_cast_fail instructions have two
reference type annotations: one for the input type and one for the cast target
type. In the binary format, this is represented as a flags byte followed by two
encoded heap types. Since these instructions have been in flux for a while, do
not attempt to maintain backward compatibility with older versions of the
instructions. Instead, upgrade all of the tests at once to use the new versions
of the instructions. Drop some binary tests of deprecated instruction encodings
that would be more effort to update than they're worth.
Diffstat (limited to 'src/wasm-binary.h')
-rw-r--r-- | src/wasm-binary.h | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/wasm-binary.h b/src/wasm-binary.h index d1b7b4923..0a1fad332 100644 --- a/src/wasm-binary.h +++ b/src/wasm-binary.h @@ -1119,16 +1119,12 @@ enum ASTNodes { I31GetU = 0x22, RefTest = 0x40, RefCast = 0x41, - BrOnCast = 0x42, - BrOnCastFail = 0x43, + BrOnCast = 0x4e, + BrOnCastFail = 0x4f, RefTestStatic = 0x44, RefCastStatic = 0x45, - BrOnCastStatic = 0x46, - BrOnCastStaticFail = 0x47, RefTestNull = 0x48, RefCastNull = 0x49, - BrOnCastNull = 0x4a, - BrOnCastFailNull = 0x4b, RefCastNop = 0x4c, RefAsFunc = 0x58, RefAsI31 = 0x5a, |