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 497 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
508 | 508 |
509 // Returns a string identifying the current timezone for the | 509 // Returns a string identifying the current timezone for the |
510 // timestamp taking into account daylight saving. | 510 // timestamp taking into account daylight saving. |
511 char* Win32Time::LocalTimezone(TimezoneCache* cache) { | 511 char* Win32Time::LocalTimezone(TimezoneCache* cache) { |
512 // Return the standard or DST time zone name based on whether daylight | 512 // Return the standard or DST time zone name based on whether daylight |
513 // saving is in effect at the given time. | 513 // saving is in effect at the given time. |
514 return InDST(cache) ? cache->dst_tz_name_ : cache->std_tz_name_; | 514 return InDST(cache) ? cache->dst_tz_name_ : cache->std_tz_name_; |
515 } | 515 } |
516 | 516 |
517 | 517 |
518 void OS::PostSetUp() { | 518 void OS::PostSetUp(bool serializer_enabled) { |
519 // Math functions depend on CPU features therefore they are initialized after | 519 // Math functions depend on CPU features therefore they are initialized after |
520 // CPU. | 520 // CPU. |
521 MathSetup(); | 521 MathSetup(); |
522 #if V8_TARGET_ARCH_IA32 | 522 #if V8_TARGET_ARCH_IA32 |
523 OS::MemMoveFunction generated_memmove = CreateMemMoveFunction(); | 523 OS::MemMoveFunction generated_memmove = CreateMemMoveFunction(); |
524 if (generated_memmove != NULL) { | 524 if (generated_memmove != NULL) { |
525 memmove_function = generated_memmove; | 525 memmove_function = generated_memmove; |
526 } | 526 } |
527 #endif | 527 #endif |
528 } | 528 } |
(...skipping 959 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1488 ASSERT(result); | 1488 ASSERT(result); |
1489 } | 1489 } |
1490 | 1490 |
1491 | 1491 |
1492 | 1492 |
1493 void Thread::YieldCPU() { | 1493 void Thread::YieldCPU() { |
1494 Sleep(0); | 1494 Sleep(0); |
1495 } | 1495 } |
1496 | 1496 |
1497 } } // namespace v8::internal | 1497 } } // namespace v8::internal |
OLD | NEW |