OLD | NEW |
1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 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 #include "src/assembler.h" | 5 #include "src/assembler.h" |
6 #include "src/macro-assembler.h" | 6 #include "src/macro-assembler.h" |
7 | 7 |
8 #include "src/compiler/linkage.h" | 8 #include "src/compiler/linkage.h" |
9 | 9 |
10 #include "src/zone.h" | 10 #include "src/zone.h" |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 #define PARAM_REGISTERS r3, r4, r5, r6, r7, r8, r9, r10 | 116 #define PARAM_REGISTERS r3, r4, r5, r6, r7, r8, r9, r10 |
117 #define CALLEE_SAVE_REGISTERS \ | 117 #define CALLEE_SAVE_REGISTERS \ |
118 r14.bit() | r15.bit() | r16.bit() | r17.bit() | r18.bit() | r19.bit() | \ | 118 r14.bit() | r15.bit() | r16.bit() | r17.bit() | r18.bit() | r19.bit() | \ |
119 r20.bit() | r21.bit() | r22.bit() | r23.bit() | r24.bit() | r25.bit() | \ | 119 r20.bit() | r21.bit() | r22.bit() | r23.bit() | r24.bit() | r25.bit() | \ |
120 r26.bit() | r27.bit() | r28.bit() | r29.bit() | r30.bit() | 120 r26.bit() | r27.bit() | r28.bit() | r29.bit() | r30.bit() |
121 #define CALLEE_SAVE_FP_REGISTERS \ | 121 #define CALLEE_SAVE_FP_REGISTERS \ |
122 d14.bit() | d15.bit() | d16.bit() | d17.bit() | d18.bit() | d19.bit() | \ | 122 d14.bit() | d15.bit() | d16.bit() | d17.bit() | d18.bit() | d19.bit() | \ |
123 d20.bit() | d21.bit() | d22.bit() | d23.bit() | d24.bit() | d25.bit() | \ | 123 d20.bit() | d21.bit() | d22.bit() | d23.bit() | d24.bit() | d25.bit() | \ |
124 d26.bit() | d27.bit() | d28.bit() | d29.bit() | d30.bit() | d31.bit() | 124 d26.bit() | d27.bit() | d28.bit() | d29.bit() | d30.bit() | d31.bit() |
125 | 125 |
| 126 #elif V8_TARGET_ARCH_S390X |
| 127 // =========================================================================== |
| 128 // == s390x ================================================================== |
| 129 // =========================================================================== |
| 130 #define PARAM_REGISTERS r2, r3, r4, r5, r6 |
| 131 #define CALLEE_SAVE_REGISTERS \ |
| 132 r6.bit() | r7.bit() | r8.bit() | r9.bit() | r10.bit() | ip.bit() | r13.bit() |
| 133 #define CALLEE_SAVE_FP_REGISTERS \ |
| 134 d8.bit() | d9.bit() | d10.bit() | d11.bit() | d12.bit() | d13.bit() | \ |
| 135 d14.bit() | d15.bit() |
| 136 |
| 137 #elif V8_TARGET_ARCH_S390 |
| 138 // =========================================================================== |
| 139 // == s390 =================================================================== |
| 140 // =========================================================================== |
| 141 #define PARAM_REGISTERS r2, r3, r4, r5, r6 |
| 142 #define CALLEE_SAVE_REGISTERS \ |
| 143 r6.bit() | r7.bit() | r8.bit() | r9.bit() | r10.bit() | ip.bit() | r13.bit() |
| 144 #define CALLEE_SAVE_FP_REGISTERS (d4.bit() | d6.bit()) |
| 145 |
126 #else | 146 #else |
127 // =========================================================================== | 147 // =========================================================================== |
128 // == unknown ================================================================ | 148 // == unknown ================================================================ |
129 // =========================================================================== | 149 // =========================================================================== |
130 #define UNSUPPORTED_C_LINKAGE 1 | 150 #define UNSUPPORTED_C_LINKAGE 1 |
131 #endif | 151 #endif |
132 } // namespace | 152 } // namespace |
133 | 153 |
134 | 154 |
135 // General code uses the above configuration data. | 155 // General code uses the above configuration data. |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
222 kCalleeSaveFPRegisters, // callee-saved fp regs | 242 kCalleeSaveFPRegisters, // callee-saved fp regs |
223 set_initialize_root_flag ? // flags | 243 set_initialize_root_flag ? // flags |
224 CallDescriptor::kInitializeRootRegister | 244 CallDescriptor::kInitializeRootRegister |
225 : CallDescriptor::kNoFlags, | 245 : CallDescriptor::kNoFlags, |
226 "c-call"); | 246 "c-call"); |
227 } | 247 } |
228 | 248 |
229 } // namespace compiler | 249 } // namespace compiler |
230 } // namespace internal | 250 } // namespace internal |
231 } // namespace v8 | 251 } // namespace v8 |
OLD | NEW |