| Index: src/mips/lithium-mips.cc
|
| diff --git a/src/mips/lithium-mips.cc b/src/mips/lithium-mips.cc
|
| index 28309e2df9e163ee85273154a9385d61a3222cde..164402c5a196ca70625476a438c20caf913c077b 100644
|
| --- a/src/mips/lithium-mips.cc
|
| +++ b/src/mips/lithium-mips.cc
|
| @@ -1306,8 +1306,8 @@ LInstruction* LChunkBuilder::DoBitwise(HBitwise* instr) {
|
| ASSERT(instr->left()->representation().IsInteger32());
|
| ASSERT(instr->right()->representation().IsInteger32());
|
|
|
| - LOperand* left = UseRegisterAtStart(instr->BetterLeftOperand());
|
| - LOperand* right = UseOrConstantAtStart(instr->BetterRightOperand());
|
| + LOperand* left = UseRegisterAtStart(instr->LeastConstantOperand());
|
| + LOperand* right = UseOrConstantAtStart(instr->MostConstantOperand());
|
| return DefineAsRegister(new(zone()) LBitI(left, right));
|
| } else {
|
| ASSERT(instr->representation().IsTagged());
|
| @@ -1402,15 +1402,15 @@ LInstruction* LChunkBuilder::DoMul(HMul* instr) {
|
| ASSERT(instr->left()->representation().IsInteger32());
|
| ASSERT(instr->right()->representation().IsInteger32());
|
| LOperand* left;
|
| - LOperand* right = UseOrConstant(instr->BetterRightOperand());
|
| + LOperand* right = UseOrConstant(instr->MostConstantOperand());
|
| LOperand* temp = NULL;
|
| if (instr->CheckFlag(HValue::kBailoutOnMinusZero) &&
|
| (instr->CheckFlag(HValue::kCanOverflow) ||
|
| !right->IsConstantOperand())) {
|
| - left = UseRegister(instr->BetterLeftOperand());
|
| + left = UseRegister(instr->LeastConstantOperand());
|
| temp = TempRegister();
|
| } else {
|
| - left = UseRegisterAtStart(instr->BetterLeftOperand());
|
| + left = UseRegisterAtStart(instr->LeastConstantOperand());
|
| }
|
| LMulI* mul = new(zone()) LMulI(left, right, temp);
|
| if (instr->CheckFlag(HValue::kCanOverflow) ||
|
| @@ -1475,8 +1475,8 @@ LInstruction* LChunkBuilder::DoAdd(HAdd* instr) {
|
| if (instr->representation().IsInteger32()) {
|
| ASSERT(instr->left()->representation().IsInteger32());
|
| ASSERT(instr->right()->representation().IsInteger32());
|
| - LOperand* left = UseRegisterAtStart(instr->BetterLeftOperand());
|
| - LOperand* right = UseOrConstantAtStart(instr->BetterRightOperand());
|
| + LOperand* left = UseRegisterAtStart(instr->LeastConstantOperand());
|
| + LOperand* right = UseOrConstantAtStart(instr->MostConstantOperand());
|
| LAddI* add = new(zone()) LAddI(left, right);
|
| LInstruction* result = DefineAsRegister(add);
|
| if (instr->CheckFlag(HValue::kCanOverflow)) {
|
| @@ -1507,8 +1507,8 @@ LInstruction* LChunkBuilder::DoMathMinMax(HMathMinMax* instr) {
|
| if (instr->representation().IsInteger32()) {
|
| ASSERT(instr->left()->representation().IsInteger32());
|
| ASSERT(instr->right()->representation().IsInteger32());
|
| - left = UseRegisterAtStart(instr->BetterLeftOperand());
|
| - right = UseOrConstantAtStart(instr->BetterRightOperand());
|
| + left = UseRegisterAtStart(instr->LeastConstantOperand());
|
| + right = UseOrConstantAtStart(instr->MostConstantOperand());
|
| } else {
|
| ASSERT(instr->representation().IsDouble());
|
| ASSERT(instr->left()->representation().IsDouble());
|
|
|