diff options
author | Heejin Ahn <aheejin@gmail.com> | 2021-01-22 18:07:46 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-22 18:07:46 +0900 |
commit | 6d62e3c4be466888239a89c2e98713f60074aaea (patch) | |
tree | f2b55ef6eed4be74c2faee998f15ab46231083a9 /src/wasm/wasm-stack.cpp | |
parent | 69ff866fc7e54f25d8d8598581aa3553cb87603b (diff) | |
download | binaryen-6d62e3c4be466888239a89c2e98713f60074aaea.tar.gz binaryen-6d62e3c4be466888239a89c2e98713f60074aaea.tar.bz2 binaryen-6d62e3c4be466888239a89c2e98713f60074aaea.zip |
Remove exnref and br_on_exn (#3505)
This removes `exnref` type and `br_on_exn` instruction.
Diffstat (limited to 'src/wasm/wasm-stack.cpp')
-rw-r--r-- | src/wasm/wasm-stack.cpp | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/wasm/wasm-stack.cpp b/src/wasm/wasm-stack.cpp index 8fc6c02c6..81858d003 100644 --- a/src/wasm/wasm-stack.cpp +++ b/src/wasm/wasm-stack.cpp @@ -192,7 +192,6 @@ void BinaryInstWriter::visitLoad(Load* curr) { return; case Type::funcref: case Type::externref: - case Type::exnref: case Type::anyref: case Type::eqref: case Type::i31ref: @@ -297,7 +296,6 @@ void BinaryInstWriter::visitStore(Store* curr) { break; case Type::funcref: case Type::externref: - case Type::exnref: case Type::anyref: case Type::eqref: case Type::i31ref: @@ -762,7 +760,6 @@ void BinaryInstWriter::visitConst(Const* curr) { } case Type::funcref: case Type::externref: - case Type::exnref: case Type::anyref: case Type::eqref: case Type::i31ref: @@ -1914,11 +1911,6 @@ void BinaryInstWriter::visitRethrow(Rethrow* curr) { o << int8_t(BinaryConsts::Rethrow) << U32LEB(curr->depth); } -void BinaryInstWriter::visitBrOnExn(BrOnExn* curr) { - o << int8_t(BinaryConsts::BrOnExn) << U32LEB(getBreakIndex(curr->name)) - << U32LEB(parent.getEventIndex(curr->event)); -} - void BinaryInstWriter::visitNop(Nop* curr) { o << int8_t(BinaryConsts::Nop); } void BinaryInstWriter::visitUnreachable(Unreachable* curr) { |