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/wasm/wasm-module.h" | 8 #include "src/wasm/wasm-module.h" |
9 | 9 |
10 #include "src/compiler/linkage.h" | 10 #include "src/compiler/linkage.h" |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
118 | 118 |
119 #elif V8_TARGET_ARCH_PPC || V8_TARGET_ARCH_PPC64 | 119 #elif V8_TARGET_ARCH_PPC || V8_TARGET_ARCH_PPC64 |
120 // =========================================================================== | 120 // =========================================================================== |
121 // == ppc & ppc64 ============================================================ | 121 // == ppc & ppc64 ============================================================ |
122 // =========================================================================== | 122 // =========================================================================== |
123 #define GP_PARAM_REGISTERS r3, r4, r5, r6, r7, r8, r9, r10 | 123 #define GP_PARAM_REGISTERS r3, r4, r5, r6, r7, r8, r9, r10 |
124 #define GP_RETURN_REGISTERS r3, r4 | 124 #define GP_RETURN_REGISTERS r3, r4 |
125 #define FP_PARAM_REGISTERS d1, d2, d3, d4, d5, d6, d7, d8 | 125 #define FP_PARAM_REGISTERS d1, d2, d3, d4, d5, d6, d7, d8 |
126 #define FP_RETURN_REGISTERS d1, d2 | 126 #define FP_RETURN_REGISTERS d1, d2 |
127 | 127 |
| 128 #elif V8_TARGET_ARCH_S390X |
| 129 // =========================================================================== |
| 130 // == s390x ================================================================== |
| 131 // =========================================================================== |
| 132 #define GP_PARAM_REGISTERS r2, r3, r4, r5, r6 |
| 133 #define GP_RETURN_REGISTERS r2 |
| 134 #define FP_PARAM_REGISTERS d0, d2, d4, d6 |
| 135 #define FP_RETURN_REGISTERS d0, d2, d4, d6 |
| 136 |
| 137 #elif V8_TARGET_ARCH_S390 |
| 138 // =========================================================================== |
| 139 // == s390 =================================================================== |
| 140 // =========================================================================== |
| 141 #define GP_PARAM_REGISTERS r2, r3, r4, r5, r6 |
| 142 #define GP_RETURN_REGISTERS r2, r3 |
| 143 #define FP_PARAM_REGISTERS d0, d2 |
| 144 #define FP_RETURN_REGISTERS d0, d2 |
| 145 |
128 #else | 146 #else |
129 // =========================================================================== | 147 // =========================================================================== |
130 // == unknown ================================================================ | 148 // == unknown ================================================================ |
131 // =========================================================================== | 149 // =========================================================================== |
132 // Don't define anything. We'll just always use the stack. | 150 // Don't define anything. We'll just always use the stack. |
133 #endif | 151 #endif |
134 | 152 |
135 | 153 |
136 // Helper for allocating either an GP or FP reg, or the next stack slot. | 154 // Helper for allocating either an GP or FP reg, or the next stack slot. |
137 struct Allocator { | 155 struct Allocator { |
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
359 descriptor->CalleeSavedFPRegisters(), // callee-saved fp regs | 377 descriptor->CalleeSavedFPRegisters(), // callee-saved fp regs |
360 descriptor->flags(), // flags | 378 descriptor->flags(), // flags |
361 descriptor->debug_name()); | 379 descriptor->debug_name()); |
362 | 380 |
363 return descriptor; | 381 return descriptor; |
364 } | 382 } |
365 | 383 |
366 } // namespace wasm | 384 } // namespace wasm |
367 } // namespace internal | 385 } // namespace internal |
368 } // namespace v8 | 386 } // namespace v8 |
OLD | NEW |