| 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/codegen.dart' show CodegenWorkItem; | 9 import 'common/codegen.dart' show CodegenWorkItem; |
| 10 import 'common/names.dart' show Identifiers; | 10 import 'common/names.dart' show Identifiers; |
| (...skipping 683 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 694 } | 694 } |
| 695 | 695 |
| 696 /// Log summary specific to the concrete enqueuer. | 696 /// Log summary specific to the concrete enqueuer. |
| 697 void _logSpecificSummary(log(message)); | 697 void _logSpecificSummary(log(message)); |
| 698 | 698 |
| 699 String toString() => 'Enqueuer($name)'; | 699 String toString() => 'Enqueuer($name)'; |
| 700 | 700 |
| 701 void forgetElement(Element element) { | 701 void forgetElement(Element element) { |
| 702 universe.forgetElement(element, compiler); | 702 universe.forgetElement(element, compiler); |
| 703 _processedClasses.remove(element); | 703 _processedClasses.remove(element); |
| 704 instanceMembersByName[element.name]?.remove(element); |
| 705 instanceFunctionsByName[element.name]?.remove(element); |
| 704 } | 706 } |
| 705 } | 707 } |
| 706 | 708 |
| 707 /// [Enqueuer] which is specific to resolution. | 709 /// [Enqueuer] which is specific to resolution. |
| 708 class ResolutionEnqueuer extends Enqueuer { | 710 class ResolutionEnqueuer extends Enqueuer { |
| 709 /// All declaration elements that have been processed by the resolver. | 711 /// All declaration elements that have been processed by the resolver. |
| 710 final Set<AstElement> processedElements; | 712 final Set<AstElement> processedElements; |
| 711 | 713 |
| 712 final Queue<ResolutionWorkItem> queue; | 714 final Queue<ResolutionWorkItem> queue; |
| 713 | 715 |
| (...skipping 320 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1034 @override | 1036 @override |
| 1035 void visitStaticUse(StaticUse staticUse) { | 1037 void visitStaticUse(StaticUse staticUse) { |
| 1036 enqueuer.registerStaticUse(staticUse); | 1038 enqueuer.registerStaticUse(staticUse); |
| 1037 } | 1039 } |
| 1038 | 1040 |
| 1039 @override | 1041 @override |
| 1040 void visitTypeUse(TypeUse typeUse) { | 1042 void visitTypeUse(TypeUse typeUse) { |
| 1041 enqueuer.registerTypeUse(typeUse); | 1043 enqueuer.registerTypeUse(typeUse); |
| 1042 } | 1044 } |
| 1043 } | 1045 } |
| OLD | NEW |