Index: src/x64/builtins-x64.cc |
diff --git a/src/x64/builtins-x64.cc b/src/x64/builtins-x64.cc |
index 167e37a54659d97fb5577279a4379695bb46b867..1e3b7b7d85e5e44a4aefec5899c6baebef0ae8a4 100644 |
--- a/src/x64/builtins-x64.cc |
+++ b/src/x64/builtins-x64.cc |
@@ -2071,9 +2071,7 @@ void Builtins::Generate_Apply(MacroAssembler* masm) { |
// Try to create the list from an arguments object. |
__ bind(&create_arguments); |
- __ movp(rbx, |
- FieldOperand(rax, JSObject::kHeaderSize + |
- Heap::kArgumentsLengthIndex * kPointerSize)); |
+ __ movp(rbx, FieldOperand(rax, JSArgumentsObject::kLengthOffset)); |
__ movp(rcx, FieldOperand(rax, JSObject::kElementsOffset)); |
__ cmpp(rbx, FieldOperand(rcx, FixedArray::kLengthOffset)); |
__ j(not_equal, &create_runtime); |