| 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 26 matching lines...) Expand all Loading... |
| 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 | 43 |
| 44 // arm implementer/part information | 44 // arm implementer/part information |
| 45 int implementer() const { return implementer_; } | 45 int implementer() const { return implementer_; } |
| 46 static const int ARM = 0x41; | 46 static const int ARM = 0x41; |
| 47 static const int NVIDIA = 0x4e; |
| 47 static const int QUALCOMM = 0x51; | 48 static const int QUALCOMM = 0x51; |
| 48 int architecture() const { return architecture_; } | 49 int architecture() const { return architecture_; } |
| 49 int part() const { return part_; } | 50 int part() const { return part_; } |
| 50 static const int ARM_CORTEX_A5 = 0xc05; | 51 static const int ARM_CORTEX_A5 = 0xc05; |
| 51 static const int ARM_CORTEX_A7 = 0xc07; | 52 static const int ARM_CORTEX_A7 = 0xc07; |
| 52 static const int ARM_CORTEX_A8 = 0xc08; | 53 static const int ARM_CORTEX_A8 = 0xc08; |
| 53 static const int ARM_CORTEX_A9 = 0xc09; | 54 static const int ARM_CORTEX_A9 = 0xc09; |
| 54 static const int ARM_CORTEX_A12 = 0xc0c; | 55 static const int ARM_CORTEX_A12 = 0xc0c; |
| 55 static const int ARM_CORTEX_A15 = 0xc0f; | 56 static const int ARM_CORTEX_A15 = 0xc0f; |
| 56 | 57 |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 107 bool has_neon_; | 108 bool has_neon_; |
| 108 bool has_thumbee_; | 109 bool has_thumbee_; |
| 109 bool has_vfp_; | 110 bool has_vfp_; |
| 110 bool has_vfp3_; | 111 bool has_vfp3_; |
| 111 bool has_vfp3_d32_; | 112 bool has_vfp3_d32_; |
| 112 }; | 113 }; |
| 113 | 114 |
| 114 } } // namespace v8::internal | 115 } } // namespace v8::internal |
| 115 | 116 |
| 116 #endif // V8_CPU_H_ | 117 #endif // V8_CPU_H_ |
| OLD | NEW |