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.backend_strategy; | 5 library dart2js.backend_strategy; |
6 | 6 |
| 7 import 'common/tasks.dart'; |
7 import 'enqueue.dart'; | 8 import 'enqueue.dart'; |
8 import 'io/source_information.dart'; | 9 import 'io/source_information.dart'; |
9 import 'js_backend/js_backend.dart'; | 10 import 'js_backend/js_backend.dart'; |
10 import 'js_backend/native_data.dart'; | 11 import 'js_backend/native_data.dart'; |
11 import 'js_emitter/sorter.dart'; | 12 import 'js_emitter/sorter.dart'; |
12 import 'ssa/ssa.dart'; | 13 import 'ssa/ssa.dart'; |
13 import 'universe/world_builder.dart'; | 14 import 'universe/world_builder.dart'; |
14 import 'world.dart'; | 15 import 'world.dart'; |
15 | 16 |
16 /// Strategy pattern that defines the element model used in type inference | 17 /// Strategy pattern that defines the element model used in type inference |
(...skipping 10 matching lines...) Expand all Loading... |
27 | 28 |
28 /// Creates the [CodegenWorldBuilder] used by the codegen enqueuer. | 29 /// Creates the [CodegenWorldBuilder] used by the codegen enqueuer. |
29 CodegenWorldBuilder createCodegenWorldBuilder( | 30 CodegenWorldBuilder createCodegenWorldBuilder( |
30 NativeBasicData nativeBasicData, | 31 NativeBasicData nativeBasicData, |
31 ClosedWorld closedWorld, | 32 ClosedWorld closedWorld, |
32 SelectorConstraintsStrategy selectorConstraintsStrategy); | 33 SelectorConstraintsStrategy selectorConstraintsStrategy); |
33 | 34 |
34 /// Creates the [WorkItemBuilder] used by the codegen enqueuer. | 35 /// Creates the [WorkItemBuilder] used by the codegen enqueuer. |
35 WorkItemBuilder createCodegenWorkItemBuilder(ClosedWorld closedWorld); | 36 WorkItemBuilder createCodegenWorkItemBuilder(ClosedWorld closedWorld); |
36 | 37 |
37 /// Creates the [SsaBuilderTask] used for the element model. | 38 /// Creates the [SsaBuilder] used for the element model. |
38 SsaBuilderTask createSsaBuilderTask(JavaScriptBackend backend, | 39 SsaBuilder createSsaBuilder(CompilerTask task, JavaScriptBackend backend, |
39 SourceInformationStrategy sourceInformationStrategy); | 40 SourceInformationStrategy sourceInformationStrategy); |
40 | 41 |
41 /// Returns the [SourceInformationStrategy] use for the element model. | 42 /// Returns the [SourceInformationStrategy] use for the element model. |
42 SourceInformationStrategy get sourceInformationStrategy; | 43 SourceInformationStrategy get sourceInformationStrategy; |
43 } | 44 } |
OLD | NEW |