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

Unified Diff: pkg/compiler/lib/src/compiler.dart

Issue 2939163002: Modify backend strategy and how we access the closure converter. (Closed)
Patch Set: . 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 | « pkg/compiler/lib/src/closure.dart ('k') | pkg/compiler/lib/src/js_backend/element_strategy.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/compiler.dart
diff --git a/pkg/compiler/lib/src/compiler.dart b/pkg/compiler/lib/src/compiler.dart
index b591b4042bd5aa8550d3c77d7260fa1742475abc..c82f86e4d2c0d103a7b5f69d06522e0ef47e7700 100644
--- a/pkg/compiler/lib/src/compiler.dart
+++ b/pkg/compiler/lib/src/compiler.dart
@@ -8,7 +8,7 @@ import 'dart:async' show Future;
import '../compiler_new.dart' as api;
import 'backend_strategy.dart';
-import 'closure.dart' as closureMapping show ClosureTask;
+import 'closure.dart' as closureMapping show ClosureConversionTask;
import 'common/names.dart' show Selectors;
import 'common/names.dart' show Uris;
import 'common/resolution.dart'
@@ -144,7 +144,7 @@ abstract class Compiler {
LibraryLoaderTask libraryLoader;
SerializationTask serialization;
ResolverTask resolver;
- closureMapping.ClosureTask closureDataLookup;
+ closureMapping.ClosureConversionTask closureDataLookup;
TypeCheckerTask checker;
GlobalTypeInferenceTask globalInference;
JavaScriptBackend backend;
@@ -226,7 +226,7 @@ abstract class Compiler {
measurer),
parser = new ParserTask(this),
resolver = createResolverTask(),
- closureDataLookup = new closureMapping.ClosureTask(this),
+ closureDataLookup = backendStrategy.createClosureConversionTask(this),
checker = new TypeCheckerTask(this),
globalInference = new GlobalTypeInferenceTask(this),
constants = backend.constantCompilerTask,
@@ -651,7 +651,8 @@ abstract class Compiler {
// TODO(johnniwinther): Move this after rti computation but before
// reflection members computation, and (re-)close the world afterwards.
- backendStrategy.convertClosures(closedWorldRefiner);
+ closureDataLookup.convertClosures(
+ enqueuer.resolution.processedEntities, closedWorldRefiner);
return closedWorldRefiner;
}
« no previous file with comments | « pkg/compiler/lib/src/closure.dart ('k') | pkg/compiler/lib/src/js_backend/element_strategy.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698