Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(80)

Side by Side Diff: src/platform-win32.cc

Issue 260003006: Added a Isolate* parameter to Serializer::enabled(). (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Rebased. Feedback. Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/platform-posix.cc ('k') | src/serialize.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/platform-posix.cc ('k') | src/serialize.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698