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 import 'dart:collection' show Queue; | 5 import 'dart:collection' show Queue; |
6 | 6 |
7 import '../common.dart'; | 7 import '../common.dart'; |
8 import '../common/backend_api.dart' show ForeignResolver; | 8 import '../common/backend_api.dart' show ForeignResolver; |
9 import '../common/registry.dart' show Registry; | |
10 import '../common/resolution.dart' show Resolution; | 9 import '../common/resolution.dart' show Resolution; |
11 import '../compiler.dart' show Compiler; | 10 import '../compiler.dart' show Compiler; |
12 import '../constants/values.dart'; | 11 import '../constants/values.dart'; |
13 import '../core_types.dart' show CoreTypes; | 12 import '../core_types.dart' show CoreTypes; |
14 import '../dart_types.dart'; | 13 import '../dart_types.dart'; |
15 import '../elements/elements.dart'; | 14 import '../elements/elements.dart'; |
16 import '../elements/modelx.dart' show FunctionElementX; | 15 import '../elements/modelx.dart' show FunctionElementX; |
17 import '../enqueue.dart' show Enqueuer; | |
18 import '../js_backend/backend_helpers.dart' show BackendHelpers; | 16 import '../js_backend/backend_helpers.dart' show BackendHelpers; |
19 import '../js_backend/js_backend.dart'; | 17 import '../js_backend/js_backend.dart'; |
20 import '../js_emitter/js_emitter.dart' show CodeEmitterTask, NativeEmitter; | 18 import '../js_emitter/js_emitter.dart' show CodeEmitterTask, NativeEmitter; |
21 import '../tokens/token.dart' show BeginGroupToken, Token; | 19 import '../tokens/token.dart' show BeginGroupToken, Token; |
22 import '../tokens/token_constants.dart' as Tokens show EOF_TOKEN; | 20 import '../tokens/token_constants.dart' as Tokens show EOF_TOKEN; |
23 import '../tree/tree.dart'; | 21 import '../tree/tree.dart'; |
24 import '../universe/use.dart' show StaticUse, TypeUse; | 22 import '../universe/use.dart' show StaticUse, TypeUse; |
25 import '../universe/world_impact.dart' show WorldImpactBuilder; | 23 import '../universe/world_impact.dart' show WorldImpactBuilder; |
26 import 'behavior.dart'; | 24 import 'behavior.dart'; |
27 | 25 |
(...skipping 648 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
676 List<Element> directSubtypes = | 674 List<Element> directSubtypes = |
677 emitter.directSubtypes.putIfAbsent(superclass, () => <ClassElement>[]); | 675 emitter.directSubtypes.putIfAbsent(superclass, () => <ClassElement>[]); |
678 directSubtypes.add(cls); | 676 directSubtypes.add(cls); |
679 } | 677 } |
680 | 678 |
681 void logSummary(log(message)) { | 679 void logSummary(log(message)) { |
682 log('Compiled ${registeredClasses.length} native classes, ' | 680 log('Compiled ${registeredClasses.length} native classes, ' |
683 '${unusedClasses.length} native classes omitted.'); | 681 '${unusedClasses.length} native classes omitted.'); |
684 } | 682 } |
685 } | 683 } |
OLD | NEW |