| Index: src/platform-cygwin.cc
|
| ===================================================================
|
| --- src/platform-cygwin.cc (revision 8778)
|
| +++ src/platform-cygwin.cc (working copy)
|
| @@ -166,23 +166,6 @@
|
| }
|
|
|
|
|
| -#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 @@
|
|
|
|
|
| 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 @@
|
| }
|
| free(lib_name);
|
| fclose(fp);
|
| -#endif
|
| }
|
|
|
|
|
| @@ -591,8 +572,6 @@
|
| }
|
|
|
|
|
| -#ifdef ENABLE_LOGGING_AND_PROFILING
|
| -
|
| // ----------------------------------------------------------------------------
|
| // Cygwin profiler support.
|
| //
|
| @@ -769,7 +748,5 @@
|
| SetActive(false);
|
| }
|
|
|
| -#endif // ENABLE_LOGGING_AND_PROFILING
|
|
|
| } } // namespace v8::internal
|
| -
|
|
|