| 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);
|
| }
|
| }
|
|
|