OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #if V8_TARGET_ARCH_PPC | 5 #if V8_TARGET_ARCH_PPC |
6 | 6 |
7 #include "src/base/bits.h" | 7 #include "src/base/bits.h" |
8 #include "src/bootstrapper.h" | 8 #include "src/bootstrapper.h" |
9 #include "src/code-stubs.h" | 9 #include "src/code-stubs.h" |
10 #include "src/codegen.h" | 10 #include "src/codegen.h" |
(...skipping 5579 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5590 // -- ... | 5590 // -- ... |
5591 // -- r5 : api_function_address | 5591 // -- r5 : api_function_address |
5592 // ----------------------------------- | 5592 // ----------------------------------- |
5593 | 5593 |
5594 Register api_function_address = ApiGetterDescriptor::function_address(); | 5594 Register api_function_address = ApiGetterDescriptor::function_address(); |
5595 int arg0Slot = 0; | 5595 int arg0Slot = 0; |
5596 int accessorInfoSlot = 0; | 5596 int accessorInfoSlot = 0; |
5597 int apiStackSpace = 0; | 5597 int apiStackSpace = 0; |
5598 DCHECK(api_function_address.is(r5)); | 5598 DCHECK(api_function_address.is(r5)); |
5599 | 5599 |
5600 __ mr(r3, sp); // r0 = Handle<Name> | 5600 __ mr(r3, sp); // r3 = Handle<Name> |
5601 __ addi(r4, r3, Operand(1 * kPointerSize)); // r4 = PCA | 5601 __ addi(r4, r3, Operand(1 * kPointerSize)); // r4 = PCA |
5602 | 5602 |
5603 // If ABI passes Handles (pointer-sized struct) in a register: | 5603 // If ABI passes Handles (pointer-sized struct) in a register: |
5604 // | 5604 // |
5605 // Create 2 extra slots on stack: | 5605 // Create 2 extra slots on stack: |
5606 // [0] space for DirectCEntryStub's LR save | 5606 // [0] space for DirectCEntryStub's LR save |
5607 // [1] AccessorInfo& | 5607 // [1] AccessorInfo& |
5608 // | 5608 // |
5609 // Otherwise: | 5609 // Otherwise: |
5610 // | 5610 // |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5644 kStackUnwindSpace, NULL, | 5644 kStackUnwindSpace, NULL, |
5645 MemOperand(fp, 6 * kPointerSize), NULL); | 5645 MemOperand(fp, 6 * kPointerSize), NULL); |
5646 } | 5646 } |
5647 | 5647 |
5648 | 5648 |
5649 #undef __ | 5649 #undef __ |
5650 } // namespace internal | 5650 } // namespace internal |
5651 } // namespace v8 | 5651 } // namespace v8 |
5652 | 5652 |
5653 #endif // V8_TARGET_ARCH_PPC | 5653 #endif // V8_TARGET_ARCH_PPC |
OLD | NEW |