| Index: runtime/vm/locations.cc
|
| ===================================================================
|
| --- runtime/vm/locations.cc (revision 25107)
|
| +++ runtime/vm/locations.cc (working copy)
|
| @@ -87,8 +87,6 @@
|
| }
|
|
|
|
|
| -// TODO(regis): Remove all occurences of Address in the architecture independent
|
| -// portion of the vm.
|
| Address Location::ToStackSlotAddress() const {
|
| const intptr_t index = stack_index();
|
| if (index < 0) {
|
| @@ -101,6 +99,18 @@
|
| }
|
|
|
|
|
| +intptr_t Location::ToStackSlotOffset() const {
|
| + const intptr_t index = stack_index();
|
| + if (index < 0) {
|
| + const intptr_t offset = (kParamEndSlotFromFp - index) * kWordSize;
|
| + return offset;
|
| + } else {
|
| + const intptr_t offset = (kFirstLocalSlotFromFp - index) * kWordSize;
|
| + return offset;
|
| + }
|
| +}
|
| +
|
| +
|
| const char* Location::Name() const {
|
| switch (kind()) {
|
| case kInvalid: return "?";
|
|
|