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/compiler/register-configuration.h" | 5 #include "src/compiler/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 28 matching lines...) Expand all Loading... |
39 const char* | 39 const char* |
40 general_register_name_table_[Register::kMaxNumAllocatableRegisters]; | 40 general_register_name_table_[Register::kMaxNumAllocatableRegisters]; |
41 const char* | 41 const char* |
42 double_register_name_table_[DoubleRegister::kMaxNumAllocatableRegisters]; | 42 double_register_name_table_[DoubleRegister::kMaxNumAllocatableRegisters]; |
43 }; | 43 }; |
44 | 44 |
45 | 45 |
46 static base::LazyInstance<ArchDefaultRegisterConfiguration>::type | 46 static base::LazyInstance<ArchDefaultRegisterConfiguration>::type |
47 kDefaultRegisterConfiguration = LAZY_INSTANCE_INITIALIZER; | 47 kDefaultRegisterConfiguration = LAZY_INSTANCE_INITIALIZER; |
48 | 48 |
49 } // namepace | 49 } // namespace |
50 | 50 |
51 | 51 |
52 const RegisterConfiguration* RegisterConfiguration::ArchDefault() { | 52 const RegisterConfiguration* RegisterConfiguration::ArchDefault() { |
53 return &kDefaultRegisterConfiguration.Get(); | 53 return &kDefaultRegisterConfiguration.Get(); |
54 } | 54 } |
55 | 55 |
56 RegisterConfiguration::RegisterConfiguration( | 56 RegisterConfiguration::RegisterConfiguration( |
57 int num_general_registers, int num_double_registers, | 57 int num_general_registers, int num_double_registers, |
58 int num_aliased_double_registers, const char* const* general_register_names, | 58 int num_aliased_double_registers, const char* const* general_register_names, |
59 const char* const* double_register_names) | 59 const char* const* double_register_names) |
60 : num_general_registers_(num_general_registers), | 60 : num_general_registers_(num_general_registers), |
61 num_double_registers_(num_double_registers), | 61 num_double_registers_(num_double_registers), |
62 num_aliased_double_registers_(num_aliased_double_registers), | 62 num_aliased_double_registers_(num_aliased_double_registers), |
63 general_register_names_(general_register_names), | 63 general_register_names_(general_register_names), |
64 double_register_names_(double_register_names) {} | 64 double_register_names_(double_register_names) {} |
65 | 65 |
66 | 66 |
67 } // namespace compiler | 67 } // namespace compiler |
68 } // namespace internal | 68 } // namespace internal |
69 } // namespace v8 | 69 } // namespace v8 |
OLD | NEW |