Index: src/mips/code-stubs-mips.cc |
diff --git a/src/mips/code-stubs-mips.cc b/src/mips/code-stubs-mips.cc |
index 15f3b25eede1f23be640e55ef52c5c385633ef34..dc8ff6e23aee3df8b3db2632e4e484fb432b6895 100644 |
--- a/src/mips/code-stubs-mips.cc |
+++ b/src/mips/code-stubs-mips.cc |
@@ -2455,7 +2455,7 @@ void ArgumentsAccessStub::GenerateNewSloppyFast(MacroAssembler* masm) { |
__ Addu(t5, t5, Operand(FixedArray::kHeaderSize)); |
// 3. Arguments object. |
- __ Addu(t5, t5, Operand(Heap::kArgumentsObjectSize)); |
+ __ Addu(t5, t5, Operand(Heap::kSloppyArgumentsObjectSize)); |
// Do the allocation of all three objects in one go. |
__ Allocate(t5, v0, a3, t0, &runtime, TAG_OBJECT); |
@@ -2464,7 +2464,7 @@ void ArgumentsAccessStub::GenerateNewSloppyFast(MacroAssembler* masm) { |
// a2 = argument count (tagged) |
// Get the arguments boilerplate from the current native context into t0. |
const int kNormalOffset = |
- Context::SlotOffset(Context::ARGUMENTS_BOILERPLATE_INDEX); |
+ Context::SlotOffset(Context::SLOPPY_ARGUMENTS_BOILERPLATE_INDEX); |
const int kAliasedOffset = |
Context::SlotOffset(Context::ALIASED_ARGUMENTS_BOILERPLATE_INDEX); |
@@ -2505,7 +2505,7 @@ void ArgumentsAccessStub::GenerateNewSloppyFast(MacroAssembler* masm) { |
// Set up the elements pointer in the allocated arguments object. |
// If we allocated a parameter map, t0 will point there, otherwise |
// it will point to the backing store. |
- __ Addu(t0, v0, Operand(Heap::kArgumentsObjectSize)); |
+ __ Addu(t0, v0, Operand(Heap::kSloppyArgumentsObjectSize)); |
__ sw(t0, FieldMemOperand(v0, JSObject::kElementsOffset)); |
// v0 = address of new object (tagged) |
@@ -2646,7 +2646,7 @@ void ArgumentsAccessStub::GenerateNewStrict(MacroAssembler* masm) { |
__ Addu(a1, a1, Operand(FixedArray::kHeaderSize / kPointerSize)); |
__ bind(&add_arguments_object); |
- __ Addu(a1, a1, Operand(Heap::kArgumentsObjectSizeStrict / kPointerSize)); |
+ __ Addu(a1, a1, Operand(Heap::kStrictArgumentsObjectSize / kPointerSize)); |
// Do the allocation of both objects in one go. |
__ Allocate(a1, v0, a2, a3, &runtime, |
@@ -2656,7 +2656,7 @@ void ArgumentsAccessStub::GenerateNewStrict(MacroAssembler* masm) { |
__ lw(t0, MemOperand(cp, Context::SlotOffset(Context::GLOBAL_OBJECT_INDEX))); |
__ lw(t0, FieldMemOperand(t0, GlobalObject::kNativeContextOffset)); |
__ lw(t0, MemOperand(t0, Context::SlotOffset( |
- Context::STRICT_MODE_ARGUMENTS_BOILERPLATE_INDEX))); |
+ Context::STRICT_ARGUMENTS_BOILERPLATE_INDEX))); |
// Copy the JS object part. |
__ CopyFields(v0, t0, a3.bit(), JSObject::kHeaderSize / kPointerSize); |
@@ -2675,7 +2675,7 @@ void ArgumentsAccessStub::GenerateNewStrict(MacroAssembler* masm) { |
// Set up the elements pointer in the allocated arguments object and |
// initialize the header in the elements fixed array. |
- __ Addu(t0, v0, Operand(Heap::kArgumentsObjectSizeStrict)); |
+ __ Addu(t0, v0, Operand(Heap::kStrictArgumentsObjectSize)); |
__ sw(t0, FieldMemOperand(v0, JSObject::kElementsOffset)); |
__ LoadRoot(a3, Heap::kFixedArrayMapRootIndex); |
__ sw(a3, FieldMemOperand(t0, FixedArray::kMapOffset)); |