Index: src/compiler.cc |
diff --git a/src/compiler.cc b/src/compiler.cc |
index 42fcc78406bfa945b9902df124372bab36928235..0d3f146ab007e3dd0bfc8e4c1c6179b1cb459ad6 100644 |
--- a/src/compiler.cc |
+++ b/src/compiler.cc |
@@ -297,8 +297,10 @@ OptimizedCompileJob::Status OptimizedCompileJob::CreateGraph() { |
// generated code for this from the shared function object. |
if (FLAG_always_full_compiler) return AbortOptimization(); |
- // Do not use crankshaft if compiling for debugging. |
- if (info()->is_debug()) return AbortOptimization(kDebuggerIsActive); |
+ // Do not use crankshaft if we need to be able to set break points. |
+ if (isolate()->DebuggerHasBreakPoints()) { |
+ return AbortOptimization(kDebuggerHasBreakPoints); |
+ } |
// Limit the number of times we re-compile a functions with |
// the optimizing compiler. |