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

Unified Diff: runtime/vm/stack_frame.h

Issue 15110003: Make deoptimization architecture dependent (it depends on the frame layout). (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 7 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 | « runtime/vm/flow_graph_compiler_x64.cc ('k') | runtime/vm/stack_frame_arm.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/stack_frame.h
===================================================================
--- runtime/vm/stack_frame.h (revision 22714)
+++ runtime/vm/stack_frame.h (working copy)
@@ -40,6 +40,15 @@
return *reinterpret_cast<uword*>(sp_ + (kSavedPcSlotFromSp * kWordSize));
}
+ // The pool pointer is not implemented on all architectures.
+ static int SavedCallerPpSlotFromFp() {
+ if (kSavedCallerPpSlotFromFp != kSavedCallerFpSlotFromFp) {
+ return kSavedCallerPpSlotFromFp;
+ }
+ UNREACHABLE();
+ return 0;
+ }
+
void set_pc(uword value) {
*reinterpret_cast<uword*>(sp_ + (kSavedPcSlotFromSp * kWordSize)) = value;
}
« no previous file with comments | « runtime/vm/flow_graph_compiler_x64.cc ('k') | runtime/vm/stack_frame_arm.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698