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_S390 | 5 #if V8_TARGET_ARCH_S390 |
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 2857 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2868 __ LoadP(context, FieldMemOperand(callee, JSFunction::kContextOffset)); | 2868 __ LoadP(context, FieldMemOperand(callee, JSFunction::kContextOffset)); |
2869 } | 2869 } |
2870 | 2870 |
2871 // callee | 2871 // callee |
2872 __ push(callee); | 2872 __ push(callee); |
2873 | 2873 |
2874 // call data | 2874 // call data |
2875 __ push(call_data); | 2875 __ push(call_data); |
2876 | 2876 |
2877 Register scratch = call_data; | 2877 Register scratch = call_data; |
2878 if (!call_data_undefined()) { | 2878 __ LoadRoot(scratch, Heap::kUndefinedValueRootIndex); |
2879 __ LoadRoot(scratch, Heap::kUndefinedValueRootIndex); | |
2880 } | |
2881 // return value | 2879 // return value |
2882 __ push(scratch); | 2880 __ push(scratch); |
2883 // return value default | 2881 // return value default |
2884 __ push(scratch); | 2882 __ push(scratch); |
2885 // isolate | 2883 // isolate |
2886 __ mov(scratch, Operand(ExternalReference::isolate_address(masm->isolate()))); | 2884 __ mov(scratch, Operand(ExternalReference::isolate_address(masm->isolate()))); |
2887 __ push(scratch); | 2885 __ push(scratch); |
2888 // holder | 2886 // holder |
2889 __ push(holder); | 2887 __ push(holder); |
2890 | 2888 |
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3034 CallApiFunctionAndReturn(masm, api_function_address, thunk_ref, | 3032 CallApiFunctionAndReturn(masm, api_function_address, thunk_ref, |
3035 kStackUnwindSpace, NULL, return_value_operand, NULL); | 3033 kStackUnwindSpace, NULL, return_value_operand, NULL); |
3036 } | 3034 } |
3037 | 3035 |
3038 #undef __ | 3036 #undef __ |
3039 | 3037 |
3040 } // namespace internal | 3038 } // namespace internal |
3041 } // namespace v8 | 3039 } // namespace v8 |
3042 | 3040 |
3043 #endif // V8_TARGET_ARCH_S390 | 3041 #endif // V8_TARGET_ARCH_S390 |
OLD | NEW |