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

Unified Diff: pkg/compiler/lib/src/js_backend/codegen/task.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/compiler/lib/src/js_backend/codegen/task.dart
diff --git a/pkg/compiler/lib/src/js_backend/codegen/task.dart b/pkg/compiler/lib/src/js_backend/codegen/task.dart
index c293d5abe17b15d406139f44d4ed3d62c4e7e3be..69b13f3762337be4a826e3efe93e61243fbf78c0 100644
--- a/pkg/compiler/lib/src/js_backend/codegen/task.dart
+++ b/pkg/compiler/lib/src/js_backend/codegen/task.dart
@@ -68,9 +68,11 @@ class CpsFunctionCompiler implements FunctionCompiler {
constantSystem = backend.constantSystem,
compiler = compiler,
glue = new Glue(compiler),
- cpsOptimizationTask = new GenericTask('CPS optimization', compiler),
- treeBuilderTask = new GenericTask('Tree builder', compiler),
- treeOptimizationTask = new GenericTask('Tree optimization', compiler) {
+ cpsOptimizationTask =
+ new GenericTask('CPS optimization', compiler.measurer),
+ treeBuilderTask = new GenericTask('Tree builder', compiler.measurer),
+ treeOptimizationTask =
+ new GenericTask('Tree optimization', compiler.measurer) {
inliner = new Inliner(this);
}

Powered by Google App Engine
This is Rietveld 408576698