[interpreter] Remove obsolete ExchangeRegisters method.

R=oth@chromium.org

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

Cr-Commit-Position: refs/heads/master@{#33685}
This commit is contained in:
mstarzinger 2016-02-02 06:11:43 -08:00 committed by Commit bot
parent cd803b1547
commit d8fd30b51f

View File

@ -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) {