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 #include "src/register-configuration.h" | 5 #include "src/register-configuration.h" |
6 #include "src/globals.h" | 6 #include "src/globals.h" |
7 #include "src/macro-assembler.h" | 7 #include "src/macro-assembler.h" |
8 | 8 |
9 namespace v8 { | 9 namespace v8 { |
10 namespace internal { | 10 namespace internal { |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 kMaxAllocatableDoubleRegisterCount, | 84 kMaxAllocatableDoubleRegisterCount, |
85 kMaxAllocatableDoubleRegisterCount, | 85 kMaxAllocatableDoubleRegisterCount, |
86 #elif V8_TARGET_ARCH_MIPS64 | 86 #elif V8_TARGET_ARCH_MIPS64 |
87 kMaxAllocatableGeneralRegisterCount, | 87 kMaxAllocatableGeneralRegisterCount, |
88 kMaxAllocatableDoubleRegisterCount, | 88 kMaxAllocatableDoubleRegisterCount, |
89 kMaxAllocatableDoubleRegisterCount, | 89 kMaxAllocatableDoubleRegisterCount, |
90 #elif V8_TARGET_ARCH_PPC | 90 #elif V8_TARGET_ARCH_PPC |
91 kMaxAllocatableGeneralRegisterCount, | 91 kMaxAllocatableGeneralRegisterCount, |
92 kMaxAllocatableDoubleRegisterCount, | 92 kMaxAllocatableDoubleRegisterCount, |
93 kMaxAllocatableDoubleRegisterCount, | 93 kMaxAllocatableDoubleRegisterCount, |
| 94 #elif V8_TARGET_ARCH_S390 |
| 95 kMaxAllocatableGeneralRegisterCount, |
| 96 kMaxAllocatableDoubleRegisterCount, |
| 97 kMaxAllocatableDoubleRegisterCount, |
94 #else | 98 #else |
95 #error Unsupported target architecture. | 99 #error Unsupported target architecture. |
96 #endif | 100 #endif |
97 kAllocatableGeneralCodes, kAllocatableDoubleCodes, | 101 kAllocatableGeneralCodes, kAllocatableDoubleCodes, |
98 kGeneralRegisterNames, kDoubleRegisterNames) { | 102 kGeneralRegisterNames, kDoubleRegisterNames) { |
99 } | 103 } |
100 }; | 104 }; |
101 | 105 |
102 | 106 |
103 template <RegisterConfiguration::CompilerSelector compiler> | 107 template <RegisterConfiguration::CompilerSelector compiler> |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
153 } | 157 } |
154 for (int i = 0; i < num_allocatable_double_registers_; ++i) { | 158 for (int i = 0; i < num_allocatable_double_registers_; ++i) { |
155 allocatable_double_codes_mask_ |= (1 << allocatable_double_codes_[i]); | 159 allocatable_double_codes_mask_ |= (1 << allocatable_double_codes_[i]); |
156 } | 160 } |
157 } | 161 } |
158 | 162 |
159 #undef REGISTER_COUNT | 163 #undef REGISTER_COUNT |
160 | 164 |
161 } // namespace internal | 165 } // namespace internal |
162 } // namespace v8 | 166 } // namespace v8 |
OLD | NEW |