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

Unified Diff: src/platform.h

Issue 353113003: Remove dependency from platform files on v8.h (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: 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/globals.h ('k') | src/platform-cygwin.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/platform.h
diff --git a/src/platform.h b/src/platform.h
index a8500f0ddd8304e4ae5848251571b1789d249672..b7aca9da8a8ec21f36781c1a6439e36d6a1f3ad4 100644
--- a/src/platform.h
+++ b/src/platform.h
@@ -141,6 +141,14 @@ class TimezoneCache;
class OS {
public:
+ // Initialize the OS class.
+ // - random_seed: Used for the GetRandomMmapAddress() if non-zero.
+ // - hard_abort: If true, OS::Abort() will crash instead of aborting.
+ // - gc_fake_mmap: Name of the file for fake gc mmap used in ll_prof.
+ static void Initialize(int64_t random_seed,
+ bool hard_abort,
+ const char* const gc_fake_mmap);
+
// Returns the accumulated user time for thread. This routine
// can be used for profiling. The implementation should
// strive for high-precision timer resolution, preferable
@@ -212,10 +220,6 @@ class OS {
// Assign memory as a guard page so that access will cause an exception.
static void Guard(void* address, const size_t size);
- // Set a fixed random seed for the random number generator used for
- // GetRandomMmapAddr.
- static void SetRandomSeed(int64_t seed);
-
// Generate a random address to be used for hinting mmap().
static void* GetRandomMmapAddr();
@@ -306,6 +310,10 @@ class OS {
private:
static const int msPerSecond = 1000;
+#if V8_OS_POSIX
+ static const char* GetGCFakeMMapFile();
+#endif
+
DISALLOW_IMPLICIT_CONSTRUCTORS(OS);
};
« no previous file with comments | « src/globals.h ('k') | src/platform-cygwin.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698