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

Side by Side Diff: src/platform-cygwin.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.h ('k') | src/platform-freebsd.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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 } 72 }
73 73
74 74
75 int OS::ActivationFrameAlignment() { 75 int OS::ActivationFrameAlignment() {
76 // With gcc 4.4 the tree vectorization optimizer can generate code 76 // With gcc 4.4 the tree vectorization optimizer can generate code
77 // that requires 16 byte alignment such as movdqa on x86. 77 // that requires 16 byte alignment such as movdqa on x86.
78 return 16; 78 return 16;
79 } 79 }
80 80
81 81
82 void OS::ReleaseStore(volatile AtomicWord* ptr, AtomicWord value) {
83 __asm__ __volatile__("" : : : "memory");
84 // An x86 store acts as a release barrier.
85 *ptr = value;
86 }
87
88 const char* OS::LocalTimezone(double time) { 82 const char* OS::LocalTimezone(double time) {
89 if (std::isnan(time)) return ""; 83 if (std::isnan(time)) return "";
90 time_t tv = static_cast<time_t>(floor(time/msPerSecond)); 84 time_t tv = static_cast<time_t>(floor(time/msPerSecond));
91 struct tm* t = localtime(&tv); 85 struct tm* t = localtime(&tv);
92 if (NULL == t) return ""; 86 if (NULL == t) return "";
93 return tzname[0]; // The location of the timezone string on Cygwin. 87 return tzname[0]; // The location of the timezone string on Cygwin.
94 } 88 }
95 89
96 90
97 double OS::LocalTimeOffset() { 91 double OS::LocalTimeOffset() {
(...skipping 608 matching lines...) Expand 10 before | Expand all | Expand 10 after
706 limit_mutex = CreateMutex(); 700 limit_mutex = CreateMutex();
707 } 701 }
708 702
709 703
710 void OS::TearDown() { 704 void OS::TearDown() {
711 delete limit_mutex; 705 delete limit_mutex;
712 } 706 }
713 707
714 708
715 } } // namespace v8::internal 709 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/platform.h ('k') | src/platform-freebsd.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698