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

Unified Diff: src/compilation-info.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/compilation-info.h ('k') | src/compiler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compilation-info.cc
diff --git a/src/compilation-info.cc b/src/compilation-info.cc
index 91827805d3d3b8586e2ede07bad5cfd103643221..2234ea19ac07e76c63bc95e0e666590b89b5301f 100644
--- a/src/compilation-info.cc
+++ b/src/compilation-info.cc
@@ -76,6 +76,11 @@ CompilationInfo::CompilationInfo(Zone* zone, ParseInfo* parse_info,
if (isolate_->NeedsSourcePositionsForProfiling()) {
MarkAsSourcePositionsEnabled();
}
+
+ if (FLAG_block_coverage && isolate->is_block_count_code_coverage() &&
+ parse_info->script()->IsUserJavaScript()) {
+ MarkAsBlockCoverageEnabled();
+ }
}
CompilationInfo::CompilationInfo(Vector<const char> debug_name,
« no previous file with comments | « src/compilation-info.h ('k') | src/compiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698