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

Unified Diff: runtime/vm/flow_graph_builder.cc

Issue 1389353004: Remove isolate argument from handle allocation: Part II (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: c Created 5 years, 2 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/flow_graph_inliner.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/flow_graph_builder.cc
diff --git a/runtime/vm/flow_graph_builder.cc b/runtime/vm/flow_graph_builder.cc
index da2caaadb36901bf66eba322f7d04cc64e55e28e..ec41c27904032a85c88bd396971ba8c0db563ee1 100644
--- a/runtime/vm/flow_graph_builder.cc
+++ b/runtime/vm/flow_graph_builder.cc
@@ -2530,13 +2530,15 @@ void EffectGraphVisitor::VisitStringInterpolateNode(
static void CollectClosureFunction(const Function& function) {
if (function.HasCode()) return;
- Isolate* isolate = Isolate::Current();
+ Thread* thread = Thread::Current();
+ Isolate* isolate = thread->isolate();
if (isolate->collected_closures() == GrowableObjectArray::null()) {
isolate->set_collected_closures(
GrowableObjectArray::Handle(GrowableObjectArray::New()));
}
const GrowableObjectArray& functions =
- GrowableObjectArray::Handle(isolate, isolate->collected_closures());
+ GrowableObjectArray::Handle(thread->zone(),
+ isolate->collected_closures());
functions.Add(function);
}
« no previous file with comments | « no previous file | runtime/vm/flow_graph_inliner.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698