| Index: src/arm64/lithium-arm64.cc
|
| diff --git a/src/arm64/lithium-arm64.cc b/src/arm64/lithium-arm64.cc
|
| index a2c3a3212073a47118dee65cf5367a540857298c..f6524cfa71f02e524b64e3d932513c26e9a5d7d9 100644
|
| --- a/src/arm64/lithium-arm64.cc
|
| +++ b/src/arm64/lithium-arm64.cc
|
| @@ -1645,10 +1645,9 @@ LInstruction* LChunkBuilder::DoLoadKeyed(HLoadKeyed* instr) {
|
| ASSERT(instr->key()->representation().IsSmiOrInteger32());
|
| ElementsKind elements_kind = instr->elements_kind();
|
| LOperand* elements = UseRegister(instr->elements());
|
| + LOperand* key = UseRegisterOrConstant(instr->key());
|
|
|
| if (!instr->is_typed_elements()) {
|
| - LOperand* key = UseRegisterOrConstantAtStart(instr->key());
|
| -
|
| if (instr->representation().IsDouble()) {
|
| LOperand* temp = (!instr->key()->IsConstant() ||
|
| instr->RequiresHoleCheck())
|
| @@ -1676,7 +1675,6 @@ LInstruction* LChunkBuilder::DoLoadKeyed(HLoadKeyed* instr) {
|
| (instr->representation().IsDouble() &&
|
| IsDoubleOrFloatElementsKind(instr->elements_kind())));
|
|
|
| - LOperand* key = UseRegisterOrConstant(instr->key());
|
| LOperand* temp = instr->key()->IsConstant() ? NULL : TempRegister();
|
| LInstruction* result = DefineAsRegister(
|
| new(zone()) LLoadKeyedExternal(elements, key, temp));
|
| @@ -2166,6 +2164,7 @@ LInstruction* LChunkBuilder::DoStoreGlobalCell(HStoreGlobalCell* instr) {
|
|
|
|
|
| LInstruction* LChunkBuilder::DoStoreKeyed(HStoreKeyed* instr) {
|
| + LOperand* key = UseRegisterOrConstant(instr->key());
|
| LOperand* temp = NULL;
|
| LOperand* elements = NULL;
|
| LOperand* val = NULL;
|
| @@ -2192,19 +2191,16 @@ LInstruction* LChunkBuilder::DoStoreKeyed(HStoreKeyed* instr) {
|
| instr->elements()->representation().IsTagged()) ||
|
| (instr->is_external() &&
|
| instr->elements()->representation().IsExternal()));
|
| - LOperand* key = UseRegisterOrConstant(instr->key());
|
| return new(zone()) LStoreKeyedExternal(elements, key, val, temp);
|
|
|
| } else if (instr->value()->representation().IsDouble()) {
|
| ASSERT(instr->elements()->representation().IsTagged());
|
| - LOperand* key = UseRegisterOrConstantAtStart(instr->key());
|
| return new(zone()) LStoreKeyedFixedDouble(elements, key, val, temp);
|
|
|
| } else {
|
| ASSERT(instr->elements()->representation().IsTagged());
|
| ASSERT(instr->value()->representation().IsSmiOrTagged() ||
|
| instr->value()->representation().IsInteger32());
|
| - LOperand* key = UseRegisterOrConstantAtStart(instr->key());
|
| return new(zone()) LStoreKeyedFixed(elements, key, val, temp);
|
| }
|
| }
|
|
|