summaryrefslogtreecommitdiff
path: root/deps/v8/src/diagnostics/perf-jit.h
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/src/diagnostics/perf-jit.h')
-rw-r--r--deps/v8/src/diagnostics/perf-jit.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/deps/v8/src/diagnostics/perf-jit.h b/deps/v8/src/diagnostics/perf-jit.h
index dbe78ddf2d..1c9112299e 100644
--- a/deps/v8/src/diagnostics/perf-jit.h
+++ b/deps/v8/src/diagnostics/perf-jit.h
@@ -86,6 +86,7 @@ class PerfJitLogger : public CodeEventLogger {
static const uint32_t kElfMachARM64 = 183;
static const uint32_t kElfMachS390x = 22;
static const uint32_t kElfMachPPC64 = 21;
+ static const uint32_t kElfMachRISCV = 243;
uint32_t GetElfMach() {
#if V8_TARGET_ARCH_IA32
@@ -104,6 +105,8 @@ class PerfJitLogger : public CodeEventLogger {
return kElfMachS390x;
#elif V8_TARGET_ARCH_PPC64
return kElfMachPPC64;
+#elif V8_TARGET_ARCH_RISCV64
+ return kElfMachRISCV;
#else
UNIMPLEMENTED();
return 0;