| 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 c259c1e3c5b4bf2f419ace7445c571332c7544bc..d5b710b799c720d2744db82e7fa87989143f82d8 100644
|
| --- a/src/full-codegen/x64/full-codegen-x64.cc
|
| +++ b/src/full-codegen/x64/full-codegen-x64.cc
|
| @@ -1486,15 +1486,13 @@ void FullCodeGenerator::VisitObjectLiteral(ObjectLiteral* expr) {
|
| Handle<FixedArray> constant_properties = expr->constant_properties();
|
| int flags = expr->ComputeFlags();
|
| if (MustCreateObjectLiteralWithRuntime(expr)) {
|
| - __ movp(rdi, Operand(rbp, JavaScriptFrameConstants::kFunctionOffset));
|
| - __ Push(FieldOperand(rdi, JSFunction::kLiteralsOffset));
|
| + __ Push(Operand(rbp, JavaScriptFrameConstants::kFunctionOffset));
|
| __ Push(Smi::FromInt(expr->literal_index()));
|
| __ Push(constant_properties);
|
| __ Push(Smi::FromInt(flags));
|
| __ CallRuntime(Runtime::kCreateObjectLiteral, 4);
|
| } else {
|
| - __ movp(rdi, Operand(rbp, JavaScriptFrameConstants::kFunctionOffset));
|
| - __ movp(rax, FieldOperand(rdi, JSFunction::kLiteralsOffset));
|
| + __ movp(rax, Operand(rbp, JavaScriptFrameConstants::kFunctionOffset));
|
| __ Move(rbx, Smi::FromInt(expr->literal_index()));
|
| __ Move(rcx, constant_properties);
|
| __ Move(rdx, Smi::FromInt(flags));
|
| @@ -1682,15 +1680,13 @@ void FullCodeGenerator::VisitArrayLiteral(ArrayLiteral* expr) {
|
| }
|
|
|
| if (MustCreateArrayLiteralWithRuntime(expr)) {
|
| - __ movp(rbx, Operand(rbp, JavaScriptFrameConstants::kFunctionOffset));
|
| - __ Push(FieldOperand(rbx, JSFunction::kLiteralsOffset));
|
| + __ Push(Operand(rbp, JavaScriptFrameConstants::kFunctionOffset));
|
| __ Push(Smi::FromInt(expr->literal_index()));
|
| __ Push(constant_elements);
|
| __ Push(Smi::FromInt(expr->ComputeFlags()));
|
| __ CallRuntime(Runtime::kCreateArrayLiteral, 4);
|
| } else {
|
| - __ movp(rbx, Operand(rbp, JavaScriptFrameConstants::kFunctionOffset));
|
| - __ movp(rax, FieldOperand(rbx, JSFunction::kLiteralsOffset));
|
| + __ movp(rax, Operand(rbp, JavaScriptFrameConstants::kFunctionOffset));
|
| __ Move(rbx, Smi::FromInt(expr->literal_index()));
|
| __ Move(rcx, constant_elements);
|
| FastCloneShallowArrayStub stub(isolate(), allocation_site_mode);
|
|
|