From 3da8b08ecd57f5662bebc69ea73bf59e1928341e Mon Sep 17 00:00:00 2001 From: Abbas Mashayekh Date: Wed, 10 Feb 2021 01:17:28 +0330 Subject: [reference-types] remove single table restriction in IR (#3517) Adds support for modules with multiple tables. Adds a field for the table name to `CallIndirect` and updates the C/JS APIs accordingly. --- test/reference-types.wast.fromBinary | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) (limited to 'test/reference-types.wast.fromBinary') diff --git a/test/reference-types.wast.fromBinary b/test/reference-types.wast.fromBinary index ae54cfcd8..5e51309ec 100644 --- a/test/reference-types.wast.fromBinary +++ b/test/reference-types.wast.fromBinary @@ -191,71 +191,71 @@ (call $take_anyref (ref.func $foo) ) - (call_indirect (type $externref_=>_none) + (call_indirect $0 (type $externref_=>_none) (local.get $local_funcref) (i32.const 0) ) - (call_indirect (type $externref_=>_none) + (call_indirect $0 (type $externref_=>_none) (global.get $global_externref) (i32.const 0) ) - (call_indirect (type $externref_=>_none) + (call_indirect $0 (type $externref_=>_none) (ref.null extern) (i32.const 0) ) - (call_indirect (type $funcref_=>_none) + (call_indirect $0 (type $funcref_=>_none) (local.get $local_externref) (i32.const 1) ) - (call_indirect (type $funcref_=>_none) + (call_indirect $0 (type $funcref_=>_none) (global.get $global_funcref) (i32.const 1) ) - (call_indirect (type $funcref_=>_none) + (call_indirect $0 (type $funcref_=>_none) (ref.null func) (i32.const 1) ) - (call_indirect (type $funcref_=>_none) + (call_indirect $0 (type $funcref_=>_none) (ref.func $foo) (i32.const 1) ) - (call_indirect (type $anyref_=>_none) + (call_indirect $0 (type $anyref_=>_none) (local.get $local_anyref) (i32.const 3) ) - (call_indirect (type $anyref_=>_none) + (call_indirect $0 (type $anyref_=>_none) (global.get $global_anyref) (i32.const 3) ) - (call_indirect (type $anyref_=>_none) + (call_indirect $0 (type $anyref_=>_none) (ref.null any) (i32.const 3) ) - (call_indirect (type $anyref_=>_none) + (call_indirect $0 (type $anyref_=>_none) (local.get $local_funcref) (i32.const 3) ) - (call_indirect (type $anyref_=>_none) + (call_indirect $0 (type $anyref_=>_none) (global.get $global_externref) (i32.const 3) ) - (call_indirect (type $anyref_=>_none) + (call_indirect $0 (type $anyref_=>_none) (ref.null extern) (i32.const 3) ) - (call_indirect (type $anyref_=>_none) + (call_indirect $0 (type $anyref_=>_none) (local.get $local_externref) (i32.const 3) ) - (call_indirect (type $anyref_=>_none) + (call_indirect $0 (type $anyref_=>_none) (global.get $global_funcref) (i32.const 3) ) - (call_indirect (type $anyref_=>_none) + (call_indirect $0 (type $anyref_=>_none) (ref.null func) (i32.const 3) ) - (call_indirect (type $anyref_=>_none) + (call_indirect $0 (type $anyref_=>_none) (ref.func $foo) (i32.const 3) ) -- cgit v1.2.3