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

Unified Diff: pkg/compiler/lib/src/js_backend/element_strategy.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/js_backend/element_strategy.dart
diff --git a/pkg/compiler/lib/src/js_backend/element_strategy.dart b/pkg/compiler/lib/src/js_backend/element_strategy.dart
index 9ab811484f4c5ebb9a1aef0f579baceedb2fb83e..7d2bc46b8dc7bde5161d6c9b31e1a629675c28e4 100644
--- a/pkg/compiler/lib/src/js_backend/element_strategy.dart
+++ b/pkg/compiler/lib/src/js_backend/element_strategy.dart
@@ -34,9 +34,11 @@ import '../world.dart';
/// model.
class ElementBackendStrategy implements BackendStrategy {
final Compiler _compiler;
+ final ClosureConversionTask closureDataLookup;
SourceInformationStrategy _sourceInformationStrategy;
- ElementBackendStrategy(this._compiler);
+ ElementBackendStrategy(this._compiler)
+ : closureDataLookup = new ClosureTask(_compiler);
ClosedWorldRefiner createClosedWorldRefiner(ClosedWorldImpl closedWorld) =>
closedWorld;
@@ -44,10 +46,6 @@ class ElementBackendStrategy implements BackendStrategy {
Sorter get sorter => const ElementSorter();
@override
- ClosureConversionTask createClosureConversionTask(Compiler compiler) =>
Emily Fortuna 2017/06/19 17:44:41 is taking this out the direction you want to go? I
Johnni Winther 2017/06/20 10:33:12 I want to get rid of CompilerTask as base classes.
- new ClosureTask(compiler);
-
- @override
CodegenWorldBuilder createCodegenWorldBuilder(
NativeBasicData nativeBasicData,
ClosedWorld closedWorld,

Powered by Google App Engine
This is Rietveld 408576698