| Index: src/compiler.cc
|
| diff --git a/src/compiler.cc b/src/compiler.cc
|
| index f471224b42c5430f7f2c551efe569f0e10609990..7b4afe375f9e5346ddf8da8ea38423b46ded7344 100644
|
| --- a/src/compiler.cc
|
| +++ b/src/compiler.cc
|
| @@ -307,7 +307,9 @@ OptimizedCompileJob::Status OptimizedCompileJob::CreateGraph() {
|
| if (FLAG_always_full_compiler) return AbortOptimization();
|
|
|
| // Do not use crankshaft if compiling for debugging.
|
| - if (info()->is_debug()) return AbortOptimization(kDebuggerIsActive);
|
| + if (isolate()->DebuggerHasBreakPoints()) {
|
| + return AbortOptimization(kDebuggerIsActive);
|
| + }
|
|
|
| // Limit the number of times we re-compile a functions with
|
| // the optimizing compiler.
|
|
|