Index: src/arm64/code-stubs-arm64.cc |
diff --git a/src/arm64/code-stubs-arm64.cc b/src/arm64/code-stubs-arm64.cc |
index bb0971d64fec9ede870cbe6fe22913f36c18d1c0..a9b647ca80095acce040ac6a3823dc16dae6ea48 100644 |
--- a/src/arm64/code-stubs-arm64.cc |
+++ b/src/arm64/code-stubs-arm64.cc |
@@ -5817,21 +5817,17 @@ |
void CallApiGetterStub::Generate(MacroAssembler* masm) { |
// ----------- S t a t e ------------- |
- // -- sp[0] : name |
- // -- sp[8 .. (8 + kArgsLength*8)] : v8::PropertyCallbackInfo::args_ |
+ // -- sp[0] : name |
+ // -- sp[8 - kArgsLength*8] : PropertyCallbackArguments object |
// -- ... |
- // -- x2 : api_function_address |
+ // -- x2 : api_function_address |
// ----------------------------------- |
Register api_function_address = ApiGetterDescriptor::function_address(); |
DCHECK(api_function_address.is(x2)); |
- // v8::PropertyCallbackInfo::args_ array and name handle. |
- const int kStackUnwindSpace = PropertyCallbackArguments::kArgsLength + 1; |
- |
- // Load address of v8::PropertyAccessorInfo::args_ array and name handle. |
__ Mov(x0, masm->StackPointer()); // x0 = Handle<Name> |
- __ Add(x1, x0, 1 * kPointerSize); // x1 = v8::PCI::args_ |
+ __ Add(x1, x0, 1 * kPointerSize); // x1 = PCA |
const int kApiStackSpace = 1; |
@@ -5842,22 +5838,20 @@ |
FrameScope frame_scope(masm, StackFrame::MANUAL); |
__ EnterExitFrame(false, x10, kApiStackSpace + kCallApiFunctionSpillSpace); |
- // Create v8::PropertyCallbackInfo object on the stack and initialize |
- // it's args_ field. |
+ // Create PropertyAccessorInfo instance on the stack above the exit frame with |
+ // x1 (internal::Object** args_) as the data. |
__ Poke(x1, 1 * kPointerSize); |
- __ Add(x1, masm->StackPointer(), 1 * kPointerSize); |
- // x1 = v8::PropertyCallbackInfo& |
+ __ Add(x1, masm->StackPointer(), 1 * kPointerSize); // x1 = AccessorInfo& |
+ |
+ const int kStackUnwindSpace = PropertyCallbackArguments::kArgsLength + 1; |
ExternalReference thunk_ref = |
ExternalReference::invoke_accessor_getter_callback(isolate()); |
const int spill_offset = 1 + kApiStackSpace; |
- // +3 is to skip prolog, return address and name handle. |
- MemOperand return_value_operand( |
- fp, (PropertyCallbackArguments::kReturnValueOffset + 3) * kPointerSize); |
CallApiFunctionAndReturn(masm, api_function_address, thunk_ref, |
kStackUnwindSpace, NULL, spill_offset, |
- return_value_operand, NULL); |
+ MemOperand(fp, 6 * kPointerSize), NULL); |
} |