summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorAlon Zakai <azakai@google.com>2021-09-30 17:54:05 -0700
committerGitHub <noreply@github.com>2021-09-30 17:54:05 -0700
commit65bcde2c30e82047a892332b95b114bc86f89614 (patch)
treefad936a8ed9b3275da50917bcebcbc235ab82600 /scripts
parentce8cdac461db4e0a3e178a59f8eb1447bfee51e1 (diff)
downloadbinaryen-65bcde2c30e82047a892332b95b114bc86f89614.tar.gz
binaryen-65bcde2c30e82047a892332b95b114bc86f89614.tar.bz2
binaryen-65bcde2c30e82047a892332b95b114bc86f89614.zip
Implement table.get (#4195)
Adds the part of the spec test suite that this passes (without table.set we can't do it all).
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/gen-s-parser.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/gen-s-parser.py b/scripts/gen-s-parser.py
index cc9ffc7c3..0c71644aa 100755
--- a/scripts/gen-s-parser.py
+++ b/scripts/gen-s-parser.py
@@ -516,10 +516,12 @@ instructions = [
("f64x2.promote_low_f32x4", "makeUnary(s, UnaryOp::PromoteLowVecF32x4ToVecF64x2)"),
# reference types instructions
- # TODO Add table instructions
("ref.null", "makeRefNull(s)"),
("ref.is_null", "makeRefIs(s, RefIsNull)"),
("ref.func", "makeRefFunc(s)"),
+ ("ref.eq", "makeRefEq(s)"),
+ # TODO Add table instructions
+ ("table.get", "makeTableGet(s)"),
# exception handling instructions
("try", "makeTry(s)"),
("throw", "makeThrow(s)"),
@@ -532,7 +534,6 @@ instructions = [
("call_ref", "makeCallRef(s, /*isReturn=*/false)"),
("return_call_ref", "makeCallRef(s, /*isReturn=*/true)"),
# GC
- ("ref.eq", "makeRefEq(s)"),
("i31.new", "makeI31New(s)"),
("i31.get_s", "makeI31Get(s, true)"),
("i31.get_u", "makeI31Get(s, false)"),