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

Unified Diff: runtime/vm/deopt_instructions.cc

Issue 14812005: Cleanup deoptimization code to make it architecture independent (in progress). (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 8 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/deopt_instructions.cc
===================================================================
--- runtime/vm/deopt_instructions.cc (revision 22345)
+++ runtime/vm/deopt_instructions.cc (working copy)
@@ -40,12 +40,12 @@
intptr_t DeoptimizationContext::GetFromFp() const {
- return from_frame_[from_frame_size_ - 1 - num_args_ - 1];
+ return from_frame_[from_frame_size_ - num_args_ - kLastParamSlotIndex];
}
intptr_t DeoptimizationContext::GetFromPc() const {
- return from_frame_[from_frame_size_ - 1 - num_args_];
+ return from_frame_[from_frame_size_ - num_args_ + kPcSlotIndexFromSp];
}
intptr_t DeoptimizationContext::GetCallerFp() const {

Powered by Google App Engine
This is Rietveld 408576698