Revision: 5036
Author: [email protected]
Date: Thu Jul  8 01:12:17 2010
Log: Add ReleaseStore function on OpenBSD.
Review URL: http://codereview.chromium.org/2916001
http://code.google.com/p/v8/source/detail?r=5036

Modified:
 /branches/bleeding_edge/src/platform-openbsd.cc

=======================================
--- /branches/bleeding_edge/src/platform-openbsd.cc     Thu Apr  8 06:37:39 2010
+++ /branches/bleeding_edge/src/platform-openbsd.cc     Thu Jul  8 01:12:17 2010
@@ -81,6 +81,12 @@
   uint64_t seed = static_cast<uint64_t>(TimeCurrentMillis());
   srandom(static_cast<unsigned int>(seed));
 }
+
+
+void OS::ReleaseStore(volatile AtomicWord* ptr, AtomicWord value) {
+  __asm__ __volatile__("" : : : "memory");
+  *ptr = value;
+}


 uint64_t OS::CpuFeaturesImpliedByPlatform() {

--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev

Reply via email to