Index: src/ppc/code-stubs-ppc.cc |
diff --git a/src/ppc/code-stubs-ppc.cc b/src/ppc/code-stubs-ppc.cc |
index d0becd753210626ab812d2b592dc3bc6c5be431e..82a4553e7c468c8bfd0caa814595365bde1dd934 100644 |
--- a/src/ppc/code-stubs-ppc.cc |
+++ b/src/ppc/code-stubs-ppc.cc |
@@ -5585,10 +5585,10 @@ |
void CallApiGetterStub::Generate(MacroAssembler* masm) { |
// ----------- S t a t e ------------- |
- // -- sp[0] : name |
- // -- sp[4 .. (4 + kArgsLength*4)] : v8::PropertyCallbackInfo::args_ |
+ // -- sp[0] : name |
+ // -- sp[4 - kArgsLength*4] : PropertyCallbackArguments object |
// -- ... |
- // -- r5 : api_function_address |
+ // -- r5 : api_function_address |
// ----------------------------------- |
Register api_function_address = ApiGetterDescriptor::function_address(); |
@@ -5597,12 +5597,8 @@ |
int apiStackSpace = 0; |
DCHECK(api_function_address.is(r5)); |
- // v8::PropertyCallbackInfo::args_ array and name handle. |
- const int kStackUnwindSpace = PropertyCallbackArguments::kArgsLength + 1; |
- |
- // Load address of v8::PropertyAccessorInfo::args_ array and name handle. |
__ mr(r3, sp); // r0 = Handle<Name> |
- __ addi(r4, r3, Operand(1 * kPointerSize)); // r4 = v8::PCI::args_ |
+ __ addi(r4, r3, Operand(1 * kPointerSize)); // r4 = PCA |
// If ABI passes Handles (pointer-sized struct) in a register: |
// |
@@ -5634,20 +5630,19 @@ |
__ addi(r3, sp, Operand(arg0Slot * kPointerSize)); |
} |
- // Create v8::PropertyCallbackInfo object on the stack and initialize |
- // it's args_ field. |
+ // Create PropertyAccessorInfo instance on the stack above the exit frame with |
+ // r4 (internal::Object** args_) as the data. |
__ StoreP(r4, MemOperand(sp, accessorInfoSlot * kPointerSize)); |
+ // r4 = AccessorInfo& |
__ addi(r4, sp, Operand(accessorInfoSlot * kPointerSize)); |
- // r4 = v8::PropertyCallbackInfo& |
+ |
+ const int kStackUnwindSpace = PropertyCallbackArguments::kArgsLength + 1; |
ExternalReference thunk_ref = |
ExternalReference::invoke_accessor_getter_callback(isolate()); |
- |
- // +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, return_value_operand, NULL); |
+ kStackUnwindSpace, NULL, |
+ MemOperand(fp, 6 * kPointerSize), NULL); |
} |