Index: src/mips/lithium-mips.cc |
diff --git a/src/mips/lithium-mips.cc b/src/mips/lithium-mips.cc |
index 3513d20bd1db65d47c5b78edf6117cbb48cd7ae3..169816256721aa92b9658a2be13d13ced8288a09 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); |