Index: src/arm/code-stubs-arm.cc |
diff --git a/src/arm/code-stubs-arm.cc b/src/arm/code-stubs-arm.cc |
index 044c420e876a7870dd5feadc16258c1a559cc6f1..07feca53182926a7deb8a66e21160db12ebd0ea1 100644 |
--- a/src/arm/code-stubs-arm.cc |
+++ b/src/arm/code-stubs-arm.cc |
@@ -2337,7 +2337,7 @@ void ArgumentsAccessStub::GenerateNewSloppyFast(MacroAssembler* masm) { |
__ add(r9, r9, Operand(FixedArray::kHeaderSize)); |
// 3. Arguments object. |
- __ add(r9, r9, Operand(Heap::kArgumentsObjectSize)); |
+ __ add(r9, r9, Operand(Heap::kSloppyArgumentsObjectSize)); |
// Do the allocation of all three objects in one go. |
__ Allocate(r9, r0, r3, r4, &runtime, TAG_OBJECT); |
@@ -2346,7 +2346,7 @@ void ArgumentsAccessStub::GenerateNewSloppyFast(MacroAssembler* masm) { |
// r2 = argument count (tagged) |
// Get the arguments boilerplate from the current native context into r4. |
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); |
@@ -2382,7 +2382,7 @@ void ArgumentsAccessStub::GenerateNewSloppyFast(MacroAssembler* masm) { |
// Set up the elements pointer in the allocated arguments object. |
// If we allocated a parameter map, r4 will point there, otherwise |
// it will point to the backing store. |
- __ add(r4, r0, Operand(Heap::kArgumentsObjectSize)); |
+ __ add(r4, r0, Operand(Heap::kSloppyArgumentsObjectSize)); |
__ str(r4, FieldMemOperand(r0, JSObject::kElementsOffset)); |
// r0 = address of new object (tagged) |
@@ -2427,7 +2427,7 @@ void ArgumentsAccessStub::GenerateNewSloppyFast(MacroAssembler* masm) { |
// r1 = mapping index (tagged) |
// r3 = address of backing store (tagged) |
// r4 = address of parameter map (tagged), which is also the address of new |
- // object + Heap::kArgumentsObjectSize (tagged) |
+ // object + Heap::kSloppyArgumentsObjectSize (tagged) |
// r0 = temporary scratch (a.o., for address calculation) |
// r5 = the hole value |
__ jmp(¶meters_test); |
@@ -2445,7 +2445,7 @@ void ArgumentsAccessStub::GenerateNewSloppyFast(MacroAssembler* masm) { |
__ b(ne, ¶meters_loop); |
// Restore r0 = new object (tagged) |
- __ sub(r0, r4, Operand(Heap::kArgumentsObjectSize)); |
+ __ sub(r0, r4, Operand(Heap::kSloppyArgumentsObjectSize)); |
__ bind(&skip_parameter_map); |
// r0 = address of new object (tagged) |
@@ -2518,7 +2518,7 @@ void ArgumentsAccessStub::GenerateNewStrict(MacroAssembler* masm) { |
__ b(eq, &add_arguments_object); |
__ add(r1, r1, Operand(FixedArray::kHeaderSize / kPointerSize)); |
__ bind(&add_arguments_object); |
- __ add(r1, r1, Operand(Heap::kArgumentsObjectSizeStrict / kPointerSize)); |
+ __ add(r1, r1, Operand(Heap::kStrictArgumentsObjectSize / kPointerSize)); |
// Do the allocation of both objects in one go. |
__ Allocate(r1, r0, r2, r3, &runtime, |
@@ -2528,7 +2528,7 @@ void ArgumentsAccessStub::GenerateNewStrict(MacroAssembler* masm) { |
__ ldr(r4, MemOperand(cp, Context::SlotOffset(Context::GLOBAL_OBJECT_INDEX))); |
__ ldr(r4, FieldMemOperand(r4, GlobalObject::kNativeContextOffset)); |
__ ldr(r4, MemOperand(r4, Context::SlotOffset( |
- Context::STRICT_MODE_ARGUMENTS_BOILERPLATE_INDEX))); |
+ Context::STRICT_ARGUMENTS_BOILERPLATE_INDEX))); |
// Copy the JS object part. |
__ CopyFields(r0, r4, d0, JSObject::kHeaderSize / kPointerSize); |
@@ -2549,7 +2549,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. |
- __ add(r4, r0, Operand(Heap::kArgumentsObjectSizeStrict)); |
+ __ add(r4, r0, Operand(Heap::kStrictArgumentsObjectSize)); |
__ str(r4, FieldMemOperand(r0, JSObject::kElementsOffset)); |
__ LoadRoot(r3, Heap::kFixedArrayMapRootIndex); |
__ str(r3, FieldMemOperand(r4, FixedArray::kMapOffset)); |