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

Unified Diff: runtime/vm/locations.cc

Issue 10828115: Implement simple spill store elimination. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: address Srdjan's comments 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') | no next file » | 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 27b375cbc3d37236500a64d843e94f05f96cd706..9e74025aa264727882ae28bf4648dd9febc7965d 100644
--- a/runtime/vm/locations.cc
+++ b/runtime/vm/locations.cc
@@ -66,13 +66,22 @@ const char* Location::Name() const {
void Location::PrintTo(BufferFormatter* f) const {
if (kind() == kStackSlot) {
- f->Print("[fp%+d]", stack_index());
+ f->Print("S%+d", stack_index());
} else {
f->Print("%s", Name());
}
}
+void Location::Print() const {
+ if (kind() == kStackSlot) {
+ OS::Print("S%+d", stack_index());
+ } else {
+ OS::Print("%s", Name());
+ }
+}
+
+
void LocationSummary::PrintTo(BufferFormatter* f) const {
if (input_count() > 0) {
f->Print(" (");
« no previous file with comments | « runtime/vm/locations.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698