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

Unified Diff: src/base/atomicops_internals_x86_gcc.cc

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/base/atomicops_internals_x86_gcc.h ('k') | src/base/atomicops_internals_x86_msvc.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/base/atomicops_internals_x86_gcc.cc
diff --git a/src/atomicops_internals_x86_gcc.cc b/src/base/atomicops_internals_x86_gcc.cc
similarity index 93%
rename from src/atomicops_internals_x86_gcc.cc
rename to src/base/atomicops_internals_x86_gcc.cc
index 4cb2a6002a2fd97249936223cd9cc15296f3fb46..b8ba0c34b56c83d038e3e2cce0254419223dce8e 100644
--- a/src/atomicops_internals_x86_gcc.cc
+++ b/src/base/atomicops_internals_x86_gcc.cc
@@ -7,13 +7,13 @@
#include <string.h>
-#include "src/atomicops.h"
+#include "src/base/atomicops.h"
// This file only makes sense with atomicops_internals_x86_gcc.h -- it
// depends on structs that are defined in that file. If atomicops.h
// doesn't sub-include that file, then we aren't needed, and shouldn't
// try to do anything.
-#ifdef V8_ATOMICOPS_INTERNALS_X86_GCC_H_
+#ifdef V8_BASE_ATOMICOPS_INTERNALS_X86_GCC_H_
// Inline cpuid instruction. In PIC compilations, %ebx contains the address
// of the global offset table. To avoid breaking such executables, this code
@@ -35,7 +35,7 @@
#if defined(cpuid) // initialize the struct only on x86
namespace v8 {
-namespace internal {
+namespace base {
// Set the flags so that code will run correctly and conservatively, so even
// if we haven't been initialized yet, we're probably single threaded, and our
@@ -45,13 +45,13 @@ struct AtomicOps_x86CPUFeatureStruct AtomicOps_Internalx86CPUFeatures = {
false, // no SSE2
};
-} } // namespace v8::internal
+} } // namespace v8::base
namespace {
// Initialize the AtomicOps_Internalx86CPUFeatures struct.
void AtomicOps_Internalx86CPUFeaturesInit() {
- using v8::internal::AtomicOps_Internalx86CPUFeatures;
+ using v8::base::AtomicOps_Internalx86CPUFeatures;
uint32_t eax = 0;
uint32_t ebx = 0;
@@ -108,4 +108,4 @@ AtomicOpsx86Initializer g_initer;
#endif // if x86
-#endif // ifdef V8_ATOMICOPS_INTERNALS_X86_GCC_H_
+#endif // ifdef V8_BASE_ATOMICOPS_INTERNALS_X86_GCC_H_
« no previous file with comments | « src/base/atomicops_internals_x86_gcc.h ('k') | src/base/atomicops_internals_x86_msvc.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698