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

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

Issue 2836323002: Add more factory methods to FrontEndStrategy. (Closed)
Patch Set: Created 3 years, 8 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 | « no previous file | pkg/compiler/lib/src/js_backend/backend.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/frontend_strategy.dart
diff --git a/pkg/compiler/lib/src/frontend_strategy.dart b/pkg/compiler/lib/src/frontend_strategy.dart
index caf46340adf5b2af11820cdaacfb6946911b755d..2f2ae5a1a7ed2a10d4ce9a1e990eac7633e3a9fa 100644
--- a/pkg/compiler/lib/src/frontend_strategy.dart
+++ b/pkg/compiler/lib/src/frontend_strategy.dart
@@ -6,15 +6,24 @@ library dart2js.frontend_strategy;
import 'common.dart';
import 'common_elements.dart';
+import 'common/backend_api.dart';
import 'common/tasks.dart';
import 'elements/entities.dart';
import 'environment.dart';
+import 'enqueue.dart';
+import 'js_backend/backend.dart';
+import 'js_backend/backend_usage.dart';
+import 'js_backend/custom_elements_analysis.dart';
+import 'js_backend/mirrors_analysis.dart';
+import 'js_backend/mirrors_data.dart';
import 'js_backend/native_data.dart';
+import 'js_backend/no_such_method_registry.dart';
import 'library_loader.dart';
import 'native/resolver.dart';
import 'serialization/task.dart';
import 'patch_parser.dart';
import 'resolved_uri_translator.dart';
+import 'universe/world_builder.dart';
/// Strategy pattern that defines the connection between the input format and
/// the resolved element model.
@@ -41,6 +50,38 @@ abstract class FrontEndStrategy {
/// Creates the [NativeClassResolver] for this strategy.
NativeClassResolver createNativeClassResolver(
NativeBasicData nativeBasicData);
+
+ /// Creates the [NoSuchMethodResolver] corresponding the resolved model of
+ /// this strategy.
+ NoSuchMethodResolver createNoSuchMethodResolver();
+
+ /// Creates the [ResolutionWorldBuilder] corresponding to the element model
+ /// used in this strategy.
+ ResolutionWorldBuilder createResolutionWorldBuilder(
+ NativeBasicData nativeBasicData,
+ SelectorConstraintsStrategy selectorConstraintsStrategy);
+
+ /// Creates the [WorkItemBuilder] corresponding to how a resolved model for
+ /// a single member is obtained in this strategy.
+ WorkItemBuilder createResolutionWorkItemBuilder(
+ ImpactTransformer impactTransformer);
+
+ // TODO(johnniwinther): Reuse the following classes between strategies:
+
+ /// Creates the [CustomElementsResolutionAnalysis] for this strategy.
+ CustomElementsResolutionAnalysis createCustomElementsResolutionAnalysis(
+ NativeBasicData nativeBasicData, BackendUsageBuilder backendUsageBuilder);
+
+ /// Creates the [MirrorsDataBuilder] for this strategy.
+ MirrorsDataBuilder createMirrorsDataBuilder();
+
+ /// Creates the [MirrorsResolutionAnalysis] for this strategy.
+ // TODO(johnniwinther): Avoid passing [JavaScriptBackend].
+ MirrorsResolutionAnalysis createMirrorsResolutionAnalysis(
+ JavaScriptBackend backend);
+
+ /// Creates the [RuntimeTypesNeedBuilder] for this strategy.
+ RuntimeTypesNeedBuilder createRuntimeTypesNeedBuilder();
}
/// Class that performs the mechanics to investigate annotations in the code.
« no previous file with comments | « no previous file | pkg/compiler/lib/src/js_backend/backend.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698