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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 bool has_mmx() const { return has_mmx_; } | 79 bool has_mmx() const { return has_mmx_; } |
80 bool has_sse() const { return has_sse_; } | 80 bool has_sse() const { return has_sse_; } |
81 bool has_sse2() const { return has_sse2_; } | 81 bool has_sse2() const { return has_sse2_; } |
82 bool has_sse3() const { return has_sse3_; } | 82 bool has_sse3() const { return has_sse3_; } |
83 bool has_ssse3() const { return has_ssse3_; } | 83 bool has_ssse3() const { return has_ssse3_; } |
84 bool has_sse41() const { return has_sse41_; } | 84 bool has_sse41() const { return has_sse41_; } |
85 bool has_sse42() const { return has_sse42_; } | 85 bool has_sse42() const { return has_sse42_; } |
86 bool has_osxsave() const { return has_osxsave_; } | 86 bool has_osxsave() const { return has_osxsave_; } |
87 bool has_avx() const { return has_avx_; } | 87 bool has_avx() const { return has_avx_; } |
88 bool has_fma3() const { return has_fma3_; } | 88 bool has_fma3() const { return has_fma3_; } |
| 89 bool has_bmi1() const { return has_bmi1_; } |
| 90 bool has_bmi2() const { return has_bmi2_; } |
| 91 bool has_lzcnt() const { return has_lzcnt_; } |
| 92 bool has_popcnt() const { return has_popcnt_; } |
89 bool is_atom() const { return is_atom_; } | 93 bool is_atom() const { return is_atom_; } |
90 | 94 |
91 // arm features | 95 // arm features |
92 bool has_idiva() const { return has_idiva_; } | 96 bool has_idiva() const { return has_idiva_; } |
93 bool has_neon() const { return has_neon_; } | 97 bool has_neon() const { return has_neon_; } |
94 bool has_thumb2() const { return has_thumb2_; } | 98 bool has_thumb2() const { return has_thumb2_; } |
95 bool has_vfp() const { return has_vfp_; } | 99 bool has_vfp() const { return has_vfp_; } |
96 bool has_vfp3() const { return has_vfp3_; } | 100 bool has_vfp3() const { return has_vfp3_; } |
97 bool has_vfp3_d32() const { return has_vfp3_d32_; } | 101 bool has_vfp3_d32() const { return has_vfp3_d32_; } |
98 | 102 |
(...skipping 19 matching lines...) Expand all Loading... |
118 bool has_sse_; | 122 bool has_sse_; |
119 bool has_sse2_; | 123 bool has_sse2_; |
120 bool has_sse3_; | 124 bool has_sse3_; |
121 bool has_ssse3_; | 125 bool has_ssse3_; |
122 bool has_sse41_; | 126 bool has_sse41_; |
123 bool has_sse42_; | 127 bool has_sse42_; |
124 bool is_atom_; | 128 bool is_atom_; |
125 bool has_osxsave_; | 129 bool has_osxsave_; |
126 bool has_avx_; | 130 bool has_avx_; |
127 bool has_fma3_; | 131 bool has_fma3_; |
| 132 bool has_bmi1_; |
| 133 bool has_bmi2_; |
| 134 bool has_lzcnt_; |
| 135 bool has_popcnt_; |
128 bool has_idiva_; | 136 bool has_idiva_; |
129 bool has_neon_; | 137 bool has_neon_; |
130 bool has_thumb2_; | 138 bool has_thumb2_; |
131 bool has_vfp_; | 139 bool has_vfp_; |
132 bool has_vfp3_; | 140 bool has_vfp3_; |
133 bool has_vfp3_d32_; | 141 bool has_vfp3_d32_; |
134 bool is_fp64_mode_; | 142 bool is_fp64_mode_; |
135 }; | 143 }; |
136 | 144 |
137 } } // namespace v8::base | 145 } } // namespace v8::base |
138 | 146 |
139 #endif // V8_BASE_CPU_H_ | 147 #endif // V8_BASE_CPU_H_ |
OLD | NEW |