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

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

Issue 2894893002: Add ElementCodegenWorldBuilder (Closed)
Patch Set: Updated cf. comments. Created 3 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
« no previous file with comments | « pkg/compiler/lib/src/js_emitter/type_test_registry.dart ('k') | pkg/compiler/lib/src/native/enqueue.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/kernel/kernel_strategy.dart
diff --git a/pkg/compiler/lib/src/kernel/kernel_strategy.dart b/pkg/compiler/lib/src/kernel/kernel_strategy.dart
index 5c5c0763794a74213a34d1d496abd3aa89abf92e..e7fa21ec430233540b9e5264e70c7871e53d03f5 100644
--- a/pkg/compiler/lib/src/kernel/kernel_strategy.dart
+++ b/pkg/compiler/lib/src/kernel/kernel_strategy.dart
@@ -9,6 +9,7 @@ import '../backend_strategy.dart';
import '../common.dart';
import '../common_elements.dart';
import '../common/backend_api.dart';
+import '../common/codegen.dart' show CodegenWorkItem;
import '../common/resolution.dart';
import '../common/tasks.dart';
import '../common/work.dart';
@@ -256,4 +257,25 @@ class KernelBackendStrategy implements BackendStrategy {
// elements.
throw new UnimplementedError('KernelBackendStrategy.createClosureClasses');
}
+
+ @override
+ WorkItemBuilder createCodegenWorkItemBuilder(ClosedWorld closedWorld) {
+ return new KernelCodegenWorkItemBuilder();
+ }
+
+ @override
+ CodegenWorldBuilder createCodegenWorldBuilder(
+ NativeBasicData nativeBasicData,
+ ClosedWorld closedWorld,
+ SelectorConstraintsStrategy selectorConstraintsStrategy) {
+ return new KernelCodegenWorldBuilder(
+ null, nativeBasicData, closedWorld, selectorConstraintsStrategy);
+ }
+}
+
+class KernelCodegenWorkItemBuilder implements WorkItemBuilder {
+ @override
+ CodegenWorkItem createWorkItem(MemberEntity entity) {
+ throw new UnimplementedError('KernelCodegenWorkItemBuilder.createWorkItem');
+ }
}
« no previous file with comments | « pkg/compiler/lib/src/js_emitter/type_test_registry.dart ('k') | pkg/compiler/lib/src/native/enqueue.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698