Index: src/debug/debug.cc |
diff --git a/src/debug/debug.cc b/src/debug/debug.cc |
index 6495dce2e2f1caeb3d5cd19493feb157512b9b0a..3173a07f35817b25182b2cf32260294a3bb79043 100644 |
--- a/src/debug/debug.cc |
+++ b/src/debug/debug.cc |
@@ -1325,7 +1325,7 @@ bool Debug::PrepareFunctionForBreakPoints(Handle<SharedFunctionInfo> shared) { |
DCHECK(baseline_exists || suspended_generators.is_empty()); |
// We do not need to recompile to debug bytecode. |
- if (baseline_exists && !shared->HasDebugCode()) { |
+ if (baseline_exists && !shared->code()->has_debug_break_slots()) { |
DCHECK(functions.length() > 0); |
if (!Compiler::CompileDebugCode(functions.first())) return false; |
} |