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

Unified Diff: runtime/vm/flow_graph.cc

Issue 10915141: Repair flow graph printing after graph refactoring. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 3 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 | « no previous file | runtime/vm/il_printer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/flow_graph.cc
diff --git a/runtime/vm/flow_graph.cc b/runtime/vm/flow_graph.cc
index 26719e9ed29f12a61a536011cc4fb9c2c7604ede..e57e89faa7b69f7d81554c4ccc55a91eef705ef2 100644
--- a/runtime/vm/flow_graph.cc
+++ b/runtime/vm/flow_graph.cc
@@ -494,7 +494,9 @@ void FlowGraph::Rename(GrowableArray<PhiInstr*>* live_phis) {
}
// Name global constants.
- graph_entry_->constant_null()->set_ssa_temp_index(alloc_ssa_temp_index());
+ ConstantInstr* constant_null = new ConstantInstr(Object::ZoneHandle());
+ constant_null->set_ssa_temp_index(alloc_ssa_temp_index());
+ graph_entry_->set_constant_null(constant_null);
// Initialize start environment.
GrowableArray<Definition*> start_env(variable_count());
« no previous file with comments | « no previous file | runtime/vm/il_printer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698