| 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 '../common.dart'; | 5 import '../common.dart'; |
| 6 import '../common/backend_api.dart' show ForeignResolver; | 6 import '../common/backend_api.dart' show ForeignResolver; |
| 7 import '../common/resolution.dart' show Resolution; | 7 import '../common/resolution.dart' show Resolution; |
| 8 import '../compiler.dart' show Compiler; | 8 import '../compiler.dart' show Compiler; |
| 9 import '../constants/values.dart'; | 9 import '../constants/values.dart'; |
| 10 import '../core_types.dart' show CommonElements; | 10 import '../core_types.dart' show CommonElements; |
| 11 import '../elements/elements.dart'; | 11 import '../elements/elements.dart'; |
| 12 import '../elements/entities.dart'; | 12 import '../elements/entities.dart'; |
| 13 import '../elements/modelx.dart' show FunctionElementX; | 13 import '../elements/modelx.dart' show FunctionElementX; |
| 14 import '../elements/resolution_types.dart'; | 14 import '../elements/resolution_types.dart'; |
| 15 import '../js_backend/backend_helpers.dart' show BackendHelpers; | 15 import '../js_backend/backend_helpers.dart' show BackendHelpers; |
| 16 import '../js_backend/js_backend.dart'; | 16 import '../js_backend/js_backend.dart'; |
| 17 import '../js_emitter/js_emitter.dart' show CodeEmitterTask, NativeEmitter; | 17 import '../js_emitter/js_emitter.dart' show CodeEmitterTask, NativeEmitter; |
| 18 import 'package:front_end/src/fasta/scanner.dart' | 18 import 'package:front_end/src/fasta/scanner.dart' show BeginGroupToken, Token; |
| 19 show BeginGroupToken, Token; | 19 import 'package:front_end/src/fasta/scanner.dart' as Tokens show EOF_TOKEN; |
| 20 import 'package:front_end/src/fasta/scanner.dart' as Tokens | |
| 21 show EOF_TOKEN; | |
| 22 import '../tree/tree.dart'; | 20 import '../tree/tree.dart'; |
| 23 import '../universe/use.dart' show StaticUse, TypeUse; | 21 import '../universe/use.dart' show StaticUse, TypeUse; |
| 24 import '../universe/world_impact.dart' | 22 import '../universe/world_impact.dart' |
| 25 show WorldImpact, WorldImpactBuilder, WorldImpactBuilderImpl; | 23 show WorldImpact, WorldImpactBuilder, WorldImpactBuilderImpl; |
| 26 import 'behavior.dart'; | 24 import 'behavior.dart'; |
| 27 | 25 |
| 28 /** | 26 /** |
| 29 * This could be an abstract class but we use it as a stub for the dart_backend. | 27 * This could be an abstract class but we use it as a stub for the dart_backend. |
| 30 */ | 28 */ |
| 31 class NativeEnqueuer { | 29 class NativeEnqueuer { |
| (...skipping 607 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 639 List<ClassEntity> directSubtypes = | 637 List<ClassEntity> directSubtypes = |
| 640 emitter.directSubtypes.putIfAbsent(superclass, () => <ClassEntity>[]); | 638 emitter.directSubtypes.putIfAbsent(superclass, () => <ClassEntity>[]); |
| 641 directSubtypes.add(cls); | 639 directSubtypes.add(cls); |
| 642 } | 640 } |
| 643 | 641 |
| 644 void logSummary(log(message)) { | 642 void logSummary(log(message)) { |
| 645 log('Compiled ${_registeredClasses.length} native classes, ' | 643 log('Compiled ${_registeredClasses.length} native classes, ' |
| 646 '${_unusedClasses.length} native classes omitted.'); | 644 '${_unusedClasses.length} native classes omitted.'); |
| 647 } | 645 } |
| 648 } | 646 } |
| OLD | NEW |