Index: src/arm64/builtins-arm64.cc |
diff --git a/src/arm64/builtins-arm64.cc b/src/arm64/builtins-arm64.cc |
index 91f4150f5c6cc9bf3e0170017eb3c685f7dd90c7..0840eb952b2a45cab665b0715820e6d3701da433 100644 |
--- a/src/arm64/builtins-arm64.cc |
+++ b/src/arm64/builtins-arm64.cc |
@@ -1974,10 +1974,8 @@ void Builtins::Generate_Apply(MacroAssembler* masm) { |
// Try to create the list from an arguments object. |
__ Bind(&create_arguments); |
- __ Ldrsw(len, UntagSmiFieldMemOperand( |
- arguments_list, |
- JSObject::kHeaderSize + |
- Heap::kArgumentsLengthIndex * kPointerSize)); |
+ __ Ldrsw(len, UntagSmiFieldMemOperand(arguments_list, |
+ JSArgumentsObject::kLengthOffset)); |
__ Ldr(x10, FieldMemOperand(arguments_list, JSObject::kElementsOffset)); |
__ Ldrsw(x11, UntagSmiFieldMemOperand(x10, FixedArray::kLengthOffset)); |
__ CompareAndBranch(len, x11, ne, &create_runtime); |