| 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 '../common.dart'; | 7 import '../common.dart'; |
| 8 import '../common/backend_api.dart' show Backend; | 8 import '../common/backend_api.dart' show Backend; |
| 9 import '../constants/values.dart' show ConstantValue; | 9 import '../constants/values.dart' show ConstantValue; |
| 10 import '../elements/resolution_types.dart' | 10 import '../elements/resolution_types.dart' |
| 11 show ResolutionDartType, ResolutionInterfaceType; | 11 show ResolutionDartType, ResolutionInterfaceType; |
| 12 import '../elements/elements.dart' | 12 import '../elements/elements.dart' |
| 13 show | 13 show |
| 14 AstElement, | 14 AstElement, |
| 15 ClassElement, | 15 ClassElement, |
| 16 Element, | 16 Element, |
| 17 FunctionElement, | 17 FunctionElement, |
| 18 LocalFunctionElement, | 18 LocalFunctionElement, |
| 19 ResolvedAst; | 19 ResolvedAst; |
| 20 import '../enqueue.dart' show Enqueuer; | |
| 21 import '../universe/use.dart' show DynamicUse, StaticUse, TypeUse; | 20 import '../universe/use.dart' show DynamicUse, StaticUse, TypeUse; |
| 22 import '../universe/world_impact.dart' | 21 import '../universe/world_impact.dart' |
| 23 show WorldImpact, WorldImpactBuilderImpl, WorldImpactVisitor; | 22 show WorldImpact, WorldImpactBuilderImpl, WorldImpactVisitor; |
| 24 import '../util/util.dart' show Pair, Setlet; | 23 import '../util/util.dart' show Pair, Setlet; |
| 25 import 'work.dart' show WorkItem; | 24 import 'work.dart' show WorkItem; |
| 26 | 25 |
| 27 class CodegenImpact extends WorldImpact { | 26 class CodegenImpact extends WorldImpact { |
| 28 const CodegenImpact(); | 27 const CodegenImpact(); |
| 29 | 28 |
| 30 Iterable<ConstantValue> get compileTimeConstants => const <ConstantValue>[]; | 29 Iterable<ConstantValue> get compileTimeConstants => const <ConstantValue>[]; |
| (...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 243 : this.resolvedAst = resolvedAst, | 242 : this.resolvedAst = resolvedAst, |
| 244 super(resolvedAst.element); | 243 super(resolvedAst.element); |
| 245 | 244 |
| 246 WorldImpact run() { | 245 WorldImpact run() { |
| 247 registry = new CodegenRegistry(element); | 246 registry = new CodegenRegistry(element); |
| 248 return backend.codegen(this); | 247 return backend.codegen(this); |
| 249 } | 248 } |
| 250 | 249 |
| 251 String toString() => 'CodegenWorkItem(${resolvedAst.element})'; | 250 String toString() => 'CodegenWorkItem(${resolvedAst.element})'; |
| 252 } | 251 } |
| OLD | NEW |