From 81f8f770a1b2adc027cbbbd981781d2ee6952e54 Mon Sep 17 00:00:00 2001 From: Jérôme Vouillon Date: Mon, 8 Jul 2024 16:23:00 -0400 Subject: Rename external conversion instructions (#6716) Rename instructions `extern.internalize` into `any.convert_extern` and `extern.externalize` into `extern.convert_any` to follow more closely the spec. This was changed in https://github.com/WebAssembly/gc/issues/432. The legacy name is still accepted in text inputs and in the C and JS APIs. --- test/spec/ref_test.wast | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'test/spec') diff --git a/test/spec/ref_test.wast b/test/spec/ref_test.wast index 13bc34878..d02836106 100644 --- a/test/spec/ref_test.wast +++ b/test/spec/ref_test.wast @@ -19,8 +19,8 @@ (table.set $ta (i32.const 3) (ref.i31 (i32.const 7))) (table.set $ta (i32.const 4) (struct.new_default $st)) (table.set $ta (i32.const 5) (array.new_default $at (i32.const 0))) - (table.set $ta (i32.const 6) (extern.internalize (extern.externalize (ref.i31 (i32.const 0))))) - (table.set $ta (i32.const 7) (extern.internalize (ref.null extern))) + (table.set $ta (i32.const 6) (any.convert_extern (extern.convert_any (ref.i31 (i32.const 0))))) + (table.set $ta (i32.const 7) (any.convert_extern (ref.null extern))) (table.set $tf (i32.const 0) (ref.null nofunc)) (table.set $tf (i32.const 1) (ref.null func)) @@ -28,10 +28,10 @@ (table.set $te (i32.const 0) (ref.null noextern)) (table.set $te (i32.const 1) (ref.null extern)) - (table.set $te (i32.const 2) (extern.externalize (ref.i31 (i32.const 0)))) - (table.set $te (i32.const 3) (extern.externalize (ref.i31 (i32.const 8)))) - (table.set $te (i32.const 4) (extern.externalize (struct.new_default $st))) - (table.set $te (i32.const 5) (extern.externalize (ref.null any))) + (table.set $te (i32.const 2) (extern.convert_any (ref.i31 (i32.const 0)))) + (table.set $te (i32.const 3) (extern.convert_any (ref.i31 (i32.const 8)))) + (table.set $te (i32.const 4) (extern.convert_any (struct.new_default $st))) + (table.set $te (i32.const 5) (extern.convert_any (ref.null any))) ) (func (export "ref_test_null_data") (param $i i32) (result i32) -- cgit v1.2.3