From 04c1515acb354714af3d07fe2a3b65b2bb0398ab Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Thu, 25 Feb 2021 21:15:41 +0000 Subject: Support Type names in the Names section (#3615) --- test/reference-types.wast.fromBinary | 40 ++++++++++++++++++------------------ 1 file changed, 20 insertions(+), 20 deletions(-) (limited to 'test/reference-types.wast.fromBinary') diff --git a/test/reference-types.wast.fromBinary b/test/reference-types.wast.fromBinary index 02be5171e..283a1efe3 100644 --- a/test/reference-types.wast.fromBinary +++ b/test/reference-types.wast.fromBinary @@ -1,9 +1,9 @@ (module (type $none_=>_anyref (func (result anyref))) - (type $anyref_=>_none (func (param anyref))) - (type $funcref_=>_none (func (param funcref))) + (type $sig_anyref (func (param anyref))) + (type $sig_funcref (func (param funcref))) (type $none_=>_funcref (func (result funcref))) - (type $externref_=>_none (func (param externref))) + (type $sig_externref (func (param externref))) (type $none_=>_externref (func (result externref))) (type $none_=>_none (func)) (type $i32_=>_none (func (param i32))) @@ -191,71 +191,71 @@ (call $take_anyref (ref.func $foo) ) - (call_indirect $0 (type $externref_=>_none) + (call_indirect $0 (type $sig_externref) (local.get $local_funcref) (i32.const 0) ) - (call_indirect $0 (type $externref_=>_none) + (call_indirect $0 (type $sig_externref) (global.get $global_externref) (i32.const 0) ) - (call_indirect $0 (type $externref_=>_none) + (call_indirect $0 (type $sig_externref) (ref.null extern) (i32.const 0) ) - (call_indirect $0 (type $funcref_=>_none) + (call_indirect $0 (type $sig_funcref) (local.get $local_externref) (i32.const 1) ) - (call_indirect $0 (type $funcref_=>_none) + (call_indirect $0 (type $sig_funcref) (global.get $global_funcref) (i32.const 1) ) - (call_indirect $0 (type $funcref_=>_none) + (call_indirect $0 (type $sig_funcref) (ref.null func) (i32.const 1) ) - (call_indirect $0 (type $funcref_=>_none) + (call_indirect $0 (type $sig_funcref) (ref.func $foo) (i32.const 1) ) - (call_indirect $0 (type $anyref_=>_none) + (call_indirect $0 (type $sig_anyref) (local.get $local_anyref) (i32.const 3) ) - (call_indirect $0 (type $anyref_=>_none) + (call_indirect $0 (type $sig_anyref) (global.get $global_anyref) (i32.const 3) ) - (call_indirect $0 (type $anyref_=>_none) + (call_indirect $0 (type $sig_anyref) (ref.null any) (i32.const 3) ) - (call_indirect $0 (type $anyref_=>_none) + (call_indirect $0 (type $sig_anyref) (local.get $local_funcref) (i32.const 3) ) - (call_indirect $0 (type $anyref_=>_none) + (call_indirect $0 (type $sig_anyref) (global.get $global_externref) (i32.const 3) ) - (call_indirect $0 (type $anyref_=>_none) + (call_indirect $0 (type $sig_anyref) (ref.null extern) (i32.const 3) ) - (call_indirect $0 (type $anyref_=>_none) + (call_indirect $0 (type $sig_anyref) (local.get $local_externref) (i32.const 3) ) - (call_indirect $0 (type $anyref_=>_none) + (call_indirect $0 (type $sig_anyref) (global.get $global_funcref) (i32.const 3) ) - (call_indirect $0 (type $anyref_=>_none) + (call_indirect $0 (type $sig_anyref) (ref.null func) (i32.const 3) ) - (call_indirect $0 (type $anyref_=>_none) + (call_indirect $0 (type $sig_anyref) (ref.func $foo) (i32.const 3) ) -- cgit v1.2.3