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'); |
+ } |
} |