Index: src/arm/builtins-arm.cc |
diff --git a/src/arm/builtins-arm.cc b/src/arm/builtins-arm.cc |
index 673d258689bf7a4bab831f0297f02f0ff7890079..d47acaad7848b51f0cb2c1c2d042528fe79128c6 100644 |
--- a/src/arm/builtins-arm.cc |
+++ b/src/arm/builtins-arm.cc |
@@ -1949,9 +1949,7 @@ void Builtins::Generate_Apply(MacroAssembler* masm) { |
// Try to create the list from an arguments object. |
__ bind(&create_arguments); |
- __ ldr(r2, |
- FieldMemOperand(r0, JSObject::kHeaderSize + |
- Heap::kArgumentsLengthIndex * kPointerSize)); |
+ __ ldr(r2, FieldMemOperand(r0, JSArgumentsObject::kLengthOffset)); |
__ ldr(r4, FieldMemOperand(r0, JSObject::kElementsOffset)); |
__ ldr(ip, FieldMemOperand(r4, FixedArray::kLengthOffset)); |
__ cmp(r2, ip); |