summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorThomas Lively <tlively@google.com>2023-08-09 17:18:13 -0400
committerGitHub <noreply@github.com>2023-08-09 21:18:13 +0000
commitc003a01aa855bfa1377237eb2ce788b9fa96e839 (patch)
tree454d2b6de36ea56de5d3e310d81f02155aa73db1 /scripts
parentd0bdf202463323a0b9f3be95fe2c64765a84a4b7 (diff)
downloadbinaryen-c003a01aa855bfa1377237eb2ce788b9fa96e839.tar.gz
binaryen-c003a01aa855bfa1377237eb2ce788b9fa96e839.tar.bz2
binaryen-c003a01aa855bfa1377237eb2ce788b9fa96e839.zip
Remove legacy WasmGC instructions (#5861)
Remove old, experimental instructions and type encodings that will not be shipped as part of WasmGC. Updating the encodings and text format to match the final spec is left as future work.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/gen-s-parser.py18
1 files changed, 2 insertions, 16 deletions
diff --git a/scripts/gen-s-parser.py b/scripts/gen-s-parser.py
index d9d013b9b..f82156b43 100755
--- a/scripts/gen-s-parser.py
+++ b/scripts/gen-s-parser.py
@@ -568,21 +568,11 @@ instructions = [
("i31.get_s", "makeI31Get(s, true)"),
("i31.get_u", "makeI31Get(s, false)"),
("ref.test", "makeRefTest(s)"),
- ("ref.test_static", "makeRefTest(s)"),
("ref.cast", "makeRefCast(s)"),
- ("ref.cast_static", "makeRefCast(s)"),
- ("ref.cast_nop", "makeRefCastNop(s)"),
- ("ref.cast_nop_static", "makeRefCastNop(s)"),
("br_on_null", "makeBrOnNull(s)"),
("br_on_non_null", "makeBrOnNull(s, true)"),
- ("br_on_cast", "makeBrOnCast(s, std::nullopt)"),
- ("br_on_cast_static", "makeBrOnCast(s, std::nullopt)"),
- ("br_on_cast_fail", "makeBrOnCast(s, std::nullopt, true)"),
- ("br_on_cast_static_fail", "makeBrOnCast(s, std::nullopt, true)"),
- ("br_on_func", "makeBrOnCast(s, Type(HeapType::func, NonNullable))"),
- ("br_on_non_func", "makeBrOnCast(s, Type(HeapType::func, NonNullable), true)"),
- ("br_on_i31", "makeBrOnCast(s, Type(HeapType::i31, NonNullable))"),
- ("br_on_non_i31", "makeBrOnCast(s, Type(HeapType::i31, NonNullable), true)"),
+ ("br_on_cast", "makeBrOnCast(s)"),
+ ("br_on_cast_fail", "makeBrOnCast(s, true)"),
("struct.new", "makeStructNew(s, false)"),
("struct.new_default", "makeStructNew(s, true)"),
("struct.get", "makeStructGet(s)"),
@@ -604,11 +594,7 @@ instructions = [
("array.fill", "makeArrayFill(s)"),
("array.init_data", "makeArrayInitData(s)"),
("array.init_elem", "makeArrayInitElem(s)"),
- ("ref.is_func", "makeRefTest(s, Type(HeapType::func, NonNullable))"),
- ("ref.is_i31", "makeRefTest(s, Type(HeapType::i31, NonNullable))"),
("ref.as_non_null", "makeRefAs(s, RefAsNonNull)"),
- ("ref.as_func", "makeRefCast(s, Type(HeapType::func, NonNullable))"),
- ("ref.as_i31", "makeRefCast(s, Type(HeapType::i31, NonNullable))"),
("extern.internalize", "makeRefAs(s, ExternInternalize)"),
("extern.externalize", "makeRefAs(s, ExternExternalize)"),
("string.new_wtf8", "makeStringNew(s, StringNewWTF8, false)"),