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

Unified Diff: runtime/vm/flow_graph_builder.cc

Issue 10765007: Cleanups. (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
« no previous file with comments | « runtime/vm/flow_graph_builder.h ('k') | runtime/vm/intermediate_language.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/flow_graph_builder.cc
===================================================================
--- runtime/vm/flow_graph_builder.cc (revision 9469)
+++ runtime/vm/flow_graph_builder.cc (working copy)
@@ -2456,7 +2456,7 @@
intptr_t i = 0;
for (; i < parsed_function().function().num_fixed_parameters(); ++i) {
ParameterInstr* param = new ParameterInstr(i);
- param->set_ssa_temp_index(current_ssa_temp_index_++); // New SSA temp.
+ param->set_ssa_temp_index(alloc_ssa_temp_index()); // New SSA temp.
start_env->Add(new UseVal(param));
}
@@ -2504,7 +2504,7 @@
PhiInstr* phi = (*join->phis())[i];
if (phi != NULL) {
(*env)[i] = new UseVal(phi);
- phi->set_ssa_temp_index(current_ssa_temp_index_++); // New SSA temp.
+ phi->set_ssa_temp_index(alloc_ssa_temp_index()); // New SSA temp.
}
}
}
@@ -2573,7 +2573,7 @@
// Not a load or store.
if (bind->is_used()) {
// Assign fresh SSA temporary and update expression stack.
- bind->set_ssa_temp_index(current_ssa_temp_index_++);
+ bind->set_ssa_temp_index(alloc_ssa_temp_index());
env->Add(new UseVal(bind));
}
}
« no previous file with comments | « runtime/vm/flow_graph_builder.h ('k') | runtime/vm/intermediate_language.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698