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 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 bool has_idiva() const { return has_idiva_; } | 95 bool has_idiva() const { return has_idiva_; } |
96 bool has_neon() const { return has_neon_; } | 96 bool has_neon() const { return has_neon_; } |
97 bool has_thumbee() const { return has_thumbee_; } | 97 bool has_thumbee() const { return has_thumbee_; } |
98 bool has_vfp() const { return has_vfp_; } | 98 bool has_vfp() const { return has_vfp_; } |
99 bool has_vfp3() const { return has_vfp3_; } | 99 bool has_vfp3() const { return has_vfp3_; } |
100 bool has_vfp3_d32() const { return has_vfp3_d32_; } | 100 bool has_vfp3_d32() const { return has_vfp3_d32_; } |
101 | 101 |
102 // Returns the number of processors online. | 102 // Returns the number of processors online. |
103 static int NumberOfProcessorsOnline(); | 103 static int NumberOfProcessorsOnline(); |
104 | 104 |
105 // Initializes the cpu architecture support. Called once at VM startup. | |
106 static void SetUp(); | |
107 | |
108 static bool SupportsCrankshaft(); | |
109 | |
110 // Flush instruction cache. | 105 // Flush instruction cache. |
111 static void FlushICache(void* start, size_t size); | 106 static void FlushICache(void* start, size_t size); |
112 | 107 |
113 private: | 108 private: |
114 char vendor_[13]; | 109 char vendor_[13]; |
115 int stepping_; | 110 int stepping_; |
116 int model_; | 111 int model_; |
117 int ext_model_; | 112 int ext_model_; |
118 int family_; | 113 int family_; |
119 int ext_family_; | 114 int ext_family_; |
(...skipping 15 matching lines...) Expand all Loading... |
135 bool has_neon_; | 130 bool has_neon_; |
136 bool has_thumbee_; | 131 bool has_thumbee_; |
137 bool has_vfp_; | 132 bool has_vfp_; |
138 bool has_vfp3_; | 133 bool has_vfp3_; |
139 bool has_vfp3_d32_; | 134 bool has_vfp3_d32_; |
140 }; | 135 }; |
141 | 136 |
142 } } // namespace v8::internal | 137 } } // namespace v8::internal |
143 | 138 |
144 #endif // V8_CPU_H_ | 139 #endif // V8_CPU_H_ |
OLD | NEW |