Fix Solaris V8 build
authorRyan Dahl <ry@tinyclouds.org>
Thu, 27 May 2010 01:05:42 +0000 (18:05 -0700)
committerRyan Dahl <ry@tinyclouds.org>
Thu, 27 May 2010 01:05:44 +0000 (18:05 -0700)
Patch submitted to V8: http://codereview.chromium.org/2282003/show

deps/v8/src/platform-solaris.cc

index 0ae1ecf..6d97ed7 100644 (file)
@@ -107,6 +107,12 @@ int OS::ActivationFrameAlignment() {
 }
 
 
+void OS::ReleaseStore(volatile AtomicWord* ptr, AtomicWord value) {
+  __asm__ __volatile__("" : : : "memory");
+  *ptr = value;
+}
+
+
 const char* OS::LocalTimezone(double time) {
   if (isnan(time)) return "";
   time_t tv = static_cast<time_t>(floor(time/msPerSecond));