From bb0ff51597f254ab199f8ad5b63de7a4bbca2c17 Mon Sep 17 00:00:00 2001 From: Thomas Lively <7121787+tlively@users.noreply.github.com> Date: Fri, 22 May 2020 13:19:47 -0700 Subject: Remove `Push` (#2867) Push and Pop have been superseded by tuples for their original intended purpose of supporting multivalue. Pop is still used to represent block arguments for exception handling, but there are no plans to use Push for anything now or in the future. --- src/wasm-interpreter.h | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'src/wasm-interpreter.h') diff --git a/src/wasm-interpreter.h b/src/wasm-interpreter.h index 56e453b64..c47786a08 100644 --- a/src/wasm-interpreter.h +++ b/src/wasm-interpreter.h @@ -1222,7 +1222,6 @@ public: Flow visitSIMDLoad(SIMDLoad* curr) { WASM_UNREACHABLE("unimp"); } Flow visitSIMDLoadSplat(SIMDLoad* curr) { WASM_UNREACHABLE("unimp"); } Flow visitSIMDLoadExtend(SIMDLoad* curr) { WASM_UNREACHABLE("unimp"); } - Flow visitPush(Push* curr) { WASM_UNREACHABLE("unimp"); } Flow visitPop(Pop* curr) { WASM_UNREACHABLE("unimp"); } Flow visitRefNull(RefNull* curr) { NOTE_ENTER("RefNull"); @@ -1521,10 +1520,6 @@ public: NOTE_ENTER("SIMDLoadExtend"); return Flow(NONCONSTANT_FLOW); } - Flow visitPush(Push* curr) { - NOTE_ENTER("Push"); - return Flow(NONCONSTANT_FLOW); - } Flow visitPop(Pop* curr) { NOTE_ENTER("Pop"); return Flow(NONCONSTANT_FLOW); @@ -2425,15 +2420,6 @@ private: return this->visit(curr->catchBody); } } - Flow visitPush(Push* curr) { - NOTE_ENTER("Push"); - Flow value = this->visit(curr->value); - if (value.breaking()) { - return value; - } - instance.multiValues.push_back(value.getSingleValue()); - return Flow(); - } Flow visitPop(Pop* curr) { NOTE_ENTER("Pop"); assert(!instance.multiValues.empty()); -- cgit v1.2.3