Index: src/full-codegen/ia32/full-codegen-ia32.cc |
diff --git a/src/full-codegen/ia32/full-codegen-ia32.cc b/src/full-codegen/ia32/full-codegen-ia32.cc |
index 00947e75139045834d854023278a970cde787379..ad0227b47602e0da25704fd7e8a5bc031b291c89 100644 |
--- a/src/full-codegen/ia32/full-codegen-ia32.cc |
+++ b/src/full-codegen/ia32/full-codegen-ia32.cc |
@@ -1690,14 +1690,13 @@ void FullCodeGenerator::VisitArrayLiteral(ArrayLiteral* expr) { |
if (!result_saved) { |
__ push(eax); // array literal. |
- __ push(Immediate(Smi::FromInt(expr->literal_index()))); |
result_saved = true; |
} |
VisitForAccumulatorValue(subexpr); |
__ mov(StoreDescriptor::NameRegister(), |
Immediate(Smi::FromInt(array_index))); |
- __ mov(StoreDescriptor::ReceiverRegister(), Operand(esp, kPointerSize)); |
+ __ mov(StoreDescriptor::ReceiverRegister(), Operand(esp, 0)); |
EmitLoadStoreICSlot(expr->LiteralFeedbackSlot()); |
Handle<Code> ic = |
CodeFactory::KeyedStoreIC(isolate(), language_mode()).code(); |
@@ -1711,7 +1710,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) { |
- __ Drop(1); // literal index |
__ Pop(eax); |
result_saved = false; |
} |
@@ -1732,7 +1730,6 @@ void FullCodeGenerator::VisitArrayLiteral(ArrayLiteral* expr) { |
} |
if (result_saved) { |
- __ Drop(1); // literal index |
context()->PlugTOS(); |
} else { |
context()->Plug(eax); |