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 5626 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5637 | 5637 |
5638 STATIC_ASSERT(FCA::kContextSaveIndex == 6); | 5638 STATIC_ASSERT(FCA::kContextSaveIndex == 6); |
5639 STATIC_ASSERT(FCA::kCalleeIndex == 5); | 5639 STATIC_ASSERT(FCA::kCalleeIndex == 5); |
5640 STATIC_ASSERT(FCA::kDataIndex == 4); | 5640 STATIC_ASSERT(FCA::kDataIndex == 4); |
5641 STATIC_ASSERT(FCA::kReturnValueOffset == 3); | 5641 STATIC_ASSERT(FCA::kReturnValueOffset == 3); |
5642 STATIC_ASSERT(FCA::kReturnValueDefaultValueIndex == 2); | 5642 STATIC_ASSERT(FCA::kReturnValueDefaultValueIndex == 2); |
5643 STATIC_ASSERT(FCA::kIsolateIndex == 1); | 5643 STATIC_ASSERT(FCA::kIsolateIndex == 1); |
5644 STATIC_ASSERT(FCA::kHolderIndex == 0); | 5644 STATIC_ASSERT(FCA::kHolderIndex == 0); |
5645 STATIC_ASSERT(FCA::kArgsLength == 7); | 5645 STATIC_ASSERT(FCA::kArgsLength == 7); |
5646 | 5646 |
5647 DCHECK(argc.is_immediate() || r6.is(argc.reg())); | |
5648 | |
5649 // context save | 5647 // context save |
5650 __ push(context); | 5648 __ push(context); |
5651 if (!is_lazy()) { | 5649 if (!is_lazy()) { |
5652 // load context from callee | 5650 // load context from callee |
5653 __ LoadP(context, FieldMemOperand(callee, JSFunction::kContextOffset)); | 5651 __ LoadP(context, FieldMemOperand(callee, JSFunction::kContextOffset)); |
5654 } | 5652 } |
5655 | 5653 |
5656 // callee | 5654 // callee |
5657 __ push(callee); | 5655 __ push(callee); |
5658 | 5656 |
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5798 CallApiFunctionAndReturn(masm, api_function_address, thunk_ref, | 5796 CallApiFunctionAndReturn(masm, api_function_address, thunk_ref, |
5799 kStackUnwindSpace, NULL, return_value_operand, NULL); | 5797 kStackUnwindSpace, NULL, return_value_operand, NULL); |
5800 } | 5798 } |
5801 | 5799 |
5802 | 5800 |
5803 #undef __ | 5801 #undef __ |
5804 } // namespace internal | 5802 } // namespace internal |
5805 } // namespace v8 | 5803 } // namespace v8 |
5806 | 5804 |
5807 #endif // V8_TARGET_ARCH_PPC | 5805 #endif // V8_TARGET_ARCH_PPC |
OLD | NEW |