summaryrefslogtreecommitdiff
path: root/Source/JavaScriptCore/tools/CodeProfile.cpp
diff options
context:
space:
mode:
authorAlberto Garcia <berto@igalia.com>2014-01-18 19:41:58 +0000
committerKonstantin Tokarev <annulen@yandex.ru>2017-01-04 16:08:49 +0000
commit19d304e8d17fb39efe795b51e1ee0f5564a0692a (patch)
tree6f21b23707e908a3d321795810e259264065d1f1 /Source/JavaScriptCore/tools/CodeProfile.cpp
parent3a5ab06844fcb3d8377b5a86db4708e6da6e6537 (diff)
downloadqtwebkit-19d304e8d17fb39efe795b51e1ee0f5564a0692a.tar.gz
JavaScriptCore uses PLATFORM(MAC) when it means OS(DARWIN)
https://bugs.webkit.org/show_bug.cgi?id=99683 Reviewed by Anders Carlsson. * jit/ThunkGenerators.cpp: * tools/CodeProfile.cpp: (JSC::symbolName): (JSC::CodeProfile::sample): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@162266 268f45cc-cd09-0410-ab3c-d52691b4dbfc Change-Id: Ia5b36b80ba095dbf0de4430137dc8133d0c06a8e Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'Source/JavaScriptCore/tools/CodeProfile.cpp')
-rw-r--r--Source/JavaScriptCore/tools/CodeProfile.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/JavaScriptCore/tools/CodeProfile.cpp b/Source/JavaScriptCore/tools/CodeProfile.cpp
index de86e52ef..3106eff89 100644
--- a/Source/JavaScriptCore/tools/CodeProfile.cpp
+++ b/Source/JavaScriptCore/tools/CodeProfile.cpp
@@ -33,7 +33,7 @@
#include <wtf/Vector.h>
#include <wtf/text/WTFString.h>
-#if PLATFORM(MAC)
+#if OS(DARWIN)
#include <cxxabi.h>
#include <dlfcn.h>
#include <execinfo.h>
@@ -56,7 +56,7 @@ const char* CodeProfile::s_codeTypeNames[CodeProfile::NumberOfCodeTypes] = {
// Helper function, find the symbol name for a pc in JSC.
static const char* symbolName(void* address)
{
-#if PLATFORM(MAC)
+#if OS(DARWIN)
Dl_info info;
if (!dladdr(address, &info) || !info.dli_sname)
return "<unknown>";
@@ -123,7 +123,7 @@ void CodeProfile::sample(void* pc, void** framePointer)
if (type != EngineFrame)
return;
-#if PLATFORM(MAC) && CPU(X86_64)
+#if OS(DARWIN) && CPU(X86_64)
// Walk up the stack.
pc = framePointer[1];
framePointer = reinterpret_cast<void**>(*framePointer);