Index: runtime/vm/compiler.cc |
diff --git a/runtime/vm/compiler.cc b/runtime/vm/compiler.cc |
index 7c88444c94d75e6546c1e3abc203d1b617e42e50..d74e91365f4c0642ea3a33a7cb553e753885df69 100644 |
--- a/runtime/vm/compiler.cc |
+++ b/runtime/vm/compiler.cc |
@@ -1371,7 +1371,9 @@ static RawError* CompileFunctionHelper(CompilationPipeline* pipeline, |
per_compile_timer.TotalElapsedTime()); |
} |
- isolate->debugger()->NotifyCompilation(function); |
+ if (FLAG_support_debugger) { |
+ isolate->debugger()->NotifyCompilation(function); |
+ } |
if (FLAG_disassemble && FlowGraphPrinter::ShouldPrint(function)) { |
DisassembleCode(function, optimized); |