| Index: src/compiler.cc
|
| diff --git a/src/compiler.cc b/src/compiler.cc
|
| index c2d63fb0418d859372705cf41b9d5e5a0da9885b..a6cbe661e23374f80ad0f7e422a5670a58c9707c 100644
|
| --- a/src/compiler.cc
|
| +++ b/src/compiler.cc
|
| @@ -906,7 +906,7 @@ MaybeHandle<Code> GetOptimizedCode(Handle<JSFunction> function,
|
| info->SetOptimizingForOsr(osr_ast_id, osr_frame);
|
|
|
| // Do not use Crankshaft/TurboFan if we need to be able to set break points.
|
| - if (info->shared_info()->HasDebugInfo()) {
|
| + if (info->shared_info()->HasBreakInfo()) {
|
| info->AbortOptimization(kFunctionBeingDebugged);
|
| return MaybeHandle<Code>();
|
| }
|
| @@ -1006,7 +1006,7 @@ CompilationJob::Status FinalizeOptimizedCompilationJob(CompilationJob* job) {
|
| // Shared function no longer needs to be tiered up.
|
| shared->set_marked_for_tier_up(false);
|
|
|
| - DCHECK(!shared->HasDebugInfo());
|
| + DCHECK(!shared->HasBreakInfo());
|
|
|
| // 1) Optimization on the concurrent thread may have failed.
|
| // 2) The function may have already been optimized by OSR. Simply continue.
|
|
|