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

Unified Diff: compiler/java/com/google/dart/compiler/DartCompiler.java

Issue 8905021: Dartest CL - Please review (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: '' Created 9 years 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
Index: compiler/java/com/google/dart/compiler/DartCompiler.java
===================================================================
--- compiler/java/com/google/dart/compiler/DartCompiler.java (revision 2358)
+++ compiler/java/com/google/dart/compiler/DartCompiler.java (working copy)
@@ -11,6 +11,7 @@
import com.google.dart.compiler.CommandLineOptions.CompilerOptions;
import com.google.dart.compiler.LibraryDeps.Dependency;
import com.google.dart.compiler.UnitTestBatchRunner.Invocation;
+import com.google.dart.compiler.ast.CoverageInstrumenter;
import com.google.dart.compiler.ast.DartDirective;
import com.google.dart.compiler.ast.DartLibraryDirective;
import com.google.dart.compiler.ast.DartNode;
@@ -682,6 +683,10 @@
// Dump the compiler parse tree if dump format is set in arguments
BaseASTWriter astWriter = ASTWriterFactory.create(config);
+
+ // Coverage instrumenter
+ CoverageInstrumenter coverageInstrumenter = CoverageInstrumenter.createInstance(config);
+ coverageInstrumenter.process(libraries);
zundel 2011/12/16 20:49:05 nit. you have an internal loop that duplicates th
// The two following for loops can be parallelized.
for (LibraryUnit lib : libraries.values()) {

Powered by Google App Engine
This is Rietveld 408576698