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

Unified Diff: runtime/vm/locations.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/locations.cc
===================================================================
--- runtime/vm/locations.cc (revision 20045)
+++ runtime/vm/locations.cc (working copy)
@@ -89,11 +89,10 @@
Address Location::ToStackSlotAddress() const {
const intptr_t index = stack_index();
if (index < 0) {
- const intptr_t offset = (1 - index) * kWordSize;
+ const intptr_t offset = (kLastParamSlotIndex - index - 1) * kWordSize;
return Address(FPREG, offset);
} else {
- const intptr_t offset =
- (ParsedFunction::kFirstLocalSlotIndex - index) * kWordSize;
+ const intptr_t offset = (kFirstLocalSlotIndex - index) * kWordSize;
return Address(FPREG, offset);
}
}

Powered by Google App Engine
This is Rietveld 408576698