| Index: src/platform.h
|
| ===================================================================
|
| --- src/platform.h (revision 8778)
|
| +++ src/platform.h (working copy)
|
| @@ -177,6 +177,9 @@
|
| 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;
|
|
|
| @@ -203,15 +206,13 @@
|
| size_t* allocated,
|
| bool is_executable);
|
| static void Free(void* address, const size_t size);
|
| +
|
| + // Assign memory as a guard page so that access will cause an exception.
|
| + static void Guard(void* address, const size_t size);
|
| +
|
| // 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
|
| @@ -612,7 +613,6 @@
|
| bool has_external_callback : 1;
|
| };
|
|
|
| -#ifdef ENABLE_LOGGING_AND_PROFILING
|
| class Sampler {
|
| public:
|
| // Initialize sampler.
|
| @@ -671,8 +671,6 @@
|
| };
|
|
|
|
|
| -#endif // ENABLE_LOGGING_AND_PROFILING
|
| -
|
| } } // namespace v8::internal
|
|
|
| #endif // V8_PLATFORM_H_
|
|
|