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

Unified Diff: src/base/platform/platform-posix.cc

Issue 358363002: Move platform abstraction 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
Index: src/base/platform/platform-posix.cc
diff --git a/src/platform-posix.cc b/src/base/platform/platform-posix.cc
similarity index 98%
rename from src/platform-posix.cc
rename to src/base/platform/platform-posix.cc
index bc9d8e2fd419296037a9d7ee809e5225011ef6e4..8454213def9308ef2d89e9b758f506af764e330c 100644
--- a/src/platform-posix.cc
+++ b/src/base/platform/platform-posix.cc
@@ -47,16 +47,16 @@
#include "src/base/lazy-instance.h"
#include "src/base/macros.h"
-#include "src/platform.h"
-#include "src/platform/time.h"
-#include "src/utils/random-number-generator.h"
+#include "src/base/platform/platform.h"
+#include "src/base/platform/time.h"
+#include "src/base/utils/random-number-generator.h"
#ifdef V8_FAST_TLS_SUPPORTED
#include "src/base/atomicops.h"
#endif
namespace v8 {
-namespace internal {
+namespace base {
namespace {
@@ -199,7 +199,7 @@ void OS::Guard(void* address, const size_t size) {
}
-static base::LazyInstance<RandomNumberGenerator>::type
+static LazyInstance<RandomNumberGenerator>::type
platform_random_number_generator = LAZY_INSTANCE_INITIALIZER;
@@ -626,7 +626,7 @@ static pthread_key_t LocalKeyToPthreadKey(Thread::LocalStorageKey local_key) {
#ifdef V8_FAST_TLS_SUPPORTED
-static base::Atomic32 tls_base_offset_initialized = 0;
+static Atomic32 tls_base_offset_initialized = 0;
intptr_t kMacTlsBaseOffset = 0;
// It's safe to do the initialization more that once, but it has to be
@@ -662,7 +662,7 @@ static void InitializeTlsBaseOffset() {
kMacTlsBaseOffset = 0;
}
- base::Release_Store(&tls_base_offset_initialized, 1);
+ Release_Store(&tls_base_offset_initialized, 1);
}
@@ -723,4 +723,4 @@ void Thread::SetThreadLocal(LocalStorageKey key, void* value) {
}
-} } // namespace v8::internal
+} } // namespace v8::base

Powered by Google App Engine
This is Rietveld 408576698