OLD | NEW |
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 Loading... |
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 } |
OLD | NEW |