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

Unified Diff: src/base/platform/platform.h

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.h
diff --git a/src/platform.h b/src/base/platform/platform.h
similarity index 97%
rename from src/platform.h
rename to src/base/platform/platform.h
index b7aca9da8a8ec21f36781c1a6439e36d6a1f3ad4..47b49865701fab626954ca75e4cace2b2e2ec69d 100644
--- a/src/platform.h
+++ b/src/base/platform/platform.h
@@ -18,16 +18,16 @@
// implementation and the overhead of virtual methods for performance
// sensitive like mutex locking/unlocking.
-#ifndef V8_PLATFORM_H_
-#define V8_PLATFORM_H_
+#ifndef V8_BASE_PLATFORM_PLATFORM_H_
+#define V8_BASE_PLATFORM_PLATFORM_H_
#include <stdarg.h>
#include <string>
#include <vector>
#include "src/base/build_config.h"
-#include "src/platform/mutex.h"
-#include "src/platform/semaphore.h"
+#include "src/base/platform/mutex.h"
+#include "src/base/platform/semaphore.h"
#ifdef __sun
# ifndef signbit
@@ -38,14 +38,14 @@ int signbit(double x);
#endif
#if V8_OS_QNX
-#include "src/qnx-math.h"
+#include "src/base/qnx-math.h"
#endif
// Microsoft Visual C++ specific stuff.
#if V8_LIBC_MSVCRT
#include "src/base/win32-headers.h"
-#include "src/win32-math.h"
+#include "src/base/win32-math.h"
int strncasecmp(const char* s1, const char* s2, int n);
@@ -72,7 +72,7 @@ inline int lrint(double flt) {
#endif // V8_LIBC_MSVCRT
namespace v8 {
-namespace internal {
+namespace base {
// ----------------------------------------------------------------------------
// Fast TLS support
@@ -382,7 +382,7 @@ class VirtualMemory {
// Assign control of the reserved region to a different VirtualMemory object.
// The old object is no longer functional (IsReserved() returns false).
- void TakeControl(VirtualMemory* from) {
+ void TakeControl(base::VirtualMemory* from) {
ASSERT(!IsReserved());
address_ = from->address_;
size_ = from->size_;
@@ -519,6 +519,6 @@ class Thread {
DISALLOW_COPY_AND_ASSIGN(Thread);
};
-} } // namespace v8::internal
+} } // namespace v8::base
-#endif // V8_PLATFORM_H_
+#endif // V8_BASE_PLATFORM_PLATFORM_H_

Powered by Google App Engine
This is Rietveld 408576698