diff options
author | Thomas Lively <tlively@google.com> | 2023-09-13 10:13:33 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-13 15:13:33 +0000 |
commit | 3ca8c21b89c207ce5d872e9cb2d410a869522d38 (patch) | |
tree | 10757c566326c6894512508a71719ed3b4c594fd /src/wasm-binary.h | |
parent | bd497d3def1e2c702e29521f097be26024a8253e (diff) | |
download | binaryen-3ca8c21b89c207ce5d872e9cb2d410a869522d38.tar.gz binaryen-3ca8c21b89c207ce5d872e9cb2d410a869522d38.tar.bz2 binaryen-3ca8c21b89c207ce5d872e9cb2d410a869522d38.zip |
Replace I31New with RefI31 everywhere (#5930)
Globally replace the source string "I31New" with "RefI31" in preparation for
renaming the instruction from "i31.new" to "ref.i31", as implemented in the spec
in https://github.com/WebAssembly/gc/pull/422. This would be NFC, except that it
also changes the string in the external-facing C APIs.
A follow-up PR will make the corresponding behavioral change.
Diffstat (limited to 'src/wasm-binary.h')
-rw-r--r-- | src/wasm-binary.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/wasm-binary.h b/src/wasm-binary.h index 9a857ca14..8c8ae70e6 100644 --- a/src/wasm-binary.h +++ b/src/wasm-binary.h @@ -1188,7 +1188,7 @@ enum ASTNodes { BrOnCastFail = 0x19, ExternInternalize = 0x1a, ExternExternalize = 0x1b, - I31New = 0x1c, + RefI31 = 0x1c, I31GetS = 0x1d, I31GetU = 0x1e, #else @@ -1209,7 +1209,7 @@ enum ASTNodes { ArrayNew = 0x1b, ArrayNewDefault = 0x1c, ArrayNewData = 0x1d, - I31New = 0x20, + RefI31 = 0x20, I31GetS = 0x21, I31GetU = 0x22, RefTest = 0x40, @@ -1838,7 +1838,7 @@ public: bool maybeVisitMemoryFill(Expression*& out, uint32_t code); bool maybeVisitTableSize(Expression*& out, uint32_t code); bool maybeVisitTableGrow(Expression*& out, uint32_t code); - bool maybeVisitI31New(Expression*& out, uint32_t code); + bool maybeVisitRefI31(Expression*& out, uint32_t code); bool maybeVisitI31Get(Expression*& out, uint32_t code); bool maybeVisitRefTest(Expression*& out, uint32_t code); bool maybeVisitRefCast(Expression*& out, uint32_t code); |