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 10 matching lines...) Expand all Loading... |
21 // ---------------------------------------------------------------------------- | 21 // ---------------------------------------------------------------------------- |
22 // CPU | 22 // CPU |
23 // | 23 // |
24 // Query information about the processor. | 24 // Query information about the processor. |
25 // | 25 // |
26 // This class also has static methods for the architecture specific functions. | 26 // This class also has static methods for the architecture specific functions. |
27 // Add methods here to cope with differences between the supported | 27 // Add methods here to cope with differences between the supported |
28 // architectures. For each architecture the file cpu_<arch>.cc contains the | 28 // architectures. For each architecture the file cpu_<arch>.cc contains the |
29 // implementation of these static functions. | 29 // implementation of these static functions. |
30 | 30 |
31 class CPU V8_FINAL { | 31 class CPU FINAL { |
32 public: | 32 public: |
33 CPU(); | 33 CPU(); |
34 | 34 |
35 // x86 CPUID information | 35 // x86 CPUID information |
36 const char* vendor() const { return vendor_; } | 36 const char* vendor() const { return vendor_; } |
37 int stepping() const { return stepping_; } | 37 int stepping() const { return stepping_; } |
38 int model() const { return model_; } | 38 int model() const { return model_; } |
39 int ext_model() const { return ext_model_; } | 39 int ext_model() const { return ext_model_; } |
40 int family() const { return family_; } | 40 int family() const { return family_; } |
41 int ext_family() const { return ext_family_; } | 41 int ext_family() const { return ext_family_; } |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 bool has_thumb2_; | 106 bool has_thumb2_; |
107 bool has_vfp_; | 107 bool has_vfp_; |
108 bool has_vfp3_; | 108 bool has_vfp3_; |
109 bool has_vfp3_d32_; | 109 bool has_vfp3_d32_; |
110 bool is_fp64_mode_; | 110 bool is_fp64_mode_; |
111 }; | 111 }; |
112 | 112 |
113 } } // namespace v8::base | 113 } } // namespace v8::base |
114 | 114 |
115 #endif // V8_BASE_CPU_H_ | 115 #endif // V8_BASE_CPU_H_ |
OLD | NEW |