diff options
author | Abbas Mashayekh <martianboy2005@gmail.com> | 2021-02-10 01:17:28 +0330 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-09 13:47:28 -0800 |
commit | 3da8b08ecd57f5662bebc69ea73bf59e1928341e (patch) | |
tree | 2902eedc161579eaf37a1aed463de95916eee703 /test/passes/remove-unused-nonfunction-module-elements_all-features.txt | |
parent | a12a8250da24aa5b5787bf89562b243fdc514302 (diff) | |
download | binaryen-3da8b08ecd57f5662bebc69ea73bf59e1928341e.tar.gz binaryen-3da8b08ecd57f5662bebc69ea73bf59e1928341e.tar.bz2 binaryen-3da8b08ecd57f5662bebc69ea73bf59e1928341e.zip |
[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.
Diffstat (limited to 'test/passes/remove-unused-nonfunction-module-elements_all-features.txt')
-rw-r--r-- | test/passes/remove-unused-nonfunction-module-elements_all-features.txt | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/test/passes/remove-unused-nonfunction-module-elements_all-features.txt b/test/passes/remove-unused-nonfunction-module-elements_all-features.txt index 5a5406f78..76d388b23 100644 --- a/test/passes/remove-unused-nonfunction-module-elements_all-features.txt +++ b/test/passes/remove-unused-nonfunction-module-elements_all-features.txt @@ -51,40 +51,40 @@ (call $remove3) ) (func $other1 (param $0 i32) - (call_indirect (type $none_=>_none) + (call_indirect $0 (type $none_=>_none) (i32.const 0) ) - (call_indirect (type $none_=>_none) + (call_indirect $0 (type $none_=>_none) (i32.const 0) ) - (call_indirect (type $none_=>_none) + (call_indirect $0 (type $none_=>_none) (i32.const 0) ) - (call_indirect (type $none_=>_none) + (call_indirect $0 (type $none_=>_none) (i32.const 0) ) - (call_indirect (type $i32_=>_none) + (call_indirect $0 (type $i32_=>_none) (i32.const 0) (i32.const 0) ) - (call_indirect (type $i32_=>_none) + (call_indirect $0 (type $i32_=>_none) (i32.const 0) (i32.const 0) ) (drop - (call_indirect (type $i32_=>_i32) + (call_indirect $0 (type $i32_=>_i32) (i32.const 0) (i32.const 0) ) ) (drop - (call_indirect (type $i32_=>_i32) + (call_indirect $0 (type $i32_=>_i32) (i32.const 0) (i32.const 0) ) ) (drop - (call_indirect (type $i32_=>_i32) + (call_indirect $0 (type $i32_=>_i32) (i32.const 0) (i32.const 0) ) @@ -102,7 +102,7 @@ (import "env" "memory" (memory $0 256)) (import "env" "table" (table $timport$0 1 funcref)) (export "mem" (memory $0)) - (export "tab" (table $0)) + (export "tab" (table $timport$0)) ) (module (type $none_=>_none (func)) @@ -125,7 +125,7 @@ (i32.const 0) ) ) - (call_indirect (type $none_=>_none) + (call_indirect $timport$0 (type $none_=>_none) (i32.const 0) ) ) @@ -306,7 +306,7 @@ (f64.const 1) (f64.const 1) ) - (call_indirect (type $f64_=>_f64) + (call_indirect $0 (type $f64_=>_f64) (f64.const 1) (i32.const 0) ) |