| Index: src/mips/lithium-mips.cc
|
| diff --git a/src/mips/lithium-mips.cc b/src/mips/lithium-mips.cc
|
| index f2fbb270683929f68be305715b1a29900f7433f3..ee6d9dd6fd4af21efce84915d4816e2c11f15379 100644
|
| --- a/src/mips/lithium-mips.cc
|
| +++ b/src/mips/lithium-mips.cc
|
| @@ -1483,7 +1483,7 @@ LInstruction* LChunkBuilder::DoDateField(HDateField* instr) {
|
|
|
|
|
| LInstruction* LChunkBuilder::DoBoundsCheck(HBoundsCheck* instr) {
|
| - LOperand* value = UseRegisterAtStart(instr->index());
|
| + LOperand* value = UseRegisterOrConstantAtStart(instr->index());
|
| LOperand* length = UseRegister(instr->length());
|
| return AssignEnvironment(new(zone()) LBoundsCheck(value, length));
|
| }
|
| @@ -1776,7 +1776,7 @@ LInstruction* LChunkBuilder::DoLoadKeyedFastElement(
|
| ASSERT(instr->key()->representation().IsInteger32() ||
|
| instr->key()->representation().IsTagged());
|
| LOperand* obj = UseRegisterAtStart(instr->object());
|
| - LOperand* key = UseRegisterAtStart(instr->key());
|
| + LOperand* key = UseRegisterOrConstantAtStart(instr->key());
|
| LLoadKeyedFastElement* result = new(zone()) LLoadKeyedFastElement(obj, key);
|
| if (instr->RequiresHoleCheck()) AssignEnvironment(result);
|
| return DefineAsRegister(result);
|
|
|