diff options
author | Alon Zakai <azakai@google.com> | 2021-01-26 23:36:56 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-26 15:36:56 -0800 |
commit | f82e94363a231bf570fbe3d7dc49259c8668206f (patch) | |
tree | 1c4dd05735dfe61e8cc5d87a1c98479b788b89bd /scripts | |
parent | 5e57a13614c56f959faab675d6bcabbd629ec562 (diff) | |
download | binaryen-f82e94363a231bf570fbe3d7dc49259c8668206f.tar.gz binaryen-f82e94363a231bf570fbe3d7dc49259c8668206f.tar.bz2 binaryen-f82e94363a231bf570fbe3d7dc49259c8668206f.zip |
[GC] ref.is_func/data/i31 (#3519)
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/gen-s-parser.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/scripts/gen-s-parser.py b/scripts/gen-s-parser.py index 19cf093be..ff6172138 100755 --- a/scripts/gen-s-parser.py +++ b/scripts/gen-s-parser.py @@ -529,7 +529,7 @@ instructions = [ # reference types instructions # TODO Add table instructions ("ref.null", "makeRefNull(s)"), - ("ref.is_null", "makeRefIs(s)"), + ("ref.is_null", "makeRefIs(s, RefIsNull)"), ("ref.func", "makeRefFunc(s)"), # exception handling instructions ("try", "makeTry(s)"), @@ -564,7 +564,10 @@ instructions = [ ("array.get_s", "makeArrayGet(s, true)"), ("array.get_u", "makeArrayGet(s, false)"), ("array.set", "makeArraySet(s)"), - ("array.len", "makeArrayLen(s)") + ("array.len", "makeArrayLen(s)"), + ("ref.is_func", "makeRefIs(s, RefIsFunc)"), + ("ref.is_data", "makeRefIs(s, RefIsData)"), + ("ref.is_i31", "makeRefIs(s, RefIsI31)"), ] |