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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 // x86 features | 76 // x86 features |
77 bool has_cmov() const { return has_cmov_; } | 77 bool has_cmov() const { return has_cmov_; } |
78 bool has_sahf() const { return has_sahf_; } | 78 bool has_sahf() const { return has_sahf_; } |
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_avx() const { return has_avx_; } | 87 bool has_avx() const { return has_avx_; } |
87 bool has_fma3() const { return has_fma3_; } | 88 bool has_fma3() const { return has_fma3_; } |
88 bool is_atom() const { return is_atom_; } | 89 bool is_atom() const { return is_atom_; } |
89 | 90 |
90 // arm features | 91 // arm features |
91 bool has_idiva() const { return has_idiva_; } | 92 bool has_idiva() const { return has_idiva_; } |
92 bool has_neon() const { return has_neon_; } | 93 bool has_neon() const { return has_neon_; } |
93 bool has_thumb2() const { return has_thumb2_; } | 94 bool has_thumb2() const { return has_thumb2_; } |
94 bool has_vfp() const { return has_vfp_; } | 95 bool has_vfp() const { return has_vfp_; } |
95 bool has_vfp3() const { return has_vfp3_; } | 96 bool has_vfp3() const { return has_vfp3_; } |
(...skipping 18 matching lines...) Expand all Loading... |
114 bool has_cmov_; | 115 bool has_cmov_; |
115 bool has_sahf_; | 116 bool has_sahf_; |
116 bool has_mmx_; | 117 bool has_mmx_; |
117 bool has_sse_; | 118 bool has_sse_; |
118 bool has_sse2_; | 119 bool has_sse2_; |
119 bool has_sse3_; | 120 bool has_sse3_; |
120 bool has_ssse3_; | 121 bool has_ssse3_; |
121 bool has_sse41_; | 122 bool has_sse41_; |
122 bool has_sse42_; | 123 bool has_sse42_; |
123 bool is_atom_; | 124 bool is_atom_; |
| 125 bool has_osxsave_; |
124 bool has_avx_; | 126 bool has_avx_; |
125 bool has_fma3_; | 127 bool has_fma3_; |
126 bool has_idiva_; | 128 bool has_idiva_; |
127 bool has_neon_; | 129 bool has_neon_; |
128 bool has_thumb2_; | 130 bool has_thumb2_; |
129 bool has_vfp_; | 131 bool has_vfp_; |
130 bool has_vfp3_; | 132 bool has_vfp3_; |
131 bool has_vfp3_d32_; | 133 bool has_vfp3_d32_; |
132 bool is_fp64_mode_; | 134 bool is_fp64_mode_; |
133 }; | 135 }; |
134 | 136 |
135 } } // namespace v8::base | 137 } } // namespace v8::base |
136 | 138 |
137 #endif // V8_BASE_CPU_H_ | 139 #endif // V8_BASE_CPU_H_ |
OLD | NEW |