| Index: runtime/vm/compiler.cc
|
| diff --git a/runtime/vm/compiler.cc b/runtime/vm/compiler.cc
|
| index a15dca377bef0e2db308836b3c3ca2bf71a7f845..aedface91b9605f977da963b666592bd7366b425 100644
|
| --- a/runtime/vm/compiler.cc
|
| +++ b/runtime/vm/compiler.cc
|
| @@ -643,6 +643,14 @@ NOT_IN_PRODUCT(
|
| (*prefixes)[i]->RegisterDependentCode(code);
|
| }
|
| }
|
| +
|
| + if (FLAG_disassemble && FlowGraphPrinter::ShouldPrint(function)) {
|
| + Disassembler::DisassembleCode(function, optimized());
|
| + } else if (FLAG_disassemble_optimized &&
|
| + optimized() &&
|
| + FlowGraphPrinter::ShouldPrint(function)) {
|
| + Disassembler::DisassembleCode(function, true);
|
| + }
|
| }
|
|
|
|
|
| @@ -1315,13 +1323,6 @@ static RawError* CompileFunctionHelper(CompilationPipeline* pipeline,
|
| isolate->debugger()->NotifyCompilation(function);
|
| }
|
|
|
| - if (FLAG_disassemble && FlowGraphPrinter::ShouldPrint(function)) {
|
| - Disassembler::DisassembleCode(function, optimized);
|
| - } else if (FLAG_disassemble_optimized &&
|
| - optimized &&
|
| - FlowGraphPrinter::ShouldPrint(function)) {
|
| - Disassembler::DisassembleCode(function, true);
|
| - }
|
| DEBUG_ONLY(CheckInliningIntervals(function));
|
| return Error::null();
|
| } else {
|
|
|