OLD | NEW |
1 // Copyright 2006-2013 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2013 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 // This module contains the architecture-specific code. This make the rest of | 5 // This module contains the architecture-specific code. This make the rest of |
6 // the code less dependent on differences between different processor | 6 // the code less dependent on differences between different processor |
7 // architecture. | 7 // architecture. |
8 // The classes have the same definition for all architectures. The | 8 // The classes have the same definition for all architectures. The |
9 // implementation for a particular architecture is put in cpu_<arch>.cc. | 9 // implementation for a particular architecture is put in cpu_<arch>.cc. |
10 // The build system then uses the implementation for the target architecture. | 10 // The build system then uses the implementation for the target architecture. |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 // arm features | 106 // arm features |
107 bool has_idiva() const { return has_idiva_; } | 107 bool has_idiva() const { return has_idiva_; } |
108 bool has_neon() const { return has_neon_; } | 108 bool has_neon() const { return has_neon_; } |
109 bool has_thumb2() const { return has_thumb2_; } | 109 bool has_thumb2() const { return has_thumb2_; } |
110 bool has_vfp() const { return has_vfp_; } | 110 bool has_vfp() const { return has_vfp_; } |
111 bool has_vfp3() const { return has_vfp3_; } | 111 bool has_vfp3() const { return has_vfp3_; } |
112 bool has_vfp3_d32() const { return has_vfp3_d32_; } | 112 bool has_vfp3_d32() const { return has_vfp3_d32_; } |
113 | 113 |
114 // mips features | 114 // mips features |
115 bool is_fp64_mode() const { return is_fp64_mode_; } | 115 bool is_fp64_mode() const { return is_fp64_mode_; } |
| 116 bool has_msa() const { return has_msa_; } |
116 | 117 |
117 private: | 118 private: |
118 char vendor_[13]; | 119 char vendor_[13]; |
119 int stepping_; | 120 int stepping_; |
120 int model_; | 121 int model_; |
121 int ext_model_; | 122 int ext_model_; |
122 int family_; | 123 int family_; |
123 int ext_family_; | 124 int ext_family_; |
124 int type_; | 125 int type_; |
125 int implementer_; | 126 int implementer_; |
(...skipping 21 matching lines...) Expand all Loading... |
147 bool has_lzcnt_; | 148 bool has_lzcnt_; |
148 bool has_popcnt_; | 149 bool has_popcnt_; |
149 bool has_idiva_; | 150 bool has_idiva_; |
150 bool has_neon_; | 151 bool has_neon_; |
151 bool has_thumb2_; | 152 bool has_thumb2_; |
152 bool has_vfp_; | 153 bool has_vfp_; |
153 bool has_vfp3_; | 154 bool has_vfp3_; |
154 bool has_vfp3_d32_; | 155 bool has_vfp3_d32_; |
155 bool is_fp64_mode_; | 156 bool is_fp64_mode_; |
156 bool has_non_stop_time_stamp_counter_; | 157 bool has_non_stop_time_stamp_counter_; |
| 158 bool has_msa_; |
157 }; | 159 }; |
158 | 160 |
159 } // namespace base | 161 } // namespace base |
160 } // namespace v8 | 162 } // namespace v8 |
161 | 163 |
162 #endif // V8_BASE_CPU_H_ | 164 #endif // V8_BASE_CPU_H_ |
OLD | NEW |