From: iposva@chromium.org Date: Tue, 21 Jul 2009 17:25:07 +0000 (+0000) Subject: - Remove unneeded include of ucontext.h as it is deprecated on Snow Leopard. X-Git-Tag: upstream/4.7.83~23603 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a109c08c78648af354640b3a63d6ea2d26234f13;p=platform%2Fupstream%2Fv8.git - Remove unneeded include of ucontext.h as it is deprecated on Snow Leopard. - Avoid calculating shared library addresses if profiling is not enabled. Review URL: http://codereview.chromium.org/155814 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@2517 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- diff --git a/src/platform-macos.cc b/src/platform-macos.cc index d4be10c77..b5a57e112 100644 --- a/src/platform-macos.cc +++ b/src/platform-macos.cc @@ -28,7 +28,6 @@ // Platform specific code for MacOS goes here. For the POSIX comaptible parts // the implementation is in platform-posix.cc. -#include #include #include #include @@ -207,6 +206,7 @@ PosixMemoryMappedFile::~PosixMemoryMappedFile() { void OS::LogSharedLibraryAddresses() { +#ifdef ENABLE_LOGGING_AND_PROFILING unsigned int images_count = _dyld_image_count(); for (unsigned int i = 0; i < images_count; ++i) { const mach_header* header = _dyld_get_image_header(i); @@ -218,6 +218,7 @@ void OS::LogSharedLibraryAddresses() { const uintptr_t start = reinterpret_cast(code_ptr) + slide; LOG(SharedLibraryEvent(_dyld_get_image_name(i), start, start + size)); } +#endif // ENABLE_LOGGING_AND_PROFILING }