Commit 0cc77049 authored by martyn.capewell's avatar martyn.capewell Committed by Commit bot

ARM64: Enable --perf-prof

Define the ELF e_machine field for ARM64, enabling --perf-prof.

BUG=

Review-Url: https://codereview.chromium.org/1992263002
Cr-Commit-Position: refs/heads/master@{#36373}
parent d94fbbe0
......@@ -71,6 +71,7 @@ class PerfJitLogger : public CodeEventLogger {
static const uint32_t kElfMachX64 = 62;
static const uint32_t kElfMachARM = 40;
static const uint32_t kElfMachMIPS = 10;
static const uint32_t kElfMachARM64 = 183;
uint32_t GetElfMach() {
#if V8_TARGET_ARCH_IA32
......@@ -81,6 +82,8 @@ class PerfJitLogger : public CodeEventLogger {
return kElfMachARM;
#elif V8_TARGET_ARCH_MIPS
return kElfMachMIPS;
#elif V8_TARGET_ARCH_ARM64
return kElfMachARM64;
#else
UNIMPLEMENTED();
return 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment