| Index: src/arm/lithium-arm.cc
|
| diff --git a/src/arm/lithium-arm.cc b/src/arm/lithium-arm.cc
|
| index 5c60f5321c19d787f6f5b10351ec3d06a2c69a89..d8643dce9d64838dbae27c551bf5fb3ce0dd0118 100644
|
| --- a/src/arm/lithium-arm.cc
|
| +++ b/src/arm/lithium-arm.cc
|
| @@ -1956,7 +1956,10 @@ LInstruction* LChunkBuilder::DoLoadKeyedFastElement(
|
| ASSERT(instr->key()->representation().IsInteger32());
|
| LOperand* obj = UseRegisterAtStart(instr->object());
|
| LOperand* key = UseRegisterAtStart(instr->key());
|
| - LLoadKeyedFastElement* result = new(zone()) LLoadKeyedFastElement(obj, key);
|
| + LLoadKeyedFastElement* result =
|
| + new(zone()) LLoadKeyedFastElement(obj,
|
| + key,
|
| + instr->index_offset());
|
| if (instr->RequiresHoleCheck()) AssignEnvironment(result);
|
| return DefineAsRegister(result);
|
| }
|
| @@ -1969,7 +1972,9 @@ LInstruction* LChunkBuilder::DoLoadKeyedFastDoubleElement(
|
| LOperand* elements = UseTempRegister(instr->elements());
|
| LOperand* key = UseRegisterOrConstantAtStart(instr->key());
|
| LLoadKeyedFastDoubleElement* result =
|
| - new(zone()) LLoadKeyedFastDoubleElement(elements, key);
|
| + new(zone()) LLoadKeyedFastDoubleElement(elements,
|
| + key,
|
| + instr->index_offset());
|
| return AssignEnvironment(DefineAsRegister(result));
|
| }
|
|
|
| @@ -1988,7 +1993,9 @@ LInstruction* LChunkBuilder::DoLoadKeyedSpecializedArrayElement(
|
| LOperand* external_pointer = UseRegister(instr->external_pointer());
|
| LOperand* key = UseRegisterOrConstant(instr->key());
|
| LLoadKeyedSpecializedArrayElement* result =
|
| - new(zone()) LLoadKeyedSpecializedArrayElement(external_pointer, key);
|
| + new(zone()) LLoadKeyedSpecializedArrayElement(external_pointer,
|
| + key,
|
| + instr->index_offset());
|
| LInstruction* load_instr = DefineAsRegister(result);
|
| // An unsigned int array load might overflow and cause a deopt, make sure it
|
| // has an environment.
|
| @@ -2021,7 +2028,10 @@ LInstruction* LChunkBuilder::DoStoreKeyedFastElement(
|
| LOperand* key = needs_write_barrier
|
| ? UseTempRegister(instr->key())
|
| : UseRegisterOrConstantAtStart(instr->key());
|
| - return new(zone()) LStoreKeyedFastElement(obj, key, val);
|
| + return new(zone()) LStoreKeyedFastElement(obj,
|
| + key,
|
| + val,
|
| + instr->index_offset());
|
| }
|
|
|
|
|
| @@ -2035,7 +2045,10 @@ LInstruction* LChunkBuilder::DoStoreKeyedFastDoubleElement(
|
| LOperand* val = UseTempRegister(instr->value());
|
| LOperand* key = UseRegisterOrConstantAtStart(instr->key());
|
|
|
| - return new(zone()) LStoreKeyedFastDoubleElement(elements, key, val);
|
| + return new(zone()) LStoreKeyedFastDoubleElement(elements,
|
| + key,
|
| + val,
|
| + instr->index_offset());
|
| }
|
|
|
|
|
| @@ -2063,7 +2076,8 @@ LInstruction* LChunkBuilder::DoStoreKeyedSpecializedArrayElement(
|
|
|
| return new(zone()) LStoreKeyedSpecializedArrayElement(external_pointer,
|
| key,
|
| - val);
|
| + val,
|
| + instr->index_offset());
|
| }
|
|
|
|
|
|
|