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

Unified Diff: src/platform.h

Issue 9401019: Support for return-address rewriting profilers. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fix abortive comment. Created 8 years, 10 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 | « src/frames.cc ('k') | src/platform-win32.cc » ('j') | src/platform-win32.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/platform.h
diff --git a/src/platform.h b/src/platform.h
index a0186d580fe32c6573d7dc3031011bd0244b0ea8..691c42a468d6f23e5f8ca10f5f784c1546b35881 100644
--- a/src/platform.h
+++ b/src/platform.h
@@ -256,6 +256,20 @@ class OS {
// using --never-compact) if accurate profiling is desired.
static void SignalCodeMovingGC();
+ // Support for profilers that change the return address for functions under
+ // profiling. The input is a pointer to a return address on the stack, and the
+ // return value is either that same pointer, or a pointer to the location
+ // where the profiler has stashed the actual return address.
+ // This is implemented only for the Syzygy instrumenting performance profiler
+ // on Win32 at present.
+#ifdef _WIN32
+ static Address* ResolveReturnAddressLocation(Address* pc_address);
+#else
+ static Address* ResolveReturnAddressLocation(Address* pc_address) {
+ return pc_address;
+ }
+#endif
+
// The return value indicates the CPU features we are sure of because of the
// OS. For example MacOSX doesn't run on any x86 CPUs that don't have SSE2
// instructions.
« no previous file with comments | « src/frames.cc ('k') | src/platform-win32.cc » ('j') | src/platform-win32.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698