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

Unified Diff: src/debug/debug.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/debug/debug.h ('k') | src/execution.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/debug/debug.cc
diff --git a/src/debug/debug.cc b/src/debug/debug.cc
index f257f67e29c2975e0529257a1e424091af0e633d..fd2dcc37d5289d2d38605cc039648f4a2c8c5e45 100644
--- a/src/debug/debug.cc
+++ b/src/debug/debug.cc
@@ -402,8 +402,8 @@ void Debug::ThreadInit() {
thread_local_.async_task_count_ = 0;
clear_suspended_generator();
thread_local_.restart_fp_ = nullptr;
- base::NoBarrier_Store(&thread_local_.current_debug_scope_,
- static_cast<base::AtomicWord>(0));
+ base::Relaxed_Store(&thread_local_.current_debug_scope_,
+ static_cast<base::AtomicWord>(0));
UpdateHookOnFunctionCall();
}
@@ -2225,8 +2225,8 @@ DebugScope::DebugScope(Debug* debug)
no_termination_exceptons_(debug_->isolate_,
StackGuard::TERMINATE_EXECUTION) {
// Link recursive debugger entry.
- base::NoBarrier_Store(&debug_->thread_local_.current_debug_scope_,
- reinterpret_cast<base::AtomicWord>(this));
+ base::Relaxed_Store(&debug_->thread_local_.current_debug_scope_,
+ reinterpret_cast<base::AtomicWord>(this));
// Store the previous break id, frame id and return value.
break_id_ = debug_->break_id();
@@ -2250,8 +2250,8 @@ DebugScope::DebugScope(Debug* debug)
DebugScope::~DebugScope() {
// Leaving this debugger entry.
- base::NoBarrier_Store(&debug_->thread_local_.current_debug_scope_,
- reinterpret_cast<base::AtomicWord>(prev_));
+ base::Relaxed_Store(&debug_->thread_local_.current_debug_scope_,
+ reinterpret_cast<base::AtomicWord>(prev_));
// Restore to the previous break state.
debug_->thread_local_.break_frame_id_ = break_frame_id_;
« no previous file with comments | « src/debug/debug.h ('k') | src/execution.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698