summaryrefslogtreecommitdiff
path: root/src/wasm-interpreter.h
diff options
context:
space:
mode:
authorThomas Lively <7121787+tlively@users.noreply.github.com>2020-05-22 13:19:47 -0700
committerGitHub <noreply@github.com>2020-05-22 13:19:47 -0700
commitbb0ff51597f254ab199f8ad5b63de7a4bbca2c17 (patch)
tree2932c64f443ec7a36385c0ac96e865d0a9d8c53b /src/wasm-interpreter.h
parentc193e5727d541ad04bb1601da92f2a86ae959cc8 (diff)
downloadbinaryen-bb0ff51597f254ab199f8ad5b63de7a4bbca2c17.tar.gz
binaryen-bb0ff51597f254ab199f8ad5b63de7a4bbca2c17.tar.bz2
binaryen-bb0ff51597f254ab199f8ad5b63de7a4bbca2c17.zip
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.
Diffstat (limited to 'src/wasm-interpreter.h')
-rw-r--r--src/wasm-interpreter.h14
1 files changed, 0 insertions, 14 deletions
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());