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

Unified Diff: runtime/vm/il_printer.cc

Issue 10802025: Fuse compare with branch at graph building time. (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
Index: runtime/vm/il_printer.cc
===================================================================
--- runtime/vm/il_printer.cc (revision 9728)
+++ runtime/vm/il_printer.cc (working copy)
@@ -443,16 +443,16 @@
void BranchInstr::PrintTo(BufferFormatter* f) const {
f->Print(" %s ", DebugName());
f->Print("if ");
- if (is_fused_with_comparison()) {
- if (is_negated()) f->Print(" not ");
- fused_with_comparison_->PrintTo(f);
- } else {
- value()->PrintTo(f);
- }
+ left()->PrintTo(f);
+ f-> Print(" %s ", Token::Str(kind()));
+ right()->PrintTo(f);
f->Print(" goto (%d, %d)",
true_successor()->block_id(),
false_successor()->block_id());
+ if (HasICData()) {
+ PrintICData(f, *ic_data());
+ }
}
@@ -694,7 +694,9 @@
void BranchInstr::PrintToVisualizer(BufferFormatter* f) const {
f->Print("_ %s ", DebugName());
f->Print("if ");
- value()->PrintTo(f);
+ left()->PrintTo(f);
+ f-> Print(" %s ", Token::Str(kind()));
+ right()->PrintTo(f);
f->Print(" goto (B%d, B%d)",
true_successor()->block_id(),
false_successor()->block_id());

Powered by Google App Engine
This is Rietveld 408576698