diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2011-07-15 17:47:20 -0700 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2011-07-15 17:47:20 -0700 |
commit | ef1be160d66b7da8bc2da857b1c33c6f680d86f1 (patch) | |
tree | a1ff31aa2841ebde94d9bff4b0f6692840ea811b /deps/v8/src/platform.h | |
parent | e5564a3f29e0a818832a97c7c3b28d7c8b3b0460 (diff) | |
download | node-ef1be160d66b7da8bc2da857b1c33c6f680d86f1.tar.gz |
Upgrade V8 to 3.4.12.1
Diffstat (limited to 'deps/v8/src/platform.h')
-rw-r--r-- | deps/v8/src/platform.h | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/deps/v8/src/platform.h b/deps/v8/src/platform.h index 06d3ca467..c7fe984c4 100644 --- a/deps/v8/src/platform.h +++ b/deps/v8/src/platform.h @@ -177,6 +177,9 @@ class OS { static FILE* FOpen(const char* path, const char* mode); static bool Remove(const char* path); + // Opens a temporary file, the file is auto removed on close. + static FILE* OpenTemporaryFile(); + // Log file open mode is platform-dependent due to line ends issues. static const char* const LogFileOpenMode; @@ -206,12 +209,6 @@ class OS { // Get the Alignment guaranteed by Allocate(). static size_t AllocateAlignment(); -#ifdef ENABLE_HEAP_PROTECTION - // Protect/unprotect a block of memory by marking it read-only/writable. - static void Protect(void* address, size_t size); - static void Unprotect(void* address, size_t size, bool is_executable); -#endif - // Returns an indication of whether a pointer is in a space that // has been allocated by Allocate(). This method may conservatively // always return false, but giving more accurate information may @@ -603,7 +600,6 @@ class TickSample { bool has_external_callback : 1; }; -#ifdef ENABLE_LOGGING_AND_PROFILING class Sampler { public: // Initialize sampler. @@ -662,8 +658,6 @@ class Sampler { }; -#endif // ENABLE_LOGGING_AND_PROFILING - } } // namespace v8::internal #endif // V8_PLATFORM_H_ |