| 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 22 matching lines...) Expand all  Loading... | 
| 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_; } | 
| 42   int type() const { return type_; } | 42   int type() const { return type_; } | 
|  | 43   bool is_atom() const { return is_atom_; } | 
| 43 | 44 | 
| 44   // arm implementer/part information | 45   // arm implementer/part information | 
| 45   int implementer() const { return implementer_; } | 46   int implementer() const { return implementer_; } | 
| 46   static const int ARM = 0x41; | 47   static const int ARM = 0x41; | 
| 47   static const int NVIDIA = 0x4e; | 48   static const int NVIDIA = 0x4e; | 
| 48   static const int QUALCOMM = 0x51; | 49   static const int QUALCOMM = 0x51; | 
| 49   int architecture() const { return architecture_; } | 50   int architecture() const { return architecture_; } | 
| 50   int variant() const { return variant_; } | 51   int variant() const { return variant_; } | 
| 51   static const int NVIDIA_DENVER = 0x0; | 52   static const int NVIDIA_DENVER = 0x0; | 
| 52   int part() const { return part_; } | 53   int part() const { return part_; } | 
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 99   bool has_fpu_; | 100   bool has_fpu_; | 
| 100   bool has_cmov_; | 101   bool has_cmov_; | 
| 101   bool has_sahf_; | 102   bool has_sahf_; | 
| 102   bool has_mmx_; | 103   bool has_mmx_; | 
| 103   bool has_sse_; | 104   bool has_sse_; | 
| 104   bool has_sse2_; | 105   bool has_sse2_; | 
| 105   bool has_sse3_; | 106   bool has_sse3_; | 
| 106   bool has_ssse3_; | 107   bool has_ssse3_; | 
| 107   bool has_sse41_; | 108   bool has_sse41_; | 
| 108   bool has_sse42_; | 109   bool has_sse42_; | 
|  | 110   bool is_atom_; | 
| 109   bool has_avx_; | 111   bool has_avx_; | 
| 110   bool has_fma3_; | 112   bool has_fma3_; | 
| 111   bool has_idiva_; | 113   bool has_idiva_; | 
| 112   bool has_neon_; | 114   bool has_neon_; | 
| 113   bool has_thumb2_; | 115   bool has_thumb2_; | 
| 114   bool has_vfp_; | 116   bool has_vfp_; | 
| 115   bool has_vfp3_; | 117   bool has_vfp3_; | 
| 116   bool has_vfp3_d32_; | 118   bool has_vfp3_d32_; | 
| 117   bool is_fp64_mode_; | 119   bool is_fp64_mode_; | 
| 118 }; | 120 }; | 
| 119 | 121 | 
| 120 } }  // namespace v8::base | 122 } }  // namespace v8::base | 
| 121 | 123 | 
| 122 #endif  // V8_BASE_CPU_H_ | 124 #endif  // V8_BASE_CPU_H_ | 
| OLD | NEW | 
|---|