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

Unified Diff: runtime/vm/profiler.cc

Issue 148433002: Use portable stack slot constants in profiler (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 11 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/profiler.cc
diff --git a/runtime/vm/profiler.cc b/runtime/vm/profiler.cc
index 1ec1e7fce8df5326cf19970796218e8febced13d..529e733eccfb25b4a8fbe580a0a2e56313718ba4 100644
--- a/runtime/vm/profiler.cc
+++ b/runtime/vm/profiler.cc
@@ -15,6 +15,7 @@
#include "vm/profiler.h"
#include "vm/signal_handler.h"
#include "vm/simulator.h"
+#include "vm/stack_frame.h"
namespace dart {
@@ -819,13 +820,13 @@ int ProfilerSampleStackWalker::walk() {
uword* ProfilerSampleStackWalker::CallerPC(uword* fp) {
ASSERT(fp != NULL);
- return reinterpret_cast<uword*>(*(fp + 1));
+ return reinterpret_cast<uword*>(*(fp + kSavedCallerPcSlotFromFp));
}
uword* ProfilerSampleStackWalker::CallerFP(uword* fp) {
ASSERT(fp != NULL);
- return reinterpret_cast<uword*>(*fp);
+ return reinterpret_cast<uword*>(*(fp + kSavedCallerFpSlotFromFp));
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698