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() { |