| Index: src/platform-freebsd.cc
|
| ===================================================================
|
| --- src/platform-freebsd.cc (revision 8778)
|
| +++ src/platform-freebsd.cc (working copy)
|
| @@ -181,20 +181,6 @@
|
| }
|
|
|
|
|
| -#ifdef ENABLE_HEAP_PROTECTION
|
| -
|
| -void OS::Protect(void* address, size_t size) {
|
| - UNIMPLEMENTED();
|
| -}
|
| -
|
| -
|
| -void OS::Unprotect(void* address, size_t size, bool is_executable) {
|
| - UNIMPLEMENTED();
|
| -}
|
| -
|
| -#endif
|
| -
|
| -
|
| void OS::Sleep(int milliseconds) {
|
| unsigned int ms = static_cast<unsigned int>(milliseconds);
|
| usleep(1000 * ms);
|
| @@ -266,15 +252,12 @@
|
| }
|
|
|
|
|
| -#ifdef ENABLE_LOGGING_AND_PROFILING
|
| static unsigned StringToLong(char* buffer) {
|
| return static_cast<unsigned>(strtol(buffer, NULL, 16)); // NOLINT
|
| }
|
| -#endif
|
|
|
|
|
| void OS::LogSharedLibraryAddresses() {
|
| -#ifdef ENABLE_LOGGING_AND_PROFILING
|
| static const int MAP_LENGTH = 1024;
|
| int fd = open("/proc/self/maps", O_RDONLY);
|
| if (fd < 0) return;
|
| @@ -311,7 +294,6 @@
|
| LOG(i::Isolate::Current(), SharedLibraryEvent(start_of_path, start, end));
|
| }
|
| close(fd);
|
| -#endif
|
| }
|
|
|
|
|
| @@ -588,8 +570,6 @@
|
| }
|
|
|
|
|
| -#ifdef ENABLE_LOGGING_AND_PROFILING
|
| -
|
| static pthread_t GetThreadID() {
|
| pthread_t thread_id = pthread_self();
|
| return thread_id;
|
| @@ -817,6 +797,5 @@
|
| SetActive(false);
|
| }
|
|
|
| -#endif // ENABLE_LOGGING_AND_PROFILING
|
|
|
| } } // namespace v8::internal
|
|
|