Index: src/compiler/bytecode-graph-builder.cc |
diff --git a/src/compiler/bytecode-graph-builder.cc b/src/compiler/bytecode-graph-builder.cc |
index 44b0d39d7f9740461630f7251fce1621ea8de3eb..69f39f6ad5e5a98fc708d77d4372333d45827aab 100644 |
--- a/src/compiler/bytecode-graph-builder.cc |
+++ b/src/compiler/bytecode-graph-builder.cc |
@@ -27,9 +27,6 @@ class BytecodeGraphBuilder::Environment : public ZoneObject { |
Node* LookupAccumulator() const; |
Node* LookupRegister(interpreter::Register the_register) const; |
- void ExchangeRegisters(interpreter::Register reg0, |
- interpreter::Register reg1); |
- |
void BindAccumulator(Node* node, FrameStateBeforeAndAfter* states = nullptr); |
void BindRegister(interpreter::Register the_register, Node* node, |
FrameStateBeforeAndAfter* states = nullptr); |
@@ -252,16 +249,6 @@ Node* BytecodeGraphBuilder::Environment::LookupRegister( |
} |
-void BytecodeGraphBuilder::Environment::ExchangeRegisters( |
- interpreter::Register reg0, interpreter::Register reg1) { |
- int reg0_index = RegisterToValuesIndex(reg0); |
- int reg1_index = RegisterToValuesIndex(reg1); |
- Node* saved_reg0_value = values()->at(reg0_index); |
- values()->at(reg0_index) = values()->at(reg1_index); |
- values()->at(reg1_index) = saved_reg0_value; |
-} |
- |
- |
void BytecodeGraphBuilder::Environment::BindAccumulator( |
Node* node, FrameStateBeforeAndAfter* states) { |
if (states) { |