From 6d62e3c4be466888239a89c2e98713f60074aaea Mon Sep 17 00:00:00 2001 From: Heejin Ahn Date: Fri, 22 Jan 2021 18:07:46 +0900 Subject: Remove exnref and br_on_exn (#3505) This removes `exnref` type and `br_on_exn` instruction. --- src/wasm-interpreter.h | 21 --------------------- 1 file changed, 21 deletions(-) (limited to 'src/wasm-interpreter.h') diff --git a/src/wasm-interpreter.h b/src/wasm-interpreter.h index a825f99ef..1336a8d10 100644 --- a/src/wasm-interpreter.h +++ b/src/wasm-interpreter.h @@ -1354,25 +1354,6 @@ public: WASM_UNREACHABLE("throw"); } Flow visitRethrow(Rethrow* curr) { WASM_UNREACHABLE("unimp"); } - Flow visitBrOnExn(BrOnExn* curr) { - NOTE_ENTER("BrOnExn"); - Flow flow = this->visit(curr->exnref); - if (flow.breaking()) { - return flow; - } - const auto& value = flow.getSingleValue(); - if (value.isNull()) { - trap("br_on_exn: argument is null"); - } - auto ex = value.getExceptionPackage(); - if (curr->event != ex.event) { // Not taken - return flow; - } - // Taken - flow.values = ex.values; - flow.breakTo = curr->name; - return flow; - } Flow visitI31New(I31New* curr) { NOTE_ENTER("I31New"); Flow flow = visit(curr->value); @@ -2033,7 +2014,6 @@ public: return Literal(load128(addr).data()); case Type::funcref: case Type::externref: - case Type::exnref: case Type::anyref: case Type::eqref: case Type::dataref: @@ -2093,7 +2073,6 @@ public: break; case Type::funcref: case Type::externref: - case Type::exnref: case Type::anyref: case Type::eqref: case Type::dataref: -- cgit v1.2.3