OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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_X64 | 5 #if V8_TARGET_ARCH_X64 |
6 | 6 |
7 #include "src/api-arguments.h" | 7 #include "src/api-arguments.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 2725 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2736 __ PushRoot(Heap::kUndefinedValueRootIndex); | 2736 __ PushRoot(Heap::kUndefinedValueRootIndex); |
2737 | 2737 |
2738 // context save | 2738 // context save |
2739 __ Push(context); | 2739 __ Push(context); |
2740 | 2740 |
2741 // callee | 2741 // callee |
2742 __ Push(callee); | 2742 __ Push(callee); |
2743 | 2743 |
2744 // call data | 2744 // call data |
2745 __ Push(call_data); | 2745 __ Push(call_data); |
| 2746 |
| 2747 // return value |
| 2748 __ PushRoot(Heap::kUndefinedValueRootIndex); |
| 2749 // return value default |
| 2750 __ PushRoot(Heap::kUndefinedValueRootIndex); |
| 2751 // isolate |
2746 Register scratch = call_data; | 2752 Register scratch = call_data; |
2747 if (!this->call_data_undefined()) { | |
2748 __ LoadRoot(scratch, Heap::kUndefinedValueRootIndex); | |
2749 } | |
2750 // return value | |
2751 __ Push(scratch); | |
2752 // return value default | |
2753 __ Push(scratch); | |
2754 // isolate | |
2755 __ Move(scratch, ExternalReference::isolate_address(masm->isolate())); | 2753 __ Move(scratch, ExternalReference::isolate_address(masm->isolate())); |
2756 __ Push(scratch); | 2754 __ Push(scratch); |
2757 // holder | 2755 // holder |
2758 __ Push(holder); | 2756 __ Push(holder); |
2759 | 2757 |
2760 __ movp(scratch, rsp); | 2758 __ movp(scratch, rsp); |
2761 // Push return address back on stack. | 2759 // Push return address back on stack. |
2762 __ PushReturnAddressFrom(return_address); | 2760 __ PushReturnAddressFrom(return_address); |
2763 | 2761 |
2764 if (!this->is_lazy()) { | 2762 if (!this->is_lazy()) { |
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2896 kStackUnwindSpace, nullptr, return_value_operand, | 2894 kStackUnwindSpace, nullptr, return_value_operand, |
2897 NULL); | 2895 NULL); |
2898 } | 2896 } |
2899 | 2897 |
2900 #undef __ | 2898 #undef __ |
2901 | 2899 |
2902 } // namespace internal | 2900 } // namespace internal |
2903 } // namespace v8 | 2901 } // namespace v8 |
2904 | 2902 |
2905 #endif // V8_TARGET_ARCH_X64 | 2903 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |