summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorDaniel Wirtz <dcode@dcode.io>2020-09-29 22:19:09 +0200
committerGitHub <noreply@github.com>2020-09-29 22:19:09 +0200
commit7d673ce83206349159a68fe683bc7da02dcdaf98 (patch)
treeb6be0e5842b8726406c50e9481531cf456db326f /scripts
parent781da4c206c54e92b46358c00d079ada66cef0df (diff)
downloadbinaryen-7d673ce83206349159a68fe683bc7da02dcdaf98.tar.gz
binaryen-7d673ce83206349159a68fe683bc7da02dcdaf98.tar.bz2
binaryen-7d673ce83206349159a68fe683bc7da02dcdaf98.zip
GC: Add stubs for the remaining instructions (#3174)
NFC, except adding most of the boilerplate for the remaining GC instructions. Each implementation site is marked with a respective `TODO (gc): theInstruction` in between the typical boilerplate code.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/gen-s-parser.py20
1 files changed, 19 insertions, 1 deletions
diff --git a/scripts/gen-s-parser.py b/scripts/gen-s-parser.py
index 5bf5ec942..4c33fcf78 100755
--- a/scripts/gen-s-parser.py
+++ b/scripts/gen-s-parser.py
@@ -500,7 +500,25 @@ instructions = [
("ref.eq", "makeRefEq(s)"),
("i31.new", "makeI31New(s)"),
("i31.get_s", "makeI31Get(s, true)"),
- ("i31.get_u", "makeI31Get(s, false)")
+ ("i31.get_u", "makeI31Get(s, false)"),
+ ("ref.test", "makeRefTest(s)"),
+ ("ref.cast", "makeRefCast(s)"),
+ ("br_on_cast", "makeBrOnCast(s)"),
+ ("rtt.canon", "makeRttCanon(s)"),
+ ("rtt.sub", "makeRttSub(s)"),
+ ("struct.new_with_rtt", "makeStructNew(s, false)"),
+ ("struct.new_default_with_rtt", "makeStructNew(s, true)"),
+ ("struct.get", "makeStructGet(s)"),
+ ("struct.get_s", "makeStructGet(s, true)"),
+ ("struct.get_u", "makeStructGet(s, false)"),
+ ("struct.set", "makeStructSet(s)"),
+ ("array.new_with_rtt", "makeArrayNew(s, false)"),
+ ("array.new_default_with_rtt", "makeArrayNew(s, true)"),
+ ("array.get", "makeArrayGet(s)"),
+ ("array.get_s", "makeArrayGet(s, true)"),
+ ("array.get_u", "makeArrayGet(s, false)"),
+ ("array.set", "makeArraySet(s)"),
+ ("array.len", "makeArrayLen(s)")
]