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 5666 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5677 | 5677 |
5678 STATIC_ASSERT(FCA::kContextSaveIndex == 6); | 5678 STATIC_ASSERT(FCA::kContextSaveIndex == 6); |
5679 STATIC_ASSERT(FCA::kCalleeIndex == 5); | 5679 STATIC_ASSERT(FCA::kCalleeIndex == 5); |
5680 STATIC_ASSERT(FCA::kDataIndex == 4); | 5680 STATIC_ASSERT(FCA::kDataIndex == 4); |
5681 STATIC_ASSERT(FCA::kReturnValueOffset == 3); | 5681 STATIC_ASSERT(FCA::kReturnValueOffset == 3); |
5682 STATIC_ASSERT(FCA::kReturnValueDefaultValueIndex == 2); | 5682 STATIC_ASSERT(FCA::kReturnValueDefaultValueIndex == 2); |
5683 STATIC_ASSERT(FCA::kIsolateIndex == 1); | 5683 STATIC_ASSERT(FCA::kIsolateIndex == 1); |
5684 STATIC_ASSERT(FCA::kHolderIndex == 0); | 5684 STATIC_ASSERT(FCA::kHolderIndex == 0); |
5685 STATIC_ASSERT(FCA::kArgsLength == 7); | 5685 STATIC_ASSERT(FCA::kArgsLength == 7); |
5686 | 5686 |
5687 DCHECK(argc.is_immediate() || r3.is(argc.reg())); | 5687 DCHECK(argc.is_immediate() || r6.is(argc.reg())); |
5688 | 5688 |
5689 // context save | 5689 // context save |
5690 __ push(context); | 5690 __ push(context); |
5691 if (!is_lazy) { | 5691 if (!is_lazy) { |
5692 // load context from callee | 5692 // load context from callee |
5693 __ LoadP(context, FieldMemOperand(callee, JSFunction::kContextOffset)); | 5693 __ LoadP(context, FieldMemOperand(callee, JSFunction::kContextOffset)); |
5694 } | 5694 } |
5695 | 5695 |
5696 // callee | 5696 // callee |
5697 __ push(callee); | 5697 __ push(callee); |
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5870 CallApiFunctionAndReturn(masm, api_function_address, thunk_ref, | 5870 CallApiFunctionAndReturn(masm, api_function_address, thunk_ref, |
5871 kStackUnwindSpace, NULL, return_value_operand, NULL); | 5871 kStackUnwindSpace, NULL, return_value_operand, NULL); |
5872 } | 5872 } |
5873 | 5873 |
5874 | 5874 |
5875 #undef __ | 5875 #undef __ |
5876 } // namespace internal | 5876 } // namespace internal |
5877 } // namespace v8 | 5877 } // namespace v8 |
5878 | 5878 |
5879 #endif // V8_TARGET_ARCH_PPC | 5879 #endif // V8_TARGET_ARCH_PPC |
OLD | NEW |