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

Unified Diff: src/base/atomicops.h

Issue 316133002: Move atomic ops and related files to base library (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: updates Created 6 years, 6 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/atomicops_internals_x86_msvc.h ('k') | src/base/atomicops_internals_arm64_gcc.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/base/atomicops.h
diff --git a/src/atomicops.h b/src/base/atomicops.h
similarity index 92%
rename from src/atomicops.h
rename to src/base/atomicops.h
index db1140436998ebdb6b591c7d5a2446af8ff47b77..b26fc4c98b9ac1c4a9da89dc1634a577f99bf506 100644
--- a/src/atomicops.h
+++ b/src/base/atomicops.h
@@ -22,8 +22,8 @@
// to use these.
//
-#ifndef V8_ATOMICOPS_H_
-#define V8_ATOMICOPS_H_
+#ifndef V8_BASE_ATOMICOPS_H_
+#define V8_BASE_ATOMICOPS_H_
#include "include/v8.h"
#include "src/base/build_config.h"
@@ -38,7 +38,7 @@
#endif
namespace v8 {
-namespace internal {
+namespace base {
typedef char Atomic8;
typedef int32_t Atomic32;
@@ -131,23 +131,23 @@ Atomic64 Acquire_Load(volatile const Atomic64* ptr);
Atomic64 Release_Load(volatile const Atomic64* ptr);
#endif // V8_HOST_ARCH_64_BIT
-} } // namespace v8::internal
+} } // namespace v8::base
// Include our platform specific implementation.
#if defined(THREAD_SANITIZER)
-#include "src/atomicops_internals_tsan.h"
+#include "src/base/atomicops_internals_tsan.h"
#elif defined(_MSC_VER) && (V8_HOST_ARCH_IA32 || V8_HOST_ARCH_X64)
-#include "src/atomicops_internals_x86_msvc.h"
+#include "src/base/atomicops_internals_x86_msvc.h"
#elif defined(__APPLE__)
-#include "src/atomicops_internals_mac.h"
+#include "src/base/atomicops_internals_mac.h"
#elif defined(__GNUC__) && V8_HOST_ARCH_ARM64
-#include "src/atomicops_internals_arm64_gcc.h"
+#include "src/base/atomicops_internals_arm64_gcc.h"
#elif defined(__GNUC__) && V8_HOST_ARCH_ARM
-#include "src/atomicops_internals_arm_gcc.h"
+#include "src/base/atomicops_internals_arm_gcc.h"
#elif defined(__GNUC__) && (V8_HOST_ARCH_IA32 || V8_HOST_ARCH_X64)
-#include "src/atomicops_internals_x86_gcc.h"
+#include "src/base/atomicops_internals_x86_gcc.h"
#elif defined(__GNUC__) && V8_HOST_ARCH_MIPS
-#include "src/atomicops_internals_mips_gcc.h"
+#include "src/base/atomicops_internals_mips_gcc.h"
#else
#error "Atomic operations are not supported on your platform"
#endif
@@ -155,7 +155,7 @@ Atomic64 Release_Load(volatile const Atomic64* ptr);
// On some platforms we need additional declarations to make
// AtomicWord compatible with our other Atomic* types.
#if defined(__APPLE__) || defined(__OpenBSD__)
-#include "src/atomicops_internals_atomicword_compat.h"
+#include "src/base/atomicops_internals_atomicword_compat.h"
#endif
-#endif // V8_ATOMICOPS_H_
+#endif // V8_BASE_ATOMICOPS_H_
« no previous file with comments | « src/atomicops_internals_x86_msvc.h ('k') | src/base/atomicops_internals_arm64_gcc.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698