diff options
Diffstat (limited to 'deps/v8/src/platform-cygwin.cc')
-rw-r--r-- | deps/v8/src/platform-cygwin.cc | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/deps/v8/src/platform-cygwin.cc b/deps/v8/src/platform-cygwin.cc index 0242f7b2bd..5f283c3571 100644 --- a/deps/v8/src/platform-cygwin.cc +++ b/deps/v8/src/platform-cygwin.cc @@ -166,23 +166,6 @@ void OS::Free(void* address, const size_t size) { } -#ifdef ENABLE_HEAP_PROTECTION - -void OS::Protect(void* address, size_t size) { - // TODO(1240712): mprotect has a return value which is ignored here. - mprotect(address, size, PROT_READ); -} - - -void OS::Unprotect(void* address, size_t size, bool is_executable) { - // TODO(1240712): mprotect has a return value which is ignored here. - int prot = PROT_READ | PROT_WRITE | (is_executable ? PROT_EXEC : 0); - mprotect(address, size, prot); -} - -#endif - - void OS::Sleep(int milliseconds) { unsigned int ms = static_cast<unsigned int>(milliseconds); usleep(1000 * ms); @@ -249,7 +232,6 @@ PosixMemoryMappedFile::~PosixMemoryMappedFile() { void OS::LogSharedLibraryAddresses() { -#ifdef ENABLE_LOGGING_AND_PROFILING // This function assumes that the layout of the file is as follows: // hex_start_addr-hex_end_addr rwxp <unused data> [binary_file_name] // If we encounter an unexpected situation we abort scanning further entries. @@ -306,7 +288,6 @@ void OS::LogSharedLibraryAddresses() { } free(lib_name); fclose(fp); -#endif } @@ -591,8 +572,6 @@ Semaphore* OS::CreateSemaphore(int count) { } -#ifdef ENABLE_LOGGING_AND_PROFILING - // ---------------------------------------------------------------------------- // Cygwin profiler support. // @@ -769,7 +748,5 @@ void Sampler::Stop() { SetActive(false); } -#endif // ENABLE_LOGGING_AND_PROFILING } } // namespace v8::internal - |