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 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 #define GP_RETURN_REGISTERS v0, v1 | 115 #define GP_RETURN_REGISTERS v0, v1 |
116 #define FP_PARAM_REGISTERS f2, f4, f6, f8, f10, f12, f14 | 116 #define FP_PARAM_REGISTERS f2, f4, f6, f8, f10, f12, f14 |
117 #define FP_RETURN_REGISTERS f2, f4 | 117 #define FP_RETURN_REGISTERS f2, f4 |
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 d0, d1, d2, d3, d4, d5, d6, d7 | 125 #define FP_PARAM_REGISTERS d1, d2, d3, d4, d5, d6, d7, d8 |
126 #define FP_RETURN_REGISTERS d0, d1 | 126 #define FP_RETURN_REGISTERS d1, d2 |
127 | 127 |
128 #else | 128 #else |
129 // =========================================================================== | 129 // =========================================================================== |
130 // == unknown ================================================================ | 130 // == unknown ================================================================ |
131 // =========================================================================== | 131 // =========================================================================== |
132 // Don't define anything. We'll just always use the stack. | 132 // Don't define anything. We'll just always use the stack. |
133 #endif | 133 #endif |
134 | 134 |
135 | 135 |
136 // Helper for allocating either an GP or FP reg, or the next stack slot. | 136 // Helper for allocating either an GP or FP reg, or the next stack slot. |
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
359 descriptor->CalleeSavedFPRegisters(), // callee-saved fp regs | 359 descriptor->CalleeSavedFPRegisters(), // callee-saved fp regs |
360 descriptor->flags(), // flags | 360 descriptor->flags(), // flags |
361 descriptor->debug_name()); | 361 descriptor->debug_name()); |
362 | 362 |
363 return descriptor; | 363 return descriptor; |
364 } | 364 } |
365 | 365 |
366 } // namespace wasm | 366 } // namespace wasm |
367 } // namespace internal | 367 } // namespace internal |
368 } // namespace v8 | 368 } // namespace v8 |
OLD | NEW |