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

Unified Diff: runtime/vm/deopt_instructions.cc

Issue 12776006: Make allocation of Dart parameters and local variables architecture independent. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 9 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 20045)
+++ runtime/vm/deopt_instructions.cc (working copy)
@@ -709,14 +709,12 @@
} else if (from_loc.IsStackSlot()) {
intptr_t from_index = (from_loc.stack_index() < 0) ?
from_loc.stack_index() + num_args_ :
- from_loc.stack_index() + num_args_ -
- ParsedFunction::kFirstLocalSlotIndex + 1;
+ from_loc.stack_index() + num_args_ - kFirstLocalSlotIndex + 1;
deopt_instr = new DeoptStackSlotInstr(from_index);
} else if (from_loc.IsDoubleStackSlot()) {
intptr_t from_index = (from_loc.stack_index() < 0) ?
from_loc.stack_index() + num_args_ :
- from_loc.stack_index() + num_args_ -
- ParsedFunction::kFirstLocalSlotIndex + 1;
+ from_loc.stack_index() + num_args_ - kFirstLocalSlotIndex + 1;
if (from_loc.representation() == Location::kDouble) {
deopt_instr = new DeoptDoubleStackSlotInstr(from_index);
} else {

Powered by Google App Engine
This is Rietveld 408576698