Index: src/full-codegen/mips/full-codegen-mips.cc |
diff --git a/src/full-codegen/mips/full-codegen-mips.cc b/src/full-codegen/mips/full-codegen-mips.cc |
index cded3e49da1b534b946f01cedf47811593984770..5eeb73cf6fc68a679f68900d770f38879180aabb 100644 |
--- a/src/full-codegen/mips/full-codegen-mips.cc |
+++ b/src/full-codegen/mips/full-codegen-mips.cc |
@@ -1764,14 +1764,13 @@ void FullCodeGenerator::VisitArrayLiteral(ArrayLiteral* expr) { |
if (!result_saved) { |
__ push(v0); // array literal |
- __ Push(Smi::FromInt(expr->literal_index())); |
result_saved = true; |
} |
VisitForAccumulatorValue(subexpr); |
__ li(StoreDescriptor::NameRegister(), Operand(Smi::FromInt(array_index))); |
- __ lw(StoreDescriptor::ReceiverRegister(), MemOperand(sp, kPointerSize)); |
+ __ lw(StoreDescriptor::ReceiverRegister(), MemOperand(sp, 0)); |
__ mov(StoreDescriptor::ValueRegister(), result_register()); |
EmitLoadStoreICSlot(expr->LiteralFeedbackSlot()); |
Handle<Code> ic = |
@@ -1787,7 +1786,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(v0); |
result_saved = false; |
} |
@@ -1808,7 +1806,6 @@ void FullCodeGenerator::VisitArrayLiteral(ArrayLiteral* expr) { |
} |
if (result_saved) { |
- __ Pop(); // literal index |
context()->PlugTOS(); |
} else { |
context()->Plug(v0); |