summaryrefslogtreecommitdiff
path: root/test/spec
diff options
context:
space:
mode:
authorJérôme Vouillon <jerome.vouillon@gmail.com>2024-07-08 16:23:00 -0400
committerGitHub <noreply@github.com>2024-07-08 20:23:00 +0000
commit81f8f770a1b2adc027cbbbd981781d2ee6952e54 (patch)
tree11df952c2b2da03fb5ad5a3d75b64a060df1a130 /test/spec
parent9792f2c1fd311c3ffd2036288c6e7614a0486481 (diff)
downloadbinaryen-81f8f770a1b2adc027cbbbd981781d2ee6952e54.tar.gz
binaryen-81f8f770a1b2adc027cbbbd981781d2ee6952e54.tar.bz2
binaryen-81f8f770a1b2adc027cbbbd981781d2ee6952e54.zip
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.
Diffstat (limited to 'test/spec')
-rw-r--r--test/spec/ref_test.wast12
1 files changed, 6 insertions, 6 deletions
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)