| 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; | 9 import '../common/registry.dart' show Registry; |
| 10 import '../common/resolution.dart' show Parsing, Resolution; | 10 import '../common/resolution.dart' show Resolution; |
| 11 import '../compiler.dart' show Compiler; | 11 import '../compiler.dart' show Compiler; |
| 12 import '../constants/values.dart'; | 12 import '../constants/values.dart'; |
| 13 import '../core_types.dart' show CoreTypes; | 13 import '../core_types.dart' show CoreTypes; |
| 14 import '../dart_types.dart'; | 14 import '../dart_types.dart'; |
| 15 import '../enqueue.dart' show Enqueuer, ResolutionEnqueuer; | |
| 16 import '../elements/elements.dart'; | 15 import '../elements/elements.dart'; |
| 17 import '../elements/modelx.dart' | 16 import '../elements/modelx.dart' show FunctionElementX; |
| 18 show BaseClassElementX, ElementX, FunctionElementX, LibraryElementX; | 17 import '../enqueue.dart' show Enqueuer; |
| 19 import '../js_backend/backend_helpers.dart' show BackendHelpers; | 18 import '../js_backend/backend_helpers.dart' show BackendHelpers; |
| 20 import '../js_backend/js_backend.dart'; | 19 import '../js_backend/js_backend.dart'; |
| 21 import '../js_emitter/js_emitter.dart' show CodeEmitterTask, NativeEmitter; | 20 import '../js_emitter/js_emitter.dart' show CodeEmitterTask, NativeEmitter; |
| 22 import '../tokens/token.dart' show BeginGroupToken, Token; | 21 import '../tokens/token.dart' show BeginGroupToken, Token; |
| 23 import '../tokens/token_constants.dart' as Tokens show EOF_TOKEN, STRING_TOKEN; | 22 import '../tokens/token_constants.dart' as Tokens show EOF_TOKEN; |
| 24 import '../tree/tree.dart'; | 23 import '../tree/tree.dart'; |
| 25 | |
| 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 { |
| 32 /// Initial entry point to native enqueuer. | 30 /// Initial entry point to native enqueuer. |
| 33 void processNativeClasses(Iterable<LibraryElement> libraries) {} | 31 void processNativeClasses(Iterable<LibraryElement> libraries) {} |
| 34 | 32 |
| 35 /// Registers the [nativeBehavior]. Adds the liveness of its instantiated | 33 /// Registers the [nativeBehavior]. Adds the liveness of its instantiated |
| (...skipping 674 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 710 List<Element> directSubtypes = | 708 List<Element> directSubtypes = |
| 711 emitter.directSubtypes.putIfAbsent(superclass, () => <ClassElement>[]); | 709 emitter.directSubtypes.putIfAbsent(superclass, () => <ClassElement>[]); |
| 712 directSubtypes.add(cls); | 710 directSubtypes.add(cls); |
| 713 } | 711 } |
| 714 | 712 |
| 715 void logSummary(log(message)) { | 713 void logSummary(log(message)) { |
| 716 log('Compiled ${registeredClasses.length} native classes, ' | 714 log('Compiled ${registeredClasses.length} native classes, ' |
| 717 '${unusedClasses.length} native classes omitted.'); | 715 '${unusedClasses.length} native classes omitted.'); |
| 718 } | 716 } |
| 719 } | 717 } |
| OLD | NEW |