From f10c5574b07d800965a74216ade236010c12baab Mon Sep 17 00:00:00 2001 From: "baptiste.afsa@arm.com" Date: Tue, 24 Jun 2014 12:40:20 +0000 Subject: [PATCH] ARM64: Enable low level profiling. R=ulan@chromium.org Review URL: https://codereview.chromium.org/353643003 git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@21965 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- src/log.cc | 2 ++ tools/disasm.py | 3 ++- tools/ll_prof.py | 3 ++- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/log.cc b/src/log.cc index 01afa85..c8b08ac 100644 --- a/src/log.cc +++ b/src/log.cc @@ -564,6 +564,8 @@ void LowLevelLogger::LogCodeInfo() { const char arch[] = "mips"; #elif V8_TARGET_ARCH_X87 const char arch[] = "x87"; +#elif V8_TARGET_ARCH_ARM64 + const char arch[] = "arm64"; #else const char arch[] = "unknown"; #endif diff --git a/tools/disasm.py b/tools/disasm.py index 6fa81ca..cc7ef06 100644 --- a/tools/disasm.py +++ b/tools/disasm.py @@ -49,7 +49,8 @@ _ARCH_MAP = { "ia32": "-m i386", "x64": "-m i386 -M x86-64", "arm": "-m arm", # Not supported by our objdump build. - "mips": "-m mips" # Not supported by our objdump build. + "mips": "-m mips", # Not supported by our objdump build. + "arm64": "-m aarch64" } diff --git a/tools/ll_prof.py b/tools/ll_prof.py index 216929d..409b396 100755 --- a/tools/ll_prof.py +++ b/tools/ll_prof.py @@ -351,7 +351,8 @@ class LogReader(object): "ia32": ctypes.c_uint32, "arm": ctypes.c_uint32, "mips": ctypes.c_uint32, - "x64": ctypes.c_uint64 + "x64": ctypes.c_uint64, + "arm64": ctypes.c_uint64 } _CODE_CREATE_TAG = "C" -- 2.7.4