Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(393)

Unified Diff: src/perf-jit.h

Issue 2783203005: [perf-prof] Adjust source position addresses according to ELF header size (Closed)
Patch Set: Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/perf-jit.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_;
« no previous file with comments | « no previous file | src/perf-jit.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698