Index: src/objects.cc |
diff --git a/src/objects.cc b/src/objects.cc |
index 4f3b33ffea8e60688f0d855182e58f108eb85cdd..17cb6efebd0fd730fa6f59815376a23081b77d04 100644 |
--- a/src/objects.cc |
+++ b/src/objects.cc |
@@ -13385,6 +13385,14 @@ bool SharedFunctionInfo::HasBreakInfo() const { |
return has_break_info; |
} |
+bool SharedFunctionInfo::HasCoverageInfo() const { |
+ if (!HasDebugInfo()) return false; |
+ DebugInfo* info = DebugInfo::cast(debug_info()); |
+ bool has_coverage_info = info->HasCoverageInfo(); |
+ DCHECK_IMPLIES(has_coverage_info, FLAG_block_coverage); |
+ return has_coverage_info; |
+} |
+ |
DebugInfo* SharedFunctionInfo::GetDebugInfo() const { |
DCHECK(HasDebugInfo()); |
return DebugInfo::cast(debug_info()); |