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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 kMaxAllocatableDoubleRegisterCount, | 62 kMaxAllocatableDoubleRegisterCount, |
63 kMaxAllocatableDoubleRegisterCount, | 63 kMaxAllocatableDoubleRegisterCount, |
64 #elif V8_TARGET_ARCH_MIPS | 64 #elif V8_TARGET_ARCH_MIPS |
65 kMaxAllocatableGeneralRegisterCount, | 65 kMaxAllocatableGeneralRegisterCount, |
66 kMaxAllocatableDoubleRegisterCount, | 66 kMaxAllocatableDoubleRegisterCount, |
67 kMaxAllocatableDoubleRegisterCount, | 67 kMaxAllocatableDoubleRegisterCount, |
68 #elif V8_TARGET_ARCH_MIPS64 | 68 #elif V8_TARGET_ARCH_MIPS64 |
69 kMaxAllocatableGeneralRegisterCount, | 69 kMaxAllocatableGeneralRegisterCount, |
70 kMaxAllocatableDoubleRegisterCount, | 70 kMaxAllocatableDoubleRegisterCount, |
71 kMaxAllocatableDoubleRegisterCount, | 71 kMaxAllocatableDoubleRegisterCount, |
| 72 #elif V8_TARGET_ARCH_PPC |
| 73 kMaxAllocatableGeneralRegisterCount, |
| 74 kMaxAllocatableDoubleRegisterCount, |
| 75 kMaxAllocatableDoubleRegisterCount, |
72 #else | 76 #else |
73 GetAllocatableGeneralRegisterCount(), | 77 GetAllocatableGeneralRegisterCount(), |
74 GetAllocatableDoubleRegisterCount(), | 78 GetAllocatableDoubleRegisterCount(), |
75 GetAllocatableAliasedDoubleRegisterCount(), | 79 GetAllocatableAliasedDoubleRegisterCount(), |
76 #endif | 80 #endif |
77 GetAllocatableGeneralCodes(), GetAllocatableDoubleCodes(), | 81 GetAllocatableGeneralCodes(), GetAllocatableDoubleCodes(), |
78 kGeneralRegisterNames, kDoubleRegisterNames) { | 82 kGeneralRegisterNames, kDoubleRegisterNames) { |
79 } | 83 } |
80 | 84 |
81 const char* general_register_name_table_[Register::kNumRegisters]; | 85 const char* general_register_name_table_[Register::kNumRegisters]; |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
137 } | 141 } |
138 for (int i = 0; i < num_allocatable_double_registers_; ++i) { | 142 for (int i = 0; i < num_allocatable_double_registers_; ++i) { |
139 allocatable_double_codes_mask_ |= (1 << allocatable_double_codes_[i]); | 143 allocatable_double_codes_mask_ |= (1 << allocatable_double_codes_[i]); |
140 } | 144 } |
141 } | 145 } |
142 | 146 |
143 #undef REGISTER_COUNT | 147 #undef REGISTER_COUNT |
144 | 148 |
145 } // namespace internal | 149 } // namespace internal |
146 } // namespace v8 | 150 } // namespace v8 |
OLD | NEW |