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

Unified Diff: runtime/vm/flow_graph.cc

Issue 982873004: Thread/Isolate refactoring: new(Isolate) -> new(Zone) (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 5 years, 9 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.h ('k') | runtime/vm/flow_graph_builder.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/flow_graph.cc
===================================================================
--- runtime/vm/flow_graph.cc (revision 44266)
+++ runtime/vm/flow_graph.cc (working copy)
@@ -136,7 +136,9 @@
}
instr->InsertAfter(prev);
ASSERT(instr->env() == NULL);
- if (env != NULL) env->DeepCopyTo(isolate(), instr);
+ if (env != NULL) {
+ env->DeepCopyTo(zone(), instr);
+ }
}
@@ -149,7 +151,9 @@
AllocateSSAIndexes(instr->AsDefinition());
}
ASSERT(instr->env() == NULL);
- if (env != NULL) env->DeepCopyTo(isolate(), instr);
+ if (env != NULL) {
+ env->DeepCopyTo(zone(), instr);
+ }
return prev->AppendInstruction(instr);
}
@@ -884,12 +888,12 @@
void FlowGraph::AttachEnvironment(Instruction* instr,
GrowableArray<Definition*>* env) {
Environment* deopt_env =
- Environment::From(isolate(),
+ Environment::From(zone(),
*env,
num_non_copied_params_,
parsed_function_);
if (instr->IsClosureCall()) {
- deopt_env = deopt_env->DeepCopy(isolate(),
+ deopt_env = deopt_env->DeepCopy(zone(),
deopt_env->Length() - instr->InputCount());
}
instr->SetEnvironment(deopt_env);
« no previous file with comments | « runtime/vm/flow_graph.h ('k') | runtime/vm/flow_graph_builder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698