| 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 ad0227b47602e0da25704fd7e8a5bc031b291c89..2af3979dfe157ea587ccd08360592ac61a6c468b 100644
|
| --- a/src/full-codegen/ia32/full-codegen-ia32.cc
|
| +++ b/src/full-codegen/ia32/full-codegen-ia32.cc
|
| @@ -1460,15 +1460,13 @@ void FullCodeGenerator::VisitObjectLiteral(ObjectLiteral* expr) {
|
| // If any of the keys would store to the elements array, then we shouldn't
|
| // allow it.
|
| if (MustCreateObjectLiteralWithRuntime(expr)) {
|
| - __ mov(edi, Operand(ebp, JavaScriptFrameConstants::kFunctionOffset));
|
| - __ push(FieldOperand(edi, JSFunction::kLiteralsOffset));
|
| + __ push(Operand(ebp, JavaScriptFrameConstants::kFunctionOffset));
|
| __ push(Immediate(Smi::FromInt(expr->literal_index())));
|
| __ push(Immediate(constant_properties));
|
| __ push(Immediate(Smi::FromInt(flags)));
|
| __ CallRuntime(Runtime::kCreateObjectLiteral, 4);
|
| } else {
|
| - __ mov(edi, Operand(ebp, JavaScriptFrameConstants::kFunctionOffset));
|
| - __ mov(eax, FieldOperand(edi, JSFunction::kLiteralsOffset));
|
| + __ mov(eax, Operand(ebp, JavaScriptFrameConstants::kFunctionOffset));
|
| __ mov(ebx, Immediate(Smi::FromInt(expr->literal_index())));
|
| __ mov(ecx, Immediate(constant_properties));
|
| __ mov(edx, Immediate(Smi::FromInt(flags)));
|
| @@ -1657,15 +1655,13 @@ void FullCodeGenerator::VisitArrayLiteral(ArrayLiteral* expr) {
|
| }
|
|
|
| if (MustCreateArrayLiteralWithRuntime(expr)) {
|
| - __ mov(ebx, Operand(ebp, JavaScriptFrameConstants::kFunctionOffset));
|
| - __ push(FieldOperand(ebx, JSFunction::kLiteralsOffset));
|
| + __ push(Operand(ebp, JavaScriptFrameConstants::kFunctionOffset));
|
| __ push(Immediate(Smi::FromInt(expr->literal_index())));
|
| __ push(Immediate(constant_elements));
|
| __ push(Immediate(Smi::FromInt(expr->ComputeFlags())));
|
| __ CallRuntime(Runtime::kCreateArrayLiteral, 4);
|
| } else {
|
| - __ mov(ebx, Operand(ebp, JavaScriptFrameConstants::kFunctionOffset));
|
| - __ mov(eax, FieldOperand(ebx, JSFunction::kLiteralsOffset));
|
| + __ mov(eax, Operand(ebp, JavaScriptFrameConstants::kFunctionOffset));
|
| __ mov(ebx, Immediate(Smi::FromInt(expr->literal_index())));
|
| __ mov(ecx, Immediate(constant_elements));
|
| FastCloneShallowArrayStub stub(isolate(), allocation_site_mode);
|
|
|