| 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.enqueue; | 5 library dart2js.enqueue; |
| 6 | 6 |
| 7 import 'dart:collection' show Queue; | 7 import 'dart:collection' show Queue; |
| 8 | 8 |
| 9 import 'common.dart'; | 9 import 'common/codegen.dart' show CodegenWorkItem; |
| 10 import 'common/names.dart' show Identifiers; | 10 import 'common/names.dart' show Identifiers; |
| 11 import 'common/resolution.dart' show Resolution; | 11 import 'common/resolution.dart' show Resolution; |
| 12 import 'common/resolution.dart' show ResolutionWorkItem; |
| 13 import 'common/tasks.dart' show CompilerTask, DeferredAction, DeferredTask; |
| 12 import 'common/work.dart' show ItemCompilationContext, WorkItem; | 14 import 'common/work.dart' show ItemCompilationContext, WorkItem; |
| 13 import 'common/tasks.dart' show CompilerTask, DeferredAction, DeferredTask; | 15 import 'common.dart'; |
| 14 import 'common/codegen.dart' show CodegenWorkItem; | |
| 15 import 'common/resolution.dart' show ResolutionWorkItem; | |
| 16 import 'compiler.dart' show Compiler; | 16 import 'compiler.dart' show Compiler; |
| 17 import 'dart_types.dart' show DartType, InterfaceType; | 17 import 'dart_types.dart' show DartType, InterfaceType; |
| 18 import 'elements/elements.dart' | 18 import 'elements/elements.dart' |
| 19 show | 19 show |
| 20 AnalyzableElement, | 20 AnalyzableElement, |
| 21 AstElement, | 21 AstElement, |
| 22 ClassElement, | 22 ClassElement, |
| 23 ConstructorElement, | 23 ConstructorElement, |
| 24 Element, | 24 Element, |
| 25 Elements, | 25 Elements, |
| 26 FunctionElement, | 26 FunctionElement, |
| 27 LibraryElement, | 27 LibraryElement, |
| 28 LocalFunctionElement, | |
| 29 Member, | 28 Member, |
| 30 MemberElement, | 29 MemberElement, |
| 31 MethodElement, | |
| 32 Name, | 30 Name, |
| 33 TypedElement, | 31 TypedElement, |
| 34 TypedefElement; | 32 TypedefElement; |
| 35 import 'js/js.dart' as js; | 33 import 'js/js.dart' as js; |
| 36 import 'native/native.dart' as native; | 34 import 'native/native.dart' as native; |
| 37 import 'types/types.dart' show TypeMaskStrategy; | 35 import 'types/types.dart' show TypeMaskStrategy; |
| 38 import 'universe/selector.dart' show Selector; | 36 import 'universe/selector.dart' show Selector; |
| 39 import 'universe/universe.dart'; | 37 import 'universe/universe.dart'; |
| 40 import 'universe/use.dart' | 38 import 'universe/use.dart' |
| 41 show DynamicUse, StaticUse, StaticUseKind, TypeUse, TypeUseKind; | 39 show DynamicUse, StaticUse, StaticUseKind, TypeUse, TypeUseKind; |
| 42 import 'universe/world_impact.dart' | 40 import 'universe/world_impact.dart' |
| 43 show ImpactUseCase, WorldImpact, WorldImpactVisitor; | 41 show ImpactUseCase, WorldImpact, WorldImpactVisitor; |
| 44 import 'util/util.dart' show Link, Setlet; | 42 import 'util/util.dart' show Setlet; |
| 45 | 43 |
| 46 typedef ItemCompilationContext ItemCompilationContextCreator(); | 44 typedef ItemCompilationContext ItemCompilationContextCreator(); |
| 47 | 45 |
| 48 class EnqueueTask extends CompilerTask { | 46 class EnqueueTask extends CompilerTask { |
| 49 final ResolutionEnqueuer resolution; | 47 final ResolutionEnqueuer resolution; |
| 50 final CodegenEnqueuer codegen; | 48 final CodegenEnqueuer codegen; |
| 51 | 49 |
| 52 String get name => 'Enqueue'; | 50 String get name => 'Enqueue'; |
| 53 | 51 |
| 54 EnqueueTask(Compiler compiler) | 52 EnqueueTask(Compiler compiler) |
| (...skipping 981 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1036 @override | 1034 @override |
| 1037 void visitStaticUse(StaticUse staticUse) { | 1035 void visitStaticUse(StaticUse staticUse) { |
| 1038 enqueuer.registerStaticUse(staticUse); | 1036 enqueuer.registerStaticUse(staticUse); |
| 1039 } | 1037 } |
| 1040 | 1038 |
| 1041 @override | 1039 @override |
| 1042 void visitTypeUse(TypeUse typeUse) { | 1040 void visitTypeUse(TypeUse typeUse) { |
| 1043 enqueuer.registerTypeUse(typeUse); | 1041 enqueuer.registerTypeUse(typeUse); |
| 1044 } | 1042 } |
| 1045 } | 1043 } |
| OLD | NEW |