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

Unified Diff: runtime/vm/flow_graph.cc

Issue 10915083: Change assert implementation to not depend on a top-level function called 'assert'. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address review comments. 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 | « lib/compiler/implementation/universe.dart ('k') | 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 71c6c31ad2f070f2584d6c781551e7281c022cbb..23edb15bf1bfba2da0c1457c65ef197b6f383cd9 100644
--- a/runtime/vm/flow_graph.cc
+++ b/runtime/vm/flow_graph.cc
@@ -494,9 +494,7 @@ void FlowGraph::Rename(GrowableArray<PhiInstr*>* live_phis) {
}
// Name global constants.
- ConstantInstr* constant_null = new ConstantInstr(Object::ZoneHandle());
- constant_null->set_ssa_temp_index(alloc_ssa_temp_index());
- graph_entry_->set_constant_null(constant_null);
+ graph_entry_->constant_null()->set_ssa_temp_index(alloc_ssa_temp_index());
// Initialize start environment.
GrowableArray<Definition*> start_env(variable_count());
« no previous file with comments | « lib/compiler/implementation/universe.dart ('k') | runtime/vm/il_printer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698