Index: src/full-codegen/arm/full-codegen-arm.cc |
diff --git a/src/full-codegen/arm/full-codegen-arm.cc b/src/full-codegen/arm/full-codegen-arm.cc |
index 3ab949fd35b1732f8156b6b23a273ba1f45e7f7b..683ae6e2d19e82446c8726c1525e41cd09ac0e54 100644 |
--- a/src/full-codegen/arm/full-codegen-arm.cc |
+++ b/src/full-codegen/arm/full-codegen-arm.cc |
@@ -1768,13 +1768,12 @@ void FullCodeGenerator::VisitArrayLiteral(ArrayLiteral* expr) { |
if (!result_saved) { |
__ push(r0); |
- __ Push(Smi::FromInt(expr->literal_index())); |
result_saved = true; |
} |
VisitForAccumulatorValue(subexpr); |
__ mov(StoreDescriptor::NameRegister(), Operand(Smi::FromInt(array_index))); |
- __ ldr(StoreDescriptor::ReceiverRegister(), MemOperand(sp, kPointerSize)); |
+ __ ldr(StoreDescriptor::ReceiverRegister(), MemOperand(sp, 0)); |
EmitLoadStoreICSlot(expr->LiteralFeedbackSlot()); |
Handle<Code> ic = |
CodeFactory::KeyedStoreIC(isolate(), language_mode()).code(); |
@@ -1789,7 +1788,6 @@ void FullCodeGenerator::VisitArrayLiteral(ArrayLiteral* expr) { |
// (inclusive) and these elements gets appended to the array. Note that the |
// number elements an iterable produces is unknown ahead of time. |
if (array_index < length && result_saved) { |
- __ pop(); // literal index |
__ Pop(r0); |
result_saved = false; |
} |
@@ -1810,7 +1808,6 @@ void FullCodeGenerator::VisitArrayLiteral(ArrayLiteral* expr) { |
} |
if (result_saved) { |
- __ pop(); // literal index |
context()->PlugTOS(); |
} else { |
context()->Plug(r0); |