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

Unified Diff: runtime/vm/il_printer.cc

Issue 14057004: Convert diamond shaped control flow into a single conditional instruction. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: address Florian's comments Created 7 years, 8 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 cb6b00593c7772b36776c9ae16d6bc3db12f35e5..1465a83b5519a1cdbb65d0562243438dd70e53ca 100644
--- a/runtime/vm/il_printer.cc
+++ b/runtime/vm/il_printer.cc
@@ -429,6 +429,16 @@ void StoreInstanceFieldInstr::PrintOperandsTo(BufferFormatter* f) const {
}
+void IfThenElseInstr::PrintOperandsTo(BufferFormatter* f) const {
+ left()->PrintTo(f);
+ f->Print(" %s ", Token::Str(kind_));
+ right()->PrintTo(f);
+ f->Print(" ? %"Pd" : %"Pd,
+ if_true_,
+ if_false_);
+}
+
+
void LoadStaticFieldInstr::PrintOperandsTo(BufferFormatter* f) const {
f->Print("%s", String::Handle(field().name()).ToCString());
}

Powered by Google App Engine
This is Rietveld 408576698