Index: src/full-codegen/ppc/full-codegen-ppc.cc |
diff --git a/src/full-codegen/ppc/full-codegen-ppc.cc b/src/full-codegen/ppc/full-codegen-ppc.cc |
index 7aed227891ce565ac2f27fc76d3114b1c6442a01..933b422c8ca6f487eb2494635eab39cb652c7cee 100644 |
--- a/src/full-codegen/ppc/full-codegen-ppc.cc |
+++ b/src/full-codegen/ppc/full-codegen-ppc.cc |
@@ -1730,14 +1730,13 @@ void FullCodeGenerator::VisitArrayLiteral(ArrayLiteral* expr) { |
if (!result_saved) { |
__ push(r3); |
- __ Push(Smi::FromInt(expr->literal_index())); |
result_saved = true; |
} |
VisitForAccumulatorValue(subexpr); |
__ LoadSmiLiteral(StoreDescriptor::NameRegister(), |
Smi::FromInt(array_index)); |
- __ LoadP(StoreDescriptor::ReceiverRegister(), MemOperand(sp, kPointerSize)); |
+ __ LoadP(StoreDescriptor::ReceiverRegister(), MemOperand(sp, 0)); |
EmitLoadStoreICSlot(expr->LiteralFeedbackSlot()); |
Handle<Code> ic = |
CodeFactory::KeyedStoreIC(isolate(), language_mode()).code(); |
@@ -1752,7 +1751,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(r3); |
result_saved = false; |
} |
@@ -1773,7 +1771,6 @@ void FullCodeGenerator::VisitArrayLiteral(ArrayLiteral* expr) { |
} |
if (result_saved) { |
- __ Drop(1); // literal index |
context()->PlugTOS(); |
} else { |
context()->Plug(r3); |