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

Unified Diff: vm/flow_graph_optimizer.cc

Issue 10665022: Make IL instructions a doubly-linked list within basic blocks. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 8 years, 6 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 | « vm/flow_graph_compiler.cc ('k') | vm/il_printer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: vm/flow_graph_optimizer.cc
===================================================================
--- vm/flow_graph_optimizer.cc (revision 9281)
+++ vm/flow_graph_optimizer.cc (working copy)
@@ -532,7 +532,7 @@
static void TryFuseComparisonWithBranch(ComparisonComp* comp) {
Instruction* instr = comp->instr();
- Instruction* next_instr = instr->StraightLineSuccessor();
+ Instruction* next_instr = instr->successor();
if ((next_instr != NULL) && next_instr->IsBranch()) {
BranchInstr* branch = next_instr->AsBranch();
UseVal* use = branch->value()->AsUse();
@@ -545,7 +545,7 @@
if ((next_instr != NULL) && next_instr->IsBind()) {
Computation* next_comp = next_instr->AsBind()->computation();
if (next_comp->IsBooleanNegate()) {
- Instruction* next_next_instr = next_instr->StraightLineSuccessor();
+ Instruction* next_next_instr = next_instr->successor();
if ((next_next_instr != NULL) && next_next_instr->IsBranch()) {
BooleanNegateComp* negate = next_comp->AsBooleanNegate();
BranchInstr* branch = next_next_instr->AsBranch();
@@ -554,7 +554,7 @@
comp->MarkFusedWithBranch(branch);
branch->MarkFusedWithComparison();
branch->set_is_negated(true);
- instr->SetSuccessor(next_next_instr);
+ instr->set_successor(next_next_instr);
return;
}
}
@@ -624,7 +624,7 @@
is_leaf_ = true;
for (intptr_t i = 0; i < blocks_.length(); ++i) {
BlockEntryInstr* block_entry = blocks_[i];
- Instruction* instr = block_entry->StraightLineSuccessor();
+ Instruction* instr = block_entry->successor();
while ((instr != NULL) && !instr->IsBlockEntry()) {
LocationSummary* locs = instr->locs();
if (locs != NULL) {
@@ -633,7 +633,7 @@
return;
}
}
- instr = instr->StraightLineSuccessor();
+ instr = instr->successor();
}
}
}
« no previous file with comments | « vm/flow_graph_compiler.cc ('k') | vm/il_printer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698