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

Unified Diff: runtime/vm/locations.cc

Issue 10828018: Add support for fixed parameters in the register allocator. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: rebase, fix off by one in deopt stub generation Created 8 years, 5 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
« no previous file with comments | « runtime/vm/locations.h ('k') | runtime/vm/scopes.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/locations.cc
diff --git a/runtime/vm/locations.cc b/runtime/vm/locations.cc
index ba8d24bcbd39d312e940fea7fb6cf5c09d118056..b8cabdd3282a745643bb132749e4537b532f0c47 100644
--- a/runtime/vm/locations.cc
+++ b/runtime/vm/locations.cc
@@ -44,7 +44,7 @@ const char* Location::Name() const {
switch (kind()) {
case kInvalid: return "?";
case kRegister: return Assembler::RegisterName(reg());
- case kSpillSlot: return "S";
+ case kStackSlot: return "S";
case kUnallocated:
switch (policy()) {
case kAny:
@@ -66,8 +66,8 @@ const char* Location::Name() const {
void Location::PrintTo(BufferFormatter* f) const {
- if (kind() == kSpillSlot) {
- f->Print("S%d", spill_index());
+ if (kind() == kStackSlot) {
+ f->Print("[fp%+d]", stack_index());
} else {
f->Print("%s", Name());
}
« no previous file with comments | « runtime/vm/locations.h ('k') | runtime/vm/scopes.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698