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

Unified Diff: runtime/vm/flow_graph_optimizer.cc

Issue 10870100: Environment sets the environment position when copying to maintain the use lists. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Set the env. Created 8 years, 4 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/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_optimizer.cc
diff --git a/runtime/vm/flow_graph_optimizer.cc b/runtime/vm/flow_graph_optimizer.cc
index fb27ba1dddd950d224fd0d0a458b4c3963ec5579..c6e779480d28046026fe4cf4198f9433fde768d4 100644
--- a/runtime/vm/flow_graph_optimizer.cc
+++ b/runtime/vm/flow_graph_optimizer.cc
@@ -252,7 +252,7 @@ BindInstr* FlowGraphOptimizer::InsertBefore(Instruction* instr,
Environment* env,
BindInstr::UseKind use_kind) {
BindInstr* bind = new BindInstr(use_kind, comp);
- if (env != NULL) bind->set_env(env->Copy());
+ if (env != NULL) env->CopyTo(bind);
if (use_kind == BindInstr::kUsed) {
bind->set_ssa_temp_index(flow_graph_->alloc_ssa_temp_index());
}
@@ -266,7 +266,7 @@ BindInstr* FlowGraphOptimizer::InsertAfter(Instruction* instr,
Environment* env,
BindInstr::UseKind use_kind) {
BindInstr* bind = new BindInstr(use_kind, comp);
- if (env != NULL) bind->set_env(env->Copy());
+ if (env != NULL) env->CopyTo(bind);
if (use_kind == BindInstr::kUsed) {
bind->set_ssa_temp_index(flow_graph_->alloc_ssa_temp_index());
}
« no previous file with comments | « no previous file | runtime/vm/intermediate_language.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698