| 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));
|
| }
|
|
|
|
|
|
|