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/wasm-ir-builder.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/wasm/wasm-ir-builder.cpp') diff --git a/src/wasm/wasm-ir-builder.cpp b/src/wasm/wasm-ir-builder.cpp index 7e163fe4e..6445cc3c9 100644 --- a/src/wasm/wasm-ir-builder.cpp +++ b/src/wasm/wasm-ir-builder.cpp @@ -661,10 +661,10 @@ Result<> IRBuilder::makeRefEq() { // Result<> IRBuilder::makeTupleExtract() {} -Result<> IRBuilder::makeI31New() { - I31New curr; - CHECK_ERR(visitI31New(&curr)); - push(builder.makeI31New(curr.value)); +Result<> IRBuilder::makeRefI31() { + RefI31 curr; + CHECK_ERR(visitRefI31(&curr)); + push(builder.makeRefI31(curr.value)); return Ok{}; } -- cgit v1.2.3