Index: src/full-codegen/x87/full-codegen-x87.cc |
diff --git a/src/full-codegen/x87/full-codegen-x87.cc b/src/full-codegen/x87/full-codegen-x87.cc |
index d4840a2a6e125022c4a3a52c40122f3c3971d081..188051857503923c4e3128f41c7c8656937f93f3 100644 |
--- a/src/full-codegen/x87/full-codegen-x87.cc |
+++ b/src/full-codegen/x87/full-codegen-x87.cc |
@@ -1452,15 +1452,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))); |
@@ -1649,15 +1647,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); |