From 6759371b5239efa3daa9d988455abdd14a8b18ca Mon Sep 17 00:00:00 2001 From: Thomas Lively <7121787+tlively@users.noreply.github.com> Date: Thu, 4 Aug 2022 17:05:54 -0700 Subject: Remove RTTs (#4848) RTTs were removed from the GC spec and if they are added back in in the future, they will be heap types rather than value types as in our implementation. Updating our implementation to have RTTs be heap types would have been more work than deleting them for questionable benefit since we don't know how long it will be before they are specced again. --- src/wasm/wat-parser.cpp | 44 -------------------------------------------- 1 file changed, 44 deletions(-) (limited to 'src/wasm/wat-parser.cpp') diff --git a/src/wasm/wat-parser.cpp b/src/wasm/wat-parser.cpp index 8b86017ff..89eab3297 100644 --- a/src/wasm/wat-parser.cpp +++ b/src/wasm/wat-parser.cpp @@ -967,14 +967,6 @@ Result makeBrOn(Ctx&, ParseInput&, BrOnOp op); template Result makeBrOnStatic(Ctx&, ParseInput&, BrOnOp op); template -Result makeRttCanon(Ctx&, ParseInput&); -template -Result makeRttSub(Ctx&, ParseInput&); -template -Result makeRttFreshSub(Ctx&, ParseInput&); -template -Result makeStructNew(Ctx&, ParseInput&, bool default_); -template Result makeStructNewStatic(Ctx&, ParseInput&, bool default_); template @@ -983,13 +975,9 @@ makeStructGet(Ctx&, ParseInput&, bool signed_ = false); template Result makeStructSet(Ctx&, ParseInput&); template -Result makeArrayNew(Ctx&, ParseInput&, bool default_); -template Result makeArrayNewStatic(Ctx&, ParseInput&, bool default_); template -Result makeArrayInit(Ctx&, ParseInput&); -template Result makeArrayInitStatic(Ctx&, ParseInput&); template Result @@ -1778,27 +1766,6 @@ makeBrOnStatic(Ctx& ctx, ParseInput& in, BrOnOp op) { return in.err("unimplemented instruction"); } -template -Result makeRttCanon(Ctx& ctx, ParseInput& in) { - return in.err("unimplemented instruction"); -} - -template -Result makeRttSub(Ctx& ctx, ParseInput& in) { - return in.err("unimplemented instruction"); -} - -template -Result makeRttFreshSub(Ctx& ctx, ParseInput& in) { - return in.err("unimplemented instruction"); -} - -template -Result -makeStructNew(Ctx& ctx, ParseInput& in, bool default_) { - return in.err("unimplemented instruction"); -} - template Result makeStructNewStatic(Ctx& ctx, ParseInput& in, bool default_) { @@ -1816,23 +1783,12 @@ Result makeStructSet(Ctx& ctx, ParseInput& in) { return in.err("unimplemented instruction"); } -template -Result -makeArrayNew(Ctx& ctx, ParseInput& in, bool default_) { - return in.err("unimplemented instruction"); -} - template Result makeArrayNewStatic(Ctx& ctx, ParseInput& in, bool default_) { return in.err("unimplemented instruction"); } -template -Result makeArrayInit(Ctx& ctx, ParseInput& in) { - return in.err("unimplemented instruction"); -} - template Result makeArrayInitStatic(Ctx& ctx, ParseInput& in) { return in.err("unimplemented instruction"); -- cgit v1.2.3