diff options
author | Thomas Lively <7121787+tlively@users.noreply.github.com> | 2022-08-04 17:05:54 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-05 00:05:54 +0000 |
commit | 6759371b5239efa3daa9d988455abdd14a8b18ca (patch) | |
tree | 0c3a3e371ed742bdbd790f7344ec86e8536bc167 /src/wasm/wat-parser.cpp | |
parent | 9534e6927c41f4a6a5d06d58d00c271c9f066e9a (diff) | |
download | binaryen-6759371b5239efa3daa9d988455abdd14a8b18ca.tar.gz binaryen-6759371b5239efa3daa9d988455abdd14a8b18ca.tar.bz2 binaryen-6759371b5239efa3daa9d988455abdd14a8b18ca.zip |
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.
Diffstat (limited to 'src/wasm/wat-parser.cpp')
-rw-r--r-- | src/wasm/wat-parser.cpp | 44 |
1 files changed, 0 insertions, 44 deletions
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<typename Ctx::InstrT> makeBrOn(Ctx&, ParseInput&, BrOnOp op); template<typename Ctx> Result<typename Ctx::InstrT> makeBrOnStatic(Ctx&, ParseInput&, BrOnOp op); template<typename Ctx> -Result<typename Ctx::InstrT> makeRttCanon(Ctx&, ParseInput&); -template<typename Ctx> -Result<typename Ctx::InstrT> makeRttSub(Ctx&, ParseInput&); -template<typename Ctx> -Result<typename Ctx::InstrT> makeRttFreshSub(Ctx&, ParseInput&); -template<typename Ctx> -Result<typename Ctx::InstrT> makeStructNew(Ctx&, ParseInput&, bool default_); -template<typename Ctx> Result<typename Ctx::InstrT> makeStructNewStatic(Ctx&, ParseInput&, bool default_); template<typename Ctx> @@ -983,13 +975,9 @@ makeStructGet(Ctx&, ParseInput&, bool signed_ = false); template<typename Ctx> Result<typename Ctx::InstrT> makeStructSet(Ctx&, ParseInput&); template<typename Ctx> -Result<typename Ctx::InstrT> makeArrayNew(Ctx&, ParseInput&, bool default_); -template<typename Ctx> Result<typename Ctx::InstrT> makeArrayNewStatic(Ctx&, ParseInput&, bool default_); template<typename Ctx> -Result<typename Ctx::InstrT> makeArrayInit(Ctx&, ParseInput&); -template<typename Ctx> Result<typename Ctx::InstrT> makeArrayInitStatic(Ctx&, ParseInput&); template<typename Ctx> Result<typename Ctx::InstrT> @@ -1779,27 +1767,6 @@ makeBrOnStatic(Ctx& ctx, ParseInput& in, BrOnOp op) { } template<typename Ctx> -Result<typename Ctx::InstrT> makeRttCanon(Ctx& ctx, ParseInput& in) { - return in.err("unimplemented instruction"); -} - -template<typename Ctx> -Result<typename Ctx::InstrT> makeRttSub(Ctx& ctx, ParseInput& in) { - return in.err("unimplemented instruction"); -} - -template<typename Ctx> -Result<typename Ctx::InstrT> makeRttFreshSub(Ctx& ctx, ParseInput& in) { - return in.err("unimplemented instruction"); -} - -template<typename Ctx> -Result<typename Ctx::InstrT> -makeStructNew(Ctx& ctx, ParseInput& in, bool default_) { - return in.err("unimplemented instruction"); -} - -template<typename Ctx> Result<typename Ctx::InstrT> makeStructNewStatic(Ctx& ctx, ParseInput& in, bool default_) { return in.err("unimplemented instruction"); @@ -1818,22 +1785,11 @@ Result<typename Ctx::InstrT> makeStructSet(Ctx& ctx, ParseInput& in) { template<typename Ctx> Result<typename Ctx::InstrT> -makeArrayNew(Ctx& ctx, ParseInput& in, bool default_) { - return in.err("unimplemented instruction"); -} - -template<typename Ctx> -Result<typename Ctx::InstrT> makeArrayNewStatic(Ctx& ctx, ParseInput& in, bool default_) { return in.err("unimplemented instruction"); } template<typename Ctx> -Result<typename Ctx::InstrT> makeArrayInit(Ctx& ctx, ParseInput& in) { - return in.err("unimplemented instruction"); -} - -template<typename Ctx> Result<typename Ctx::InstrT> makeArrayInitStatic(Ctx& ctx, ParseInput& in) { return in.err("unimplemented instruction"); } |