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

Unified Diff: src/ic/ic-stats.cc

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/heap/spaces.cc ('k') | src/inspector/v8-profiler-agent-impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/ic/ic-stats.cc
diff --git a/src/ic/ic-stats.cc b/src/ic/ic-stats.cc
index de2529fcd9fdb8a08d383f26e86072678869e066..c305209d487e2c3773e318bcf4272304945157ac 100644
--- a/src/ic/ic-stats.cc
+++ b/src/ic/ic-stats.cc
@@ -17,21 +17,21 @@ base::LazyInstance<ICStats>::type ICStats::instance_ =
LAZY_INSTANCE_INITIALIZER;
ICStats::ICStats() : ic_infos_(MAX_IC_INFO), pos_(0) {
- base::NoBarrier_Store(&enabled_, 0);
+ base::Relaxed_Store(&enabled_, 0);
}
void ICStats::Begin() {
if (V8_LIKELY(!FLAG_ic_stats)) return;
- base::NoBarrier_Store(&enabled_, 1);
+ base::Relaxed_Store(&enabled_, 1);
}
void ICStats::End() {
- if (base::NoBarrier_Load(&enabled_) != 1) return;
+ if (base::Relaxed_Load(&enabled_) != 1) return;
++pos_;
if (pos_ == MAX_IC_INFO) {
Dump();
}
- base::NoBarrier_Store(&enabled_, 0);
+ base::Relaxed_Store(&enabled_, 0);
}
void ICStats::Reset() {
« no previous file with comments | « src/heap/spaces.cc ('k') | src/inspector/v8-profiler-agent-impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698