Index: src/objects.cc |
diff --git a/src/objects.cc b/src/objects.cc |
index 07c7be1317a954839183e326c8cacaecd8c4fb03..5c63264c645fb2e9edd3821dc31e021918901082 100644 |
--- a/src/objects.cc |
+++ b/src/objects.cc |
@@ -13377,6 +13377,14 @@ void SharedFunctionInfo::SetScript(Handle<SharedFunctionInfo> shared, |
shared->set_script(*script_object); |
} |
+bool SharedFunctionInfo::HasBreakInfo() const { |
+ if (!HasDebugInfo()) return false; |
+ DebugInfo* info = DebugInfo::cast(debug_info()); |
+ bool has_break_info = info->HasBreakInfo(); |
+ DCHECK_IMPLIES(has_break_info, HasDebugCode()); |
+ return has_break_info; |
+} |
+ |
DebugInfo* SharedFunctionInfo::GetDebugInfo() const { |
DCHECK(HasDebugInfo()); |
return DebugInfo::cast(debug_info()); |