| Index: runtime/vm/compiler.cc
|
| ===================================================================
|
| --- runtime/vm/compiler.cc (revision 44996)
|
| +++ runtime/vm/compiler.cc (working copy)
|
| @@ -976,6 +976,12 @@
|
| TIMERSCOPE(isolate, time_compilation);
|
| Timer per_compile_timer(FLAG_trace_compiler, "Compilation time");
|
| per_compile_timer.Start();
|
| +
|
| + // Restore unoptimized code if needed.
|
| + if (optimized) {
|
| + Compiler::EnsureUnoptimizedCode(Thread::Current(), function);
|
| + }
|
| +
|
| ParsedFunction* parsed_function = new(zone) ParsedFunction(
|
| thread, Function::ZoneHandle(zone, function.raw()));
|
| if (FLAG_trace_compiler) {
|
|
|