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/multi-table.wast.fromBinary.noDebugInfo | |
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/multi-table.wast.fromBinary.noDebugInfo')
-rw-r--r-- | test/multi-table.wast.fromBinary.noDebugInfo | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/multi-table.wast.fromBinary.noDebugInfo b/test/multi-table.wast.fromBinary.noDebugInfo new file mode 100644 index 000000000..00c3a64cb --- /dev/null +++ b/test/multi-table.wast.fromBinary.noDebugInfo @@ -0,0 +1,15 @@ +(module + (type $none_=>_none (func)) + (import "a" "b" (table $timport$0 1 10 funcref)) + (elem (table $timport$0) (i32.const 0) func $0) + (table $0 3 3 funcref) + (elem (table $0) (i32.const 0) func $0) + (elem (table $0) (i32.const 1) func $0 $1) + (func $0 + (nop) + ) + (func $1 + (nop) + ) +) + |