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

Unified Diff: src/debug/debug.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/d8.cc ('k') | src/debug/debug.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/debug/debug.h
diff --git a/src/debug/debug.h b/src/debug/debug.h
index ae2a26d41a305ab0b231e9c667d16dd5cdd1e016..ccf9dc62c8ec969daeeb22324d1e387eba5fb873 100644
--- a/src/debug/debug.h
+++ b/src/debug/debug.h
@@ -379,7 +379,7 @@ class Debug {
// Flags and states.
DebugScope* debugger_entry() {
return reinterpret_cast<DebugScope*>(
- base::NoBarrier_Load(&thread_local_.current_debug_scope_));
+ base::Relaxed_Load(&thread_local_.current_debug_scope_));
}
inline Handle<Context> debug_context() { return debug_context_; }
@@ -391,7 +391,7 @@ class Debug {
inline bool is_active() const { return is_active_; }
inline bool is_loaded() const { return !debug_context_.is_null(); }
inline bool in_debug_scope() const {
- return !!base::NoBarrier_Load(&thread_local_.current_debug_scope_);
+ return !!base::Relaxed_Load(&thread_local_.current_debug_scope_);
}
void set_break_points_active(bool v) { break_points_active_ = v; }
bool break_points_active() const { return break_points_active_; }
« no previous file with comments | « src/d8.cc ('k') | src/debug/debug.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698