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

Unified Diff: runtime/vm/stack_frame.cc

Issue 12381034: Second codegen test passing on ARM (simulated). (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 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
Index: runtime/vm/stack_frame.cc
===================================================================
--- runtime/vm/stack_frame.cc (revision 19272)
+++ runtime/vm/stack_frame.cc (working copy)
@@ -20,7 +20,8 @@
bool StackFrame::IsStubFrame() const {
ASSERT(!(IsEntryFrame() || IsExitFrame()));
- uword saved_pc = *(reinterpret_cast<uword*>(fp() - kWordSize));
+ uword saved_pc =
+ *(reinterpret_cast<uword*>(fp() + EntrypointMarkerOffetFromFp()));
return (saved_pc == 0);
}
@@ -138,7 +139,8 @@
// a GC as we are handling raw object references here. It is possible
// that the code is called while a GC is in progress, that is ok.
NoGCScope no_gc;
- uword saved_pc = *(reinterpret_cast<uword*>(fp() - kWordSize));
+ uword saved_pc =
+ *(reinterpret_cast<uword*>(fp() + EntrypointMarkerOffetFromFp()));
if (saved_pc != 0) {
uword entry_point =
(saved_pc - AssemblerMacros::kOffsetOfSavedPCfromEntrypoint);

Powered by Google App Engine
This is Rietveld 408576698