Index: src/ia32/builtins-ia32.cc |
diff --git a/src/ia32/builtins-ia32.cc b/src/ia32/builtins-ia32.cc |
index f70a0643305fb73e9373c60708f7ed2937b4bea0..1715ac156291f14d4e3d03c57872e2b169d29faf 100644 |
--- a/src/ia32/builtins-ia32.cc |
+++ b/src/ia32/builtins-ia32.cc |
@@ -1866,9 +1866,7 @@ void Builtins::Generate_Apply(MacroAssembler* masm) { |
// Try to create the list from an arguments object. |
__ bind(&create_arguments); |
- __ mov(ebx, |
- FieldOperand(eax, JSObject::kHeaderSize + |
- Heap::kArgumentsLengthIndex * kPointerSize)); |
+ __ mov(ebx, FieldOperand(eax, JSArgumentsObject::kLengthOffset)); |
__ mov(ecx, FieldOperand(eax, JSObject::kElementsOffset)); |
__ cmp(ebx, FieldOperand(ecx, FixedArray::kLengthOffset)); |
__ j(not_equal, &create_runtime); |