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

Unified Diff: pkg/dart2js_incremental/lib/caching_compiler.dart

Issue 2000323006: Make CompilerTask independent of compiler. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 7 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
Index: pkg/dart2js_incremental/lib/caching_compiler.dart
diff --git a/pkg/dart2js_incremental/lib/caching_compiler.dart b/pkg/dart2js_incremental/lib/caching_compiler.dart
index f7f8f1004f69989bb05cf5484906e6d2f14a1834..7401ba452a8ce8503bdefbc75d12d627ed6f3c87 100644
--- a/pkg/dart2js_incremental/lib/caching_compiler.dart
+++ b/pkg/dart2js_incremental/lib/caching_compiler.dart
@@ -87,11 +87,7 @@ Future<CompilerImpl> reuseCompiler(
});
});
} else {
- for (final task in compiler.tasks) {
- if (task.watch != null) {
- task.watch.reset();
- }
- }
+ compiler.tasks.forEach((t) => t.clearMeasurements());
compiler
..userOutputProvider = outputProvider
..provider = inputProvider

Powered by Google App Engine
This is Rietveld 408576698