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

Unified Diff: src/base/atomicops_internals_atomicword_compat.h

Issue 2438983002: Revert of Update implementation of atomics with latest Chromium version but use compiler builtin atomics (Closed)
Patch Set: Created 4 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/base/atomicops_internals_arm_gcc.h ('k') | src/base/atomicops_internals_mac.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/base/atomicops_internals_atomicword_compat.h
diff --git a/src/base/atomicops_internals_atomicword_compat.h b/src/base/atomicops_internals_atomicword_compat.h
index 5071f442b4d3c0e6470dbe848c845ce195280dcb..4f758a72990acc22220431ef63a01c547ee48352 100644
--- a/src/base/atomicops_internals_atomicword_compat.h
+++ b/src/base/atomicops_internals_atomicword_compat.h
@@ -67,6 +67,11 @@
reinterpret_cast<volatile Atomic32*>(ptr), value);
}
+inline void Acquire_Store(volatile AtomicWord* ptr, AtomicWord value) {
+ return v8::base::Acquire_Store(
+ reinterpret_cast<volatile Atomic32*>(ptr), value);
+}
+
inline void Release_Store(volatile AtomicWord* ptr, AtomicWord value) {
return v8::base::Release_Store(
reinterpret_cast<volatile Atomic32*>(ptr), value);
@@ -82,6 +87,11 @@
reinterpret_cast<volatile const Atomic32*>(ptr));
}
+inline AtomicWord Release_Load(volatile const AtomicWord* ptr) {
+ return v8::base::Release_Load(
+ reinterpret_cast<volatile const Atomic32*>(ptr));
+}
+
} // namespace base
} // namespace v8
« no previous file with comments | « src/base/atomicops_internals_arm_gcc.h ('k') | src/base/atomicops_internals_mac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698