OLD | NEW |
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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 /// Generate code using the cps-based IR pipeline. | 5 /// Generate code using the cps-based IR pipeline. |
6 library code_generator_task; | 6 library code_generator_task; |
7 | 7 |
8 import 'glue.dart'; | 8 import 'glue.dart'; |
9 import 'codegen.dart'; | 9 import 'codegen.dart'; |
10 import 'unsugar.dart'; | 10 import 'unsugar.dart'; |
11 | 11 |
12 import '../js_backend.dart'; | 12 import '../js_backend.dart'; |
| 13 import '../../constants/constant_system.dart'; |
13 import '../../dart2jslib.dart'; | 14 import '../../dart2jslib.dart'; |
14 import '../../cps_ir/cps_ir_nodes.dart' as cps; | 15 import '../../cps_ir/cps_ir_nodes.dart' as cps; |
15 import '../../cps_ir/cps_ir_builder.dart'; | 16 import '../../cps_ir/cps_ir_builder.dart'; |
16 import '../../cps_ir/cps_ir_integrity.dart'; | 17 import '../../cps_ir/cps_ir_integrity.dart'; |
17 import '../../cps_ir/cps_ir_builder_task.dart'; | 18 import '../../cps_ir/cps_ir_builder_task.dart'; |
18 import '../../tree_ir/tree_ir_nodes.dart' as tree_ir; | 19 import '../../tree_ir/tree_ir_nodes.dart' as tree_ir; |
19 import '../../types/types.dart' show TypeMask, UnionTypeMask, FlatTypeMask, | 20 import '../../types/types.dart' show TypeMask, UnionTypeMask, FlatTypeMask, |
20 ForwardingTypeMask; | 21 ForwardingTypeMask; |
21 import '../../elements/elements.dart'; | 22 import '../../elements/elements.dart'; |
22 import '../../js/js.dart' as js; | 23 import '../../js/js.dart' as js; |
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
227 Iterable<CompilerTask> get tasks { | 228 Iterable<CompilerTask> get tasks { |
228 // TODO(sigurdm): Make a better list of tasks. | 229 // TODO(sigurdm): Make a better list of tasks. |
229 return <CompilerTask>[irBuilderTask]..addAll(fallbackCompiler.tasks); | 230 return <CompilerTask>[irBuilderTask]..addAll(fallbackCompiler.tasks); |
230 } | 231 } |
231 | 232 |
232 js.Node attachPosition(js.Node node, AstElement element) { | 233 js.Node attachPosition(js.Node node, AstElement element) { |
233 return node.withSourceInformation( | 234 return node.withSourceInformation( |
234 StartEndSourceInformation.computeSourceInformation(element)); | 235 StartEndSourceInformation.computeSourceInformation(element)); |
235 } | 236 } |
236 } | 237 } |
OLD | NEW |