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

Unified Diff: third_party/WebKit/Source/platform/v8_inspector/Atomics.h

Issue 2295913003: [DevTools] Switch from platform/v8_inspector to v8/v8-inspector.h. (Closed)
Patch Set: rebase 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
Index: third_party/WebKit/Source/platform/v8_inspector/Atomics.h
diff --git a/third_party/WebKit/Source/platform/v8_inspector/Atomics.h b/third_party/WebKit/Source/platform/v8_inspector/Atomics.h
deleted file mode 100644
index 8523df6294158ed327bc164ce50130ceacbf2089..0000000000000000000000000000000000000000
--- a/third_party/WebKit/Source/platform/v8_inspector/Atomics.h
+++ /dev/null
@@ -1,29 +0,0 @@
-// Copyright 2016 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef Atomics_h
-#define Atomics_h
-
-#include <stdint.h>
-
-#if defined(_MSC_VER)
-#include <windows.h>
-#endif
-
-namespace v8_inspector {
-
-#if defined(_MSC_VER)
-
-inline int atomicIncrement(int volatile* addend) { return InterlockedIncrement(reinterpret_cast<long volatile*>(addend)); }
-
-#else
-
-inline int atomicAdd(int volatile* addend, int increment) { return __sync_add_and_fetch(addend, increment); }
-inline int atomicIncrement(int volatile* addend) { return atomicAdd(addend, 1); }
-
-#endif
-
-} // namespace v8_inspector
-
-#endif /* Atomics_h */

Powered by Google App Engine
This is Rietveld 408576698