Index: runtime/vm/flow_graph.cc |
=================================================================== |
--- runtime/vm/flow_graph.cc (revision 44266) |
+++ runtime/vm/flow_graph.cc (working copy) |
@@ -136,7 +136,7 @@ |
} |
instr->InsertAfter(prev); |
ASSERT(instr->env() == NULL); |
- if (env != NULL) env->DeepCopyTo(isolate(), instr); |
+ if (env != NULL) env->DeepCopyTo(zone(), instr); |
Ivan Posva
2015/03/13 21:56:50
Please add
{
...
}
koda
2015/03/14 00:46:37
Done.
|
} |
@@ -149,7 +149,7 @@ |
AllocateSSAIndexes(instr->AsDefinition()); |
} |
ASSERT(instr->env() == NULL); |
- if (env != NULL) env->DeepCopyTo(isolate(), instr); |
+ if (env != NULL) env->DeepCopyTo(zone(), instr); |
Ivan Posva
2015/03/13 21:56:50
ditto
koda
2015/03/14 00:46:37
Done.
|
return prev->AppendInstruction(instr); |
} |
@@ -884,12 +884,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); |