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

Side by Side 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 library dart2js.kernel.frontend_strategy; 5 library dart2js.kernel.frontend_strategy;
6 6
7 import '../closure.dart'; 7 import '../closure.dart';
8 import '../backend_strategy.dart'; 8 import '../backend_strategy.dart';
9 import '../common.dart'; 9 import '../common.dart';
10 import '../common_elements.dart'; 10 import '../common_elements.dart';
11 import '../common/backend_api.dart'; 11 import '../common/backend_api.dart';
12 import '../common/codegen.dart' show CodegenWorkItem;
12 import '../common/resolution.dart'; 13 import '../common/resolution.dart';
13 import '../common/tasks.dart'; 14 import '../common/tasks.dart';
14 import '../common/work.dart'; 15 import '../common/work.dart';
15 import '../elements/elements.dart'; 16 import '../elements/elements.dart';
16 import '../elements/entities.dart'; 17 import '../elements/entities.dart';
17 import '../elements/types.dart'; 18 import '../elements/types.dart';
18 import '../environment.dart' as env; 19 import '../environment.dart' as env;
19 import '../enqueue.dart'; 20 import '../enqueue.dart';
20 import '../frontend_strategy.dart'; 21 import '../frontend_strategy.dart';
21 import '../js_backend/backend.dart'; 22 import '../js_backend/backend.dart';
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after
249 @override 250 @override
250 Sorter get sorter => 251 Sorter get sorter =>
251 throw new UnimplementedError('KernelBackendStrategy.sorter'); 252 throw new UnimplementedError('KernelBackendStrategy.sorter');
252 253
253 @override 254 @override
254 void convertClosures(ClosedWorldRefiner closedWorldRefiner) { 255 void convertClosures(ClosedWorldRefiner closedWorldRefiner) {
255 // TODO(johnniwinther,efortuna): Compute closure classes for kernel based 256 // TODO(johnniwinther,efortuna): Compute closure classes for kernel based
256 // elements. 257 // elements.
257 throw new UnimplementedError('KernelBackendStrategy.createClosureClasses'); 258 throw new UnimplementedError('KernelBackendStrategy.createClosureClasses');
258 } 259 }
260
261 @override
262 WorkItemBuilder createCodegenWorkItemBuilder(ClosedWorld closedWorld) {
263 return new KernelCodegenWorkItemBuilder();
264 }
265
266 @override
267 CodegenWorldBuilder createCodegenWorldBuilder(
268 NativeBasicData nativeBasicData,
269 ClosedWorld closedWorld,
270 SelectorConstraintsStrategy selectorConstraintsStrategy) {
271 return new KernelCodegenWorldBuilder(
272 null, nativeBasicData, closedWorld, selectorConstraintsStrategy);
273 }
259 } 274 }
275
276 class KernelCodegenWorkItemBuilder implements WorkItemBuilder {
277 @override
278 CodegenWorkItem createWorkItem(MemberEntity entity) {
279 throw new UnimplementedError('KernelCodegenWorkItemBuilder.createWorkItem');
280 }
281 }
OLDNEW
« 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