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

Unified Diff: src/inspector/V8ProfilerAgentImpl.cpp

Issue 2340763003: [inspector] replaced inspector/Atomics.h with base atomicops.h (Closed)
Patch Set: Created 4 years, 3 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/inspector/DEPS ('k') | src/inspector/inspector.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/inspector/V8ProfilerAgentImpl.cpp
diff --git a/src/inspector/V8ProfilerAgentImpl.cpp b/src/inspector/V8ProfilerAgentImpl.cpp
index 54fb50b8d9e3f28a62136cd13109014ffd25a091..11a18a0cbed467bfe83463891d54482705a535f3 100644
--- a/src/inspector/V8ProfilerAgentImpl.cpp
+++ b/src/inspector/V8ProfilerAgentImpl.cpp
@@ -4,7 +4,7 @@
#include "src/inspector/V8ProfilerAgentImpl.h"
-#include "src/inspector/Atomics.h"
+#include "src/base/atomicops.h"
#include "src/inspector/StringUtil.h"
#include "src/inspector/V8Debugger.h"
#include "src/inspector/V8InspectorImpl.h"
@@ -279,7 +279,8 @@ void V8ProfilerAgentImpl::stop(
}
String16 V8ProfilerAgentImpl::nextProfileId() {
- return String16::fromInteger(atomicIncrement(&s_lastProfileId));
+ return String16::fromInteger(
+ v8::base::NoBarrier_AtomicIncrement(&s_lastProfileId, 1));
}
void V8ProfilerAgentImpl::startProfiling(const String16& title) {
« no previous file with comments | « src/inspector/DEPS ('k') | src/inspector/inspector.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698