Index: runtime/vm/flow_graph_compiler.cc |
diff --git a/runtime/vm/flow_graph_compiler.cc b/runtime/vm/flow_graph_compiler.cc |
index c7d3215bd9473da59ef811dad3fb5c816185140f..7f2d4a83c32d3b6cd266ef6154992df71c09f8a3 100644 |
--- a/runtime/vm/flow_graph_compiler.cc |
+++ b/runtime/vm/flow_graph_compiler.cc |
@@ -175,7 +175,8 @@ FlowGraphCompiler::FlowGraphCompiler( |
block_info_(block_order_.length()), |
deopt_infos_(), |
static_calls_target_table_(GrowableObjectArray::ZoneHandle( |
- GrowableObjectArray::New())), |
+ // TODO(srdjan): Zone-allocate this array instead? |
+ GrowableObjectArray::New(Heap::kOld))), |
is_optimizing_(is_optimizing), |
may_reoptimize_(false), |
intrinsic_mode_(false), |
@@ -516,7 +517,7 @@ void FlowGraphCompiler::VisitBlocks() { |
} |
if (is_optimizing()) { |
- LogBlock lb(Isolate::Current()); |
+ LogBlock lb(Thread::Current()); |
intervals.Add(IntervalStruct(prev_offset, prev_inlining_id)); |
inlined_code_intervals_ = |
Array::New(intervals.length() * Code::kInlIntNumEntries, Heap::kOld); |