| 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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 bool has_sse42() const { return has_sse42_; } | 92 bool has_sse42() const { return has_sse42_; } |
| 93 | 93 |
| 94 // arm features | 94 // arm features |
| 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. |
| 103 static int NumberOfProcessorsOnline() V8_WARN_UNUSED_RESULT; |
| 104 |
| 102 // Initializes the cpu architecture support. Called once at VM startup. | 105 // Initializes the cpu architecture support. Called once at VM startup. |
| 103 static void SetUp(); | 106 static void SetUp(); |
| 104 | 107 |
| 105 static bool SupportsCrankshaft(); | 108 static bool SupportsCrankshaft(); |
| 106 | 109 |
| 107 // Flush instruction cache. | 110 // Flush instruction cache. |
| 108 static void FlushICache(void* start, size_t size); | 111 static void FlushICache(void* start, size_t size); |
| 109 | 112 |
| 110 private: | 113 private: |
| 111 char vendor_[13]; | 114 char vendor_[13]; |
| (...skipping 20 matching lines...) Expand all Loading... |
| 132 bool has_neon_; | 135 bool has_neon_; |
| 133 bool has_thumbee_; | 136 bool has_thumbee_; |
| 134 bool has_vfp_; | 137 bool has_vfp_; |
| 135 bool has_vfp3_; | 138 bool has_vfp3_; |
| 136 bool has_vfp3_d32_; | 139 bool has_vfp3_d32_; |
| 137 }; | 140 }; |
| 138 | 141 |
| 139 } } // namespace v8::internal | 142 } } // namespace v8::internal |
| 140 | 143 |
| 141 #endif // V8_CPU_H_ | 144 #endif // V8_CPU_H_ |
| OLD | NEW |