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

Unified Diff: src/compiler.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.cc ('k') | src/compiler/bytecode-graph-builder.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler.cc
diff --git a/src/compiler.cc b/src/compiler.cc
index a6cbe661e23374f80ad0f7e422a5670a58c9707c..9620ed1a26f8f3dc26cef3d4c98d7cdb24455e6f 100644
--- a/src/compiler.cc
+++ b/src/compiler.cc
@@ -451,6 +451,13 @@ void InstallUnoptimizedCode(CompilationInfo* info) {
// Install compilation result on the shared function info
InstallSharedCompilationResult(info, shared);
+
+ // Install coverage info on the shared function info.
+ if (info->has_coverage_info()) {
+ DCHECK(info->is_block_coverage_enabled());
+ info->isolate()->debug()->InstallCoverageInfo(info->shared_info(),
+ info->coverage_info());
+ }
}
CompilationJob::Status FinalizeUnoptimizedCompilationJob(CompilationJob* job) {
« no previous file with comments | « src/compilation-info.cc ('k') | src/compiler/bytecode-graph-builder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698