OLD | NEW |
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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.common.codegen; | 5 library dart2js.common.codegen; |
6 | 6 |
7 import '../compiler.dart' show | 7 import '../compiler.dart' show |
8 Compiler; | 8 Compiler; |
9 import '../constants/values.dart' show | 9 import '../constants/values.dart' show |
10 ConstantValue; | 10 ConstantValue; |
11 import '../dart_types.dart' show | 11 import '../dart_types.dart' show |
12 DartType, | 12 DartType, |
13 InterfaceType; | 13 InterfaceType; |
14 import '../diagnostics/invariant.dart' show | 14 import '../diagnostics/invariant.dart' show |
15 invariant; | 15 invariant; |
16 import '../elements/elements.dart' show | 16 import '../elements/elements.dart' show |
17 AstElement, | 17 AstElement, |
18 ClassElement, | 18 ClassElement, |
19 Element, | 19 Element, |
20 FunctionElement, | 20 FunctionElement, |
21 LocalFunctionElement; | 21 LocalFunctionElement; |
22 import '../enqueue.dart' show | 22 import '../enqueue.dart' show |
23 CodegenEnqueuer, | 23 CodegenEnqueuer, |
24 WorldImpact; | 24 WorldImpact; |
25 import '../js_backend/js_backend.dart' show | 25 import '../js_backend/js_backend.dart' show |
26 JavaScriptBackend; | 26 JavaScriptBackend; |
27 import '../resolution/resolution.dart' show | 27 import '../resolution/tree_elements.dart' show |
28 TreeElements; | 28 TreeElements; |
29 import '../universe/universe.dart' show | 29 import '../universe/universe.dart' show |
30 Selector, | 30 Selector, |
31 UniverseSelector; | 31 UniverseSelector; |
32 import '../util/util.dart' show | 32 import '../util/util.dart' show |
33 Setlet; | 33 Setlet; |
34 import 'registry.dart' show | 34 import 'registry.dart' show |
35 Registry; | 35 Registry; |
36 import 'work.dart' show | 36 import 'work.dart' show |
37 ItemCompilationContext, | 37 ItemCompilationContext, |
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
197 | 197 |
198 TreeElements get resolutionTree => element.resolvedAst.elements; | 198 TreeElements get resolutionTree => element.resolvedAst.elements; |
199 | 199 |
200 WorldImpact run(Compiler compiler, CodegenEnqueuer world) { | 200 WorldImpact run(Compiler compiler, CodegenEnqueuer world) { |
201 if (world.isProcessed(element)) return const WorldImpact(); | 201 if (world.isProcessed(element)) return const WorldImpact(); |
202 | 202 |
203 registry = new CodegenRegistry(compiler, resolutionTree); | 203 registry = new CodegenRegistry(compiler, resolutionTree); |
204 return compiler.codegen(this, world); | 204 return compiler.codegen(this, world); |
205 } | 205 } |
206 } | 206 } |
OLD | NEW |