Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(783)

Unified Diff: src/objects.cc

Issue 2882973002: [coverage] Block coverage with support for IfStatements (Closed)
Patch Set: Address comments Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/objects.h ('k') | src/objects-inl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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());
« no previous file with comments | « src/objects.h ('k') | src/objects-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698