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

Unified Diff: runtime/vm/flow_graph_builder.cc

Issue 9454012: Add type testing and casting support. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 10 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/flow_graph_builder.cc
diff --git a/runtime/vm/flow_graph_builder.cc b/runtime/vm/flow_graph_builder.cc
index 2424a1d6182db3274ebecf7e0169ed23674f40f1..5f646fed1a55b4b4e1afc6524259b97184054fe5 100644
--- a/runtime/vm/flow_graph_builder.cc
+++ b/runtime/vm/flow_graph_builder.cc
@@ -879,8 +879,8 @@ void FlowGraphBuilder::PrintGraph() const {
OS::Print("\n");
current = current->Print();
}
- if (current != NULL && current->IsBlockEntry()) {
- OS::Print(" goto %d", current->GetBlockNumber());
+ if ((current != NULL) && current->IsBlockEntry()) {
+ OS::Print(" goto %d", BlockEntryInstr::cast(current)->block_number());
}
OS::Print("\n");
}
@@ -898,7 +898,7 @@ void FlowGraphBuilder::BuildGraph() {
// Number the blocks in reverse postorder starting with 0.
intptr_t last_index = postorder_block_entries_.length() - 1;
for (intptr_t i = last_index; i >= 0; --i) {
- postorder_block_entries_[i]->SetBlockNumber(last_index - i);
+ postorder_block_entries_[i]->set_block_number(last_index - i);
}
}
PrintGraph();

Powered by Google App Engine
This is Rietveld 408576698