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

Unified Diff: src/base/atomicops_internals_atomicword_compat.h

Issue 2912773002: Rename "NoBarrier" memory operations to "Relaxed". (Closed)
Patch Set: comment Created 3 years, 7 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.h ('k') | src/base/atomicops_internals_portable.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..09f75bdfd2c0aa967390784f61b28ce0aecbc8ba 100644
--- a/src/base/atomicops_internals_atomicword_compat.h
+++ b/src/base/atomicops_internals_atomicword_compat.h
@@ -23,23 +23,23 @@
namespace v8 {
namespace base {
-inline AtomicWord NoBarrier_CompareAndSwap(volatile AtomicWord* ptr,
- AtomicWord old_value,
- AtomicWord new_value) {
- return NoBarrier_CompareAndSwap(
- reinterpret_cast<volatile Atomic32*>(ptr), old_value, new_value);
+inline AtomicWord Relaxed_CompareAndSwap(volatile AtomicWord* ptr,
+ AtomicWord old_value,
+ AtomicWord new_value) {
+ return Relaxed_CompareAndSwap(reinterpret_cast<volatile Atomic32*>(ptr),
+ old_value, new_value);
}
-inline AtomicWord NoBarrier_AtomicExchange(volatile AtomicWord* ptr,
- AtomicWord new_value) {
- return NoBarrier_AtomicExchange(
- reinterpret_cast<volatile Atomic32*>(ptr), new_value);
+inline AtomicWord Relaxed_AtomicExchange(volatile AtomicWord* ptr,
+ AtomicWord new_value) {
+ return Relaxed_AtomicExchange(reinterpret_cast<volatile Atomic32*>(ptr),
+ new_value);
}
-inline AtomicWord NoBarrier_AtomicIncrement(volatile AtomicWord* ptr,
- AtomicWord increment) {
- return NoBarrier_AtomicIncrement(
- reinterpret_cast<volatile Atomic32*>(ptr), increment);
+inline AtomicWord Relaxed_AtomicIncrement(volatile AtomicWord* ptr,
+ AtomicWord increment) {
+ return Relaxed_AtomicIncrement(reinterpret_cast<volatile Atomic32*>(ptr),
+ increment);
}
inline AtomicWord Barrier_AtomicIncrement(volatile AtomicWord* ptr,
@@ -62,9 +62,8 @@ inline AtomicWord Release_CompareAndSwap(volatile AtomicWord* ptr,
reinterpret_cast<volatile Atomic32*>(ptr), old_value, new_value);
}
-inline void NoBarrier_Store(volatile AtomicWord *ptr, AtomicWord value) {
- NoBarrier_Store(
- reinterpret_cast<volatile Atomic32*>(ptr), value);
+inline void Relaxed_Store(volatile AtomicWord* ptr, AtomicWord value) {
+ Relaxed_Store(reinterpret_cast<volatile Atomic32*>(ptr), value);
}
inline void Release_Store(volatile AtomicWord* ptr, AtomicWord value) {
@@ -72,9 +71,8 @@ inline void Release_Store(volatile AtomicWord* ptr, AtomicWord value) {
reinterpret_cast<volatile Atomic32*>(ptr), value);
}
-inline AtomicWord NoBarrier_Load(volatile const AtomicWord *ptr) {
- return NoBarrier_Load(
- reinterpret_cast<volatile const Atomic32*>(ptr));
+inline AtomicWord Relaxed_Load(volatile const AtomicWord* ptr) {
+ return Relaxed_Load(reinterpret_cast<volatile const Atomic32*>(ptr));
}
inline AtomicWord Acquire_Load(volatile const AtomicWord* ptr) {
« no previous file with comments | « src/base/atomicops.h ('k') | src/base/atomicops_internals_portable.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698