Commit d8fd30b5 authored by mstarzinger's avatar mstarzinger Committed by Commit bot

[interpreter] Remove obsolete ExchangeRegisters method.

R=oth@chromium.org

Review URL: https://codereview.chromium.org/1657593008

Cr-Commit-Position: refs/heads/master@{#33685}
parent cd803b15
...@@ -27,9 +27,6 @@ class BytecodeGraphBuilder::Environment : public ZoneObject { ...@@ -27,9 +27,6 @@ class BytecodeGraphBuilder::Environment : public ZoneObject {
Node* LookupAccumulator() const; Node* LookupAccumulator() const;
Node* LookupRegister(interpreter::Register the_register) const; Node* LookupRegister(interpreter::Register the_register) const;
void ExchangeRegisters(interpreter::Register reg0,
interpreter::Register reg1);
void BindAccumulator(Node* node, FrameStateBeforeAndAfter* states = nullptr); void BindAccumulator(Node* node, FrameStateBeforeAndAfter* states = nullptr);
void BindRegister(interpreter::Register the_register, Node* node, void BindRegister(interpreter::Register the_register, Node* node,
FrameStateBeforeAndAfter* states = nullptr); FrameStateBeforeAndAfter* states = nullptr);
...@@ -252,16 +249,6 @@ Node* BytecodeGraphBuilder::Environment::LookupRegister( ...@@ -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( void BytecodeGraphBuilder::Environment::BindAccumulator(
Node* node, FrameStateBeforeAndAfter* states) { Node* node, FrameStateBeforeAndAfter* states) {
if (states) { if (states) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment