diff options
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 06d3ca4676..c7fe984c45 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_ |