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

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

Issue 2938203003: Compute KernelClosureRepresentationInfo.variableIsUsedInTryOrSync (Closed)
Patch Set: Merge KernelClosureConversionTask and KernelClosureDataLookup 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
Index: pkg/compiler/lib/src/compiler.dart
diff --git a/pkg/compiler/lib/src/compiler.dart b/pkg/compiler/lib/src/compiler.dart
index 0af9bede7f9385a76691d1ed4ec322f7a67a174a..a0bd59f9763a375711c37fe106c90e8f2e2a5267 100644
--- a/pkg/compiler/lib/src/compiler.dart
+++ b/pkg/compiler/lib/src/compiler.dart
@@ -8,7 +8,6 @@ import 'dart:async' show Future;
import '../compiler_new.dart' as api;
import 'backend_strategy.dart';
-import 'closure.dart' as closureMapping show ClosureConversionTask;
import 'common/names.dart' show Selectors;
import 'common/names.dart' show Uris;
import 'common/resolution.dart'
@@ -145,7 +144,6 @@ abstract class Compiler {
LibraryLoaderTask libraryLoader;
SerializationTask serialization;
ResolverTask resolver;
- closureMapping.ClosureConversionTask closureDataLookup;
TypeCheckerTask checker;
GlobalTypeInferenceTask globalInference;
JavaScriptBackend backend;
@@ -227,7 +225,6 @@ abstract class Compiler {
measurer),
parser = new ParserTask(this),
resolver = createResolverTask(),
- closureDataLookup = backendStrategy.createClosureConversionTask(this),
checker = new TypeCheckerTask(this),
globalInference = new GlobalTypeInferenceTask(this),
constants = backend.constantCompilerTask,
@@ -662,7 +659,7 @@ abstract class Compiler {
// TODO(johnniwinther): Move this after rti computation but before
// reflection members computation, and (re-)close the world afterwards.
- closureDataLookup.convertClosures(
+ backendStrategy.closureDataLookup.convertClosures(
enqueuer.resolution.processedEntities, closedWorldRefiner);
return closedWorldRefiner;
}

Powered by Google App Engine
This is Rietveld 408576698