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

Unified Diff: src/base/cpu.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
« no previous file with comments | « src/base/build_config.h ('k') | src/base/cpu.cc » ('j') | src/base/macros.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/base/cpu.h
diff --git a/src/cpu.h b/src/base/cpu.h
similarity index 92%
rename from src/cpu.h
rename to src/base/cpu.h
index ac8ee982a44d2df81bf38cfd63c62cf19e1dda97..eb51674df53c445a336a2f84e17f9bf0732c4de9 100644
--- a/src/cpu.h
+++ b/src/base/cpu.h
@@ -10,13 +10,13 @@
// The build system then uses the implementation for the target architecture.
//
-#ifndef V8_CPU_H_
-#define V8_CPU_H_
+#ifndef V8_BASE_CPU_H_
+#define V8_BASE_CPU_H_
-#include "src/allocation.h"
+#include "src/base/macros.h"
namespace v8 {
-namespace internal {
+namespace base {
// ----------------------------------------------------------------------------
// CPU
@@ -28,7 +28,7 @@ namespace internal {
// architectures. For each architecture the file cpu_<arch>.cc contains the
// implementation of these static functions.
-class CPU V8_FINAL BASE_EMBEDDED {
+class CPU V8_FINAL {
public:
CPU();
@@ -77,9 +77,6 @@ class CPU V8_FINAL BASE_EMBEDDED {
bool has_vfp3() const { return has_vfp3_; }
bool has_vfp3_d32() const { return has_vfp3_d32_; }
- // Flush instruction cache.
- static void FlushICache(void* start, size_t size);
-
private:
char vendor_[13];
int stepping_;
@@ -109,6 +106,6 @@ class CPU V8_FINAL BASE_EMBEDDED {
bool has_vfp3_d32_;
};
-} } // namespace v8::internal
+} } // namespace v8::base
-#endif // V8_CPU_H_
+#endif // V8_BASE_CPU_H_
« no previous file with comments | « src/base/build_config.h ('k') | src/base/cpu.cc » ('j') | src/base/macros.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698