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

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

Issue 17222004: Nuke OS::ReleaseStore, use Release_Store instead (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Reverted erroneous changes Created 7 years, 6 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-linux.cc ('k') | src/platform-openbsd.cc » ('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 // 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 277 matching lines...) Expand 10 before | Expand all | Expand 10 after
288 } 288 }
289 289
290 290
291 int OS::ActivationFrameAlignment() { 291 int OS::ActivationFrameAlignment() {
292 // OS X activation frames must be 16 byte-aligned; see "Mac OS X ABI 292 // OS X activation frames must be 16 byte-aligned; see "Mac OS X ABI
293 // Function Call Guide". 293 // Function Call Guide".
294 return 16; 294 return 16;
295 } 295 }
296 296
297 297
298 void OS::ReleaseStore(volatile AtomicWord* ptr, AtomicWord value) {
299 OSMemoryBarrier();
300 *ptr = value;
301 }
302
303
304 const char* OS::LocalTimezone(double time) { 298 const char* OS::LocalTimezone(double time) {
305 if (std::isnan(time)) return ""; 299 if (std::isnan(time)) return "";
306 time_t tv = static_cast<time_t>(floor(time/msPerSecond)); 300 time_t tv = static_cast<time_t>(floor(time/msPerSecond));
307 struct tm* t = localtime(&tv); 301 struct tm* t = localtime(&tv);
308 if (NULL == t) return ""; 302 if (NULL == t) return "";
309 return t->tm_zone; 303 return t->tm_zone;
310 } 304 }
311 305
312 306
313 double OS::LocalTimeOffset() { 307 double OS::LocalTimeOffset() {
(...skipping 436 matching lines...) Expand 10 before | Expand all | Expand 10 after
750 limit_mutex = CreateMutex(); 744 limit_mutex = CreateMutex();
751 } 745 }
752 746
753 747
754 void OS::TearDown() { 748 void OS::TearDown() {
755 delete limit_mutex; 749 delete limit_mutex;
756 } 750 }
757 751
758 752
759 } } // namespace v8::internal 753 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/platform-linux.cc ('k') | src/platform-openbsd.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698