| 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 #ifndef V8_COMPILER_REGISTER_CONFIGURATION_H_ | 5 #ifndef V8_COMPILER_REGISTER_CONFIGURATION_H_ |
| 6 #define V8_COMPILER_REGISTER_CONFIGURATION_H_ | 6 #define V8_COMPILER_REGISTER_CONFIGURATION_H_ |
| 7 | 7 |
| 8 #include "src/base/macros.h" | 8 #include "src/base/macros.h" |
| 9 #include "src/globals.h" | 9 #include "src/globals.h" |
| 10 #include "src/machine-type.h" | 10 #include "src/machine-type.h" |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 int num_allocatable_simd128_registers() const { | 60 int num_allocatable_simd128_registers() const { |
| 61 return num_allocatable_simd128_registers_; | 61 return num_allocatable_simd128_registers_; |
| 62 } | 62 } |
| 63 AliasingKind fp_aliasing_kind() const { return fp_aliasing_kind_; } | 63 AliasingKind fp_aliasing_kind() const { return fp_aliasing_kind_; } |
| 64 int32_t allocatable_general_codes_mask() const { | 64 int32_t allocatable_general_codes_mask() const { |
| 65 return allocatable_general_codes_mask_; | 65 return allocatable_general_codes_mask_; |
| 66 } | 66 } |
| 67 int32_t allocatable_double_codes_mask() const { | 67 int32_t allocatable_double_codes_mask() const { |
| 68 return allocatable_double_codes_mask_; | 68 return allocatable_double_codes_mask_; |
| 69 } | 69 } |
| 70 int32_t allocatable_float_codes_mask() const { |
| 71 return allocatable_float_codes_mask_; |
| 72 } |
| 70 int GetAllocatableGeneralCode(int index) const { | 73 int GetAllocatableGeneralCode(int index) const { |
| 71 return allocatable_general_codes_[index]; | 74 return allocatable_general_codes_[index]; |
| 72 } | 75 } |
| 73 bool IsAllocatableGeneralCode(int index) const { | 76 bool IsAllocatableGeneralCode(int index) const { |
| 74 return ((1 << index) & allocatable_general_codes_mask_) != 0; | 77 return ((1 << index) & allocatable_general_codes_mask_) != 0; |
| 75 } | 78 } |
| 76 int GetAllocatableFloatCode(int index) const { | 79 int GetAllocatableFloatCode(int index) const { |
| 77 return allocatable_float_codes_[index]; | 80 return allocatable_float_codes_[index]; |
| 78 } | 81 } |
| 79 bool IsAllocatableFloatCode(int index) const { | 82 bool IsAllocatableFloatCode(int index) const { |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 149 char const* const* general_register_names_; | 152 char const* const* general_register_names_; |
| 150 char const* const* float_register_names_; | 153 char const* const* float_register_names_; |
| 151 char const* const* double_register_names_; | 154 char const* const* double_register_names_; |
| 152 char const* const* simd128_register_names_; | 155 char const* const* simd128_register_names_; |
| 153 }; | 156 }; |
| 154 | 157 |
| 155 } // namespace internal | 158 } // namespace internal |
| 156 } // namespace v8 | 159 } // namespace v8 |
| 157 | 160 |
| 158 #endif // V8_COMPILER_REGISTER_CONFIGURATION_H_ | 161 #endif // V8_COMPILER_REGISTER_CONFIGURATION_H_ |
| OLD | NEW |