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, |