| Index: runtime/vm/compiler.cc
|
| ===================================================================
|
| --- runtime/vm/compiler.cc (revision 32801)
|
| +++ runtime/vm/compiler.cc (working copy)
|
| @@ -257,9 +257,9 @@
|
| if (optimized && !function.IsOptimizable()) {
|
| return false;
|
| }
|
| - TimerScope timer(FLAG_compiler_stats, &CompilerStats::codegen_timer);
|
| + Isolate* isolate = Isolate::Current();
|
| + TimerScope timer(FLAG_compiler_stats, &CompilerStats::codegen_timer, isolate);
|
| bool is_compiled = false;
|
| - Isolate* isolate = Isolate::Current();
|
| HANDLESCOPE(isolate);
|
| isolate->set_cha_used(false);
|
|
|
| @@ -352,7 +352,8 @@
|
| // Inlining (mutates the flow graph)
|
| if (FLAG_use_inlining) {
|
| TimerScope timer(FLAG_compiler_stats,
|
| - &CompilerStats::graphinliner_timer);
|
| + &CompilerStats::graphinliner_timer,
|
| + isolate);
|
| // Propagate types to create more inlining opportunities.
|
| FlowGraphTypePropagator::Propagate(flow_graph);
|
| DEBUG_ASSERT(flow_graph->VerifyUseLists());
|
| @@ -747,7 +748,7 @@
|
| return Error::null();
|
| }
|
| if (setjmp(*jump.Set()) == 0) {
|
| - TIMERSCOPE(time_compilation);
|
| + TIMERSCOPE(isolate, time_compilation);
|
| Timer per_compile_timer(FLAG_trace_compiler, "Compilation time");
|
| per_compile_timer.Start();
|
| ParsedFunction* parsed_function =
|
|
|