OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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_IA32 | 5 #if V8_TARGET_ARCH_IA32 |
6 | 6 |
7 #include "src/code-stubs.h" | 7 #include "src/code-stubs.h" |
8 #include "src/api-arguments.h" | 8 #include "src/api-arguments.h" |
9 #include "src/base/bits.h" | 9 #include "src/base/bits.h" |
10 #include "src/bootstrapper.h" | 10 #include "src/bootstrapper.h" |
(...skipping 2762 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2773 | 2773 |
2774 // context save. | 2774 // context save. |
2775 __ push(context); | 2775 __ push(context); |
2776 | 2776 |
2777 // callee | 2777 // callee |
2778 __ push(callee); | 2778 __ push(callee); |
2779 | 2779 |
2780 // call data | 2780 // call data |
2781 __ push(call_data); | 2781 __ push(call_data); |
2782 | 2782 |
2783 Register scratch = call_data; | 2783 // return value |
2784 if (!call_data_undefined()) { | 2784 __ push(Immediate(masm->isolate()->factory()->undefined_value())); |
2785 // return value | 2785 // return value default |
2786 __ push(Immediate(masm->isolate()->factory()->undefined_value())); | 2786 __ push(Immediate(masm->isolate()->factory()->undefined_value())); |
2787 // return value default | |
2788 __ push(Immediate(masm->isolate()->factory()->undefined_value())); | |
2789 } else { | |
2790 // return value | |
2791 __ push(scratch); | |
2792 // return value default | |
2793 __ push(scratch); | |
2794 } | |
2795 // isolate | 2787 // isolate |
2796 __ push(Immediate(reinterpret_cast<int>(masm->isolate()))); | 2788 __ push(Immediate(reinterpret_cast<int>(masm->isolate()))); |
2797 // holder | 2789 // holder |
2798 __ push(holder); | 2790 __ push(holder); |
2799 | 2791 |
| 2792 Register scratch = call_data; |
2800 __ mov(scratch, esp); | 2793 __ mov(scratch, esp); |
2801 | 2794 |
2802 // push return address | 2795 // push return address |
2803 __ push(return_address); | 2796 __ push(return_address); |
2804 | 2797 |
2805 if (!is_lazy()) { | 2798 if (!is_lazy()) { |
2806 // load context from callee | 2799 // load context from callee |
2807 __ mov(context, FieldOperand(callee, JSFunction::kContextOffset)); | 2800 __ mov(context, FieldOperand(callee, JSFunction::kContextOffset)); |
2808 } | 2801 } |
2809 | 2802 |
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2926 kStackUnwindSpace, nullptr, return_value_operand, | 2919 kStackUnwindSpace, nullptr, return_value_operand, |
2927 NULL); | 2920 NULL); |
2928 } | 2921 } |
2929 | 2922 |
2930 #undef __ | 2923 #undef __ |
2931 | 2924 |
2932 } // namespace internal | 2925 } // namespace internal |
2933 } // namespace v8 | 2926 } // namespace v8 |
2934 | 2927 |
2935 #endif // V8_TARGET_ARCH_IA32 | 2928 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |