| Index: src/full-codegen/x64/full-codegen-x64.cc
|
| diff --git a/src/full-codegen/x64/full-codegen-x64.cc b/src/full-codegen/x64/full-codegen-x64.cc
|
| index c181b6954c6fc927fe2be41f74b142d8e757da9c..c259c1e3c5b4bf2f419ace7445c571332c7544bc 100644
|
| --- a/src/full-codegen/x64/full-codegen-x64.cc
|
| +++ b/src/full-codegen/x64/full-codegen-x64.cc
|
| @@ -1715,13 +1715,12 @@ void FullCodeGenerator::VisitArrayLiteral(ArrayLiteral* expr) {
|
|
|
| if (!result_saved) {
|
| __ Push(rax); // array literal
|
| - __ Push(Smi::FromInt(expr->literal_index()));
|
| result_saved = true;
|
| }
|
| VisitForAccumulatorValue(subexpr);
|
|
|
| __ Move(StoreDescriptor::NameRegister(), Smi::FromInt(array_index));
|
| - __ movp(StoreDescriptor::ReceiverRegister(), Operand(rsp, kPointerSize));
|
| + __ movp(StoreDescriptor::ReceiverRegister(), Operand(rsp, 0));
|
| EmitLoadStoreICSlot(expr->LiteralFeedbackSlot());
|
| Handle<Code> ic =
|
| CodeFactory::KeyedStoreIC(isolate(), language_mode()).code();
|
| @@ -1736,7 +1735,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(rax);
|
| result_saved = false;
|
| }
|
| @@ -1757,7 +1755,6 @@ void FullCodeGenerator::VisitArrayLiteral(ArrayLiteral* expr) {
|
| }
|
|
|
| if (result_saved) {
|
| - __ Drop(1); // literal index
|
| context()->PlugTOS();
|
| } else {
|
| context()->Plug(rax);
|
|
|