Index: src/compiler.cc |
diff --git a/src/compiler.cc b/src/compiler.cc |
index 3da686aad11b6a5a6bf1ff3b571f1fce323beb39..f643b9dcec30990f77cd48ac7923ad211600b00e 100644 |
--- a/src/compiler.cc |
+++ b/src/compiler.cc |
@@ -1058,6 +1058,9 @@ void Compiler::InstallOptimizedCode(OptimizingCompiler* optimizing_compiler) { |
} else if (status != OptimizingCompiler::SUCCEEDED) { |
info->set_bailout_reason("failed/bailed out last time"); |
status = optimizing_compiler->AbortOptimization(); |
+ } else if (isolate->debugger()->IsDebuggerActive()) { |
+ info->set_bailout_reason("debugger is active"); |
+ status = optimizing_compiler->AbortOptimization(); |
} else { |
status = optimizing_compiler->GenerateAndInstallCode(); |
ASSERT(status == OptimizingCompiler::SUCCEEDED || |