| 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 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 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 138 bool has_thumb2_; | 138 bool has_thumb2_; |
| 139 bool has_vfp_; | 139 bool has_vfp_; |
| 140 bool has_vfp3_; | 140 bool has_vfp3_; |
| 141 bool has_vfp3_d32_; | 141 bool has_vfp3_d32_; |
| 142 bool is_fp64_mode_; | 142 bool is_fp64_mode_; |
| 143 }; | 143 }; |
| 144 | 144 |
| 145 } } // namespace v8::base | 145 } } // namespace v8::base |
| 146 | 146 |
| 147 #endif // V8_BASE_CPU_H_ | 147 #endif // V8_BASE_CPU_H_ |
| OLD | NEW |