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

Unified Diff: runtime/vm/il_printer.cc

Issue 10806089: Add HasSSATemp and an assert to ssa_temp_idnex setter. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: 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/flow_graph_allocator.cc ('k') | runtime/vm/intermediate_language.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/il_printer.cc
===================================================================
--- runtime/vm/il_printer.cc (revision 9849)
+++ runtime/vm/il_printer.cc (working copy)
@@ -123,7 +123,7 @@
void UseVal::PrintTo(BufferFormatter* f) const {
- if (definition()->ssa_temp_index() != -1) {
+ if (definition()->HasSSATemp()) {
f->Print("v%d", definition()->ssa_temp_index());
} else {
f->Print("t%d", definition()->temp_index());
@@ -395,7 +395,7 @@
void ParameterInstr::PrintTo(BufferFormatter* f) const {
f->Print(" v%d <- parameter(%d)",
- (ssa_temp_index() != -1) ? ssa_temp_index() : temp_index(),
+ HasSSATemp() ? ssa_temp_index() : temp_index(),
index());
}
@@ -413,7 +413,7 @@
void BindInstr::PrintTo(BufferFormatter* f) const {
if (!is_used()) {
f->Print(" ");
- } else if (ssa_temp_index() != -1) {
+ } else if (HasSSATemp()) {
f->Print(" v%d <- ", ssa_temp_index());
} else {
f->Print(" t%d <- ", temp_index());
@@ -652,7 +652,7 @@
void ParameterInstr::PrintToVisualizer(BufferFormatter* f) const {
- ASSERT(ssa_temp_index() != -1);
+ ASSERT(HasSSATemp());
ASSERT(temp_index() == -1);
f->Print("v%d Parameter(%d)", ssa_temp_index(), index());
}
@@ -671,7 +671,7 @@
void BindInstr::PrintToVisualizer(BufferFormatter* f) const {
if (!is_used()) {
f->Print("_ ");
- } else if (ssa_temp_index() != -1) {
+ } else if (HasSSATemp()) {
f->Print("v%d ", ssa_temp_index());
} else {
f->Print("t%d ", temp_index());
« no previous file with comments | « runtime/vm/flow_graph_allocator.cc ('k') | runtime/vm/intermediate_language.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698