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

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
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);

Powered by Google App Engine
This is Rietveld 408576698