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

Unified Diff: runtime/vm/il_printer.cc

Issue 10891025: Eliminate class UseVal. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 4 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
Index: runtime/vm/il_printer.cc
diff --git a/runtime/vm/il_printer.cc b/runtime/vm/il_printer.cc
index e96fe865a30b3c4949247268aa20b63316817475..eb47e182efa1ec26fe40ec43f7ee38d77cc4e554 100644
--- a/runtime/vm/il_printer.cc
+++ b/runtime/vm/il_printer.cc
@@ -150,7 +150,7 @@ void Computation::PrintOperandsTo(BufferFormatter* f) const {
}
-void UseVal::PrintTo(BufferFormatter* f) const {
+void Value::PrintTo(BufferFormatter* f) const {
if (definition()->HasSSATemp()) {
f->Print("v%d", definition()->ssa_temp_index());
} else {
@@ -429,12 +429,10 @@ void GraphEntryInstr::PrintTo(BufferFormatter* f) const {
f->Print("\n{\n");
const GrowableArray<Value*>& values = start_env_->values();
for (intptr_t i = 0; i < values.length(); i++) {
- if (values[i]->IsUse()) {
- Definition* def = values[i]->AsUse()->definition();
- f->Print(" ", i);
- def->PrintTo(f);
- f->Print("\n");
- }
+ Definition* def = values[i]->definition();
+ f->Print(" ", i);
+ def->PrintTo(f);
+ f->Print("\n");
}
f->Print("} ");
start_env_->PrintTo(f);

Powered by Google App Engine
This is Rietveld 408576698