From 3ca8c21b89c207ce5d872e9cb2d410a869522d38 Mon Sep 17 00:00:00 2001 From: Thomas Lively Date: Wed, 13 Sep 2023 10:13:33 -0500 Subject: 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. --- src/wasm-binary.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/wasm-binary.h') 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); -- cgit v1.2.3