Index: src/perf-jit.h |
diff --git a/src/perf-jit.h b/src/perf-jit.h |
index 6efa4bbd6b65c3d559ceba6afdbf092c964bf99e..2b0b4831e0c43da81ee72fb982d3c8523b9ddf9e 100644 |
--- a/src/perf-jit.h |
+++ b/src/perf-jit.h |
@@ -91,6 +91,14 @@ class PerfJitLogger : public CodeEventLogger { |
#endif |
} |
+#if V8_TARGET_ARCH_32_BIT |
+ static const int kElfHeaderSize = 0x34; |
+#elif V8_TARGET_ARCH_64_BIT |
+ static const int kElfHeaderSize = 0x40; |
+#else |
+#error Unknown target architecture pointer size |
+#endif |
+ |
// Per-process singleton file. We assume that there is one main isolate; |
// to determine when it goes away, we keep reference count. |
static base::LazyRecursiveMutex file_mutex_; |