| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 // Platform-specific code for Win32. | 5 // Platform-specific code for Win32. |
| 6 | 6 |
| 7 // Secure API functions are not available using MinGW with msvcrt.dll | 7 // Secure API functions are not available using MinGW with msvcrt.dll |
| 8 // on Windows XP. Make sure MINGW_HAS_SECURE_API is not defined to | 8 // on Windows XP. Make sure MINGW_HAS_SECURE_API is not defined to |
| 9 // disable definition of secure API functions in standard headers that | 9 // disable definition of secure API functions in standard headers that |
| 10 // would conflict with our own implementation. | 10 // would conflict with our own implementation. |
| (...skipping 1140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1151 return static_cast<uint64_t>(memory_info.ullTotalPhys); | 1151 return static_cast<uint64_t>(memory_info.ullTotalPhys); |
| 1152 } | 1152 } |
| 1153 | 1153 |
| 1154 | 1154 |
| 1155 #else // __MINGW32__ | 1155 #else // __MINGW32__ |
| 1156 void OS::LogSharedLibraryAddresses(Isolate* isolate) { } | 1156 void OS::LogSharedLibraryAddresses(Isolate* isolate) { } |
| 1157 void OS::SignalCodeMovingGC() { } | 1157 void OS::SignalCodeMovingGC() { } |
| 1158 #endif // __MINGW32__ | 1158 #endif // __MINGW32__ |
| 1159 | 1159 |
| 1160 | 1160 |
| 1161 unsigned OS::CpuFeaturesImpliedByPlatform() { | |
| 1162 return 0; // Windows runs on anything. | |
| 1163 } | |
| 1164 | |
| 1165 | |
| 1166 int OS::NumberOfProcessorsOnline() { | 1161 int OS::NumberOfProcessorsOnline() { |
| 1167 SYSTEM_INFO info; | 1162 SYSTEM_INFO info; |
| 1168 GetSystemInfo(&info); | 1163 GetSystemInfo(&info); |
| 1169 return info.dwNumberOfProcessors; | 1164 return info.dwNumberOfProcessors; |
| 1170 } | 1165 } |
| 1171 | 1166 |
| 1172 | 1167 |
| 1173 double OS::nan_value() { | 1168 double OS::nan_value() { |
| 1174 #ifdef _MSC_VER | 1169 #ifdef _MSC_VER |
| 1175 // Positive Quiet NaN with no payload (aka. Indeterminate) has all bits | 1170 // Positive Quiet NaN with no payload (aka. Indeterminate) has all bits |
| (...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1396 ASSERT(result); | 1391 ASSERT(result); |
| 1397 } | 1392 } |
| 1398 | 1393 |
| 1399 | 1394 |
| 1400 | 1395 |
| 1401 void Thread::YieldCPU() { | 1396 void Thread::YieldCPU() { |
| 1402 Sleep(0); | 1397 Sleep(0); |
| 1403 } | 1398 } |
| 1404 | 1399 |
| 1405 } } // namespace v8::internal | 1400 } } // namespace v8::internal |
| OLD | NEW |