diff options
author | Abbas Mashayekh <martianboy2005@gmail.com> | 2021-04-01 00:30:13 +0430 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-31 13:00:13 -0700 |
commit | d9f0d8f09985320e0849f76d4ce8a8ee409f5e6d (patch) | |
tree | 3c2bc188e95cc066328fb41c359ba45b2ed2d6f6 /test | |
parent | fdd6926c83a5901ba7d7ae12d02f1bd033c92657 (diff) | |
download | binaryen-d9f0d8f09985320e0849f76d4ce8a8ee409f5e6d.tar.gz binaryen-d9f0d8f09985320e0849f76d4ce8a8ee409f5e6d.tar.bz2 binaryen-d9f0d8f09985320e0849f76d4ce8a8ee409f5e6d.zip |
Remove old syntax from table and elem in parser (#3753)
We've been keeping old syntax in the text format parser although they've
been removed from the parser and hardly any test case relies on them.
This PR will remove old syntax support for tables and element segments
and simplify the corresponding parser functions. A few test files were
affected by this that are updated.
Diffstat (limited to 'test')
-rw-r--r-- | test/passes/asyncify.wast | 2 | ||||
-rw-r--r-- | test/passes/asyncify_pass-arg=asyncify-asserts_pass-arg=asyncify-onlylist@waka.wast | 2 | ||||
-rw-r--r-- | test/passes/asyncify_pass-arg=asyncify-ignore-imports.wast | 2 | ||||
-rw-r--r-- | test/passes/asyncify_pass-arg=asyncify-ignore-indirect.wast | 2 | ||||
-rw-r--r-- | test/spec/elem.wast | 4 | ||||
-rw-r--r-- | test/spec/imports.wast | 4 | ||||
-rw-r--r-- | test/spec/old_import.wast | 4 |
7 files changed, 10 insertions, 10 deletions
diff --git a/test/passes/asyncify.wast b/test/passes/asyncify.wast index 281934aea..e919a7e86 100644 --- a/test/passes/asyncify.wast +++ b/test/passes/asyncify.wast @@ -3,7 +3,7 @@ (memory 1 2) (import "env" "import" (func $import)) (import "env" "import2" (func $import2 (param i32))) - (table 1 1) + (table funcref (elem $liveness2 $liveness2)) (func $liveness1 (param $live0 i32) (param $dead0 i32) (local $live1 i32) (local $dead1 i32) diff --git a/test/passes/asyncify_pass-arg=asyncify-asserts_pass-arg=asyncify-onlylist@waka.wast b/test/passes/asyncify_pass-arg=asyncify-asserts_pass-arg=asyncify-onlylist@waka.wast index 7d67c89ed..4233cb304 100644 --- a/test/passes/asyncify_pass-arg=asyncify-asserts_pass-arg=asyncify-onlylist@waka.wast +++ b/test/passes/asyncify_pass-arg=asyncify-asserts_pass-arg=asyncify-onlylist@waka.wast @@ -4,7 +4,7 @@ (import "env" "import" (func $import)) (import "env" "import2" (func $import2 (result i32))) (import "env" "import3" (func $import3 (param i32))) - (table 1 1) + (table funcref (elem $calls-import2-drop $calls-import2-drop)) (func $calls-import (call $import) ) diff --git a/test/passes/asyncify_pass-arg=asyncify-ignore-imports.wast b/test/passes/asyncify_pass-arg=asyncify-ignore-imports.wast index 33500baba..80f0851d0 100644 --- a/test/passes/asyncify_pass-arg=asyncify-ignore-imports.wast +++ b/test/passes/asyncify_pass-arg=asyncify-ignore-imports.wast @@ -4,7 +4,7 @@ (import "env" "import" (func $import)) (import "env" "import2" (func $import2 (result i32))) (import "env" "import3" (func $import3 (param i32))) - (table 1 1) + (table funcref (elem $calls-import2-drop $calls-import2-drop)) (func $calls-import (call $import) ) diff --git a/test/passes/asyncify_pass-arg=asyncify-ignore-indirect.wast b/test/passes/asyncify_pass-arg=asyncify-ignore-indirect.wast index 33500baba..80f0851d0 100644 --- a/test/passes/asyncify_pass-arg=asyncify-ignore-indirect.wast +++ b/test/passes/asyncify_pass-arg=asyncify-ignore-indirect.wast @@ -4,7 +4,7 @@ (import "env" "import" (func $import)) (import "env" "import2" (func $import2 (result i32))) (import "env" "import3" (func $import3 (param i32))) - (table 1 1) + (table funcref (elem $calls-import2-drop $calls-import2-drop)) (func $calls-import (call $import) ) diff --git a/test/spec/elem.wast b/test/spec/elem.wast index 1ea2b0618..fff4a83ef 100644 --- a/test/spec/elem.wast +++ b/test/spec/elem.wast @@ -8,10 +8,10 @@ (elem (i32.const 0) $f $f) (elem (offset (i32.const 0))) (elem (offset (i32.const 0)) $f $f) - (elem 0 (i32.const 0)) + (elem (i32.const 0)) (elem 0x0 (i32.const 0) $f $f) (elem 0x000 (offset (i32.const 0))) - (elem 0 (offset (i32.const 0)) $f $f) + (elem (offset (i32.const 0)) $f $f) (elem $t (i32.const 0)) (elem $t (i32.const 0) $f $f) (elem $t (offset (i32.const 0))) diff --git a/test/spec/imports.wast b/test/spec/imports.wast index 04c1746c7..c39ae8dd3 100644 --- a/test/spec/imports.wast +++ b/test/spec/imports.wast @@ -271,7 +271,7 @@ (module (type (func (result i32))) (import "spectest" "table" (table 10 20 funcref)) - (elem 0 (i32.const 1) $f $g) + (elem (i32.const 1) $f $g) (func (export "call") (param i32) (result i32) (call_indirect (type 0) (local.get 0)) @@ -290,7 +290,7 @@ (module (type (func (result i32))) (table (import "spectest" "table") 10 20 funcref) - (elem 0 (i32.const 1) $f $g) + (elem (i32.const 1) $f $g) (func (export "call") (param i32) (result i32) (call_indirect (type 0) (local.get 0)) diff --git a/test/spec/old_import.wast b/test/spec/old_import.wast index bc6144185..a26c16e48 100644 --- a/test/spec/old_import.wast +++ b/test/spec/old_import.wast @@ -96,7 +96,7 @@ (module (type (func (result i32))) (import "spectest" "table" (table 10 20 funcref)) - (elem 0 (i32.const 1) $f $g) + (elem (i32.const 1) $f $g) (func (export "call") (param i32) (result i32) (call_indirect (type 0) (local.get 0))) (func $f (result i32) (i32.const 11)) @@ -113,7 +113,7 @@ (module (type (func (result i32))) (table (import "spectest" "table") 10 20 funcref) - (elem 0 (i32.const 1) $f $g) + (elem (i32.const 1) $f $g) (func (export "call") (param i32) (result i32) (call_indirect (type 0) (local.get 0))) (func $f (result i32) (i32.const 11)) |