Chromium Code Reviews| 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 | 7 import 'dart:collection' show |
| 8 Queue; | 8 Queue; |
| 9 | 9 |
| 10 import 'common.dart'; | 10 import 'common.dart'; |
| (...skipping 757 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 768 String toString() => 'Enqueuer($name)'; | 768 String toString() => 'Enqueuer($name)'; |
| 769 | 769 |
| 770 void forgetElement(Element element) { | 770 void forgetElement(Element element) { |
| 771 universe.forgetElement(element, compiler); | 771 universe.forgetElement(element, compiler); |
| 772 _processedClasses.remove(element); | 772 _processedClasses.remove(element); |
| 773 } | 773 } |
| 774 } | 774 } |
| 775 | 775 |
| 776 /// [Enqueuer] which is specific to resolution. | 776 /// [Enqueuer] which is specific to resolution. |
| 777 class ResolutionEnqueuer extends Enqueuer { | 777 class ResolutionEnqueuer extends Enqueuer { |
| 778 /** | 778 /// All declaration elements that have been processed by the resolver. |
|
Johnni Winther
2015/10/13 07:26:27
Thanks!
| |
| 779 * Map from declaration elements to the [TreeElements] object holding the | |
| 780 * resolution mapping for the element implementation. | |
| 781 * | |
| 782 * Invariant: Key elements are declaration elements. | |
| 783 */ | |
| 784 final Set<AstElement> processedElements; | 779 final Set<AstElement> processedElements; |
| 785 | 780 |
| 786 final Queue<ResolutionWorkItem> queue; | 781 final Queue<ResolutionWorkItem> queue; |
| 787 | 782 |
| 788 /** | 783 /** |
| 789 * A deferred task queue for the resolution phase which is processed | 784 * A deferred task queue for the resolution phase which is processed |
| 790 * when the resolution queue has been emptied. | 785 * when the resolution queue has been emptied. |
| 791 */ | 786 */ |
| 792 final Queue<DeferredTask> deferredTaskQueue; | 787 final Queue<DeferredTask> deferredTaskQueue; |
| 793 | 788 |
| (...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1083 @override | 1078 @override |
| 1084 void processStaticUse(Enqueuer enqueuer, Element element) { | 1079 void processStaticUse(Enqueuer enqueuer, Element element) { |
| 1085 enqueuer.registerStaticUseInternal(element); | 1080 enqueuer.registerStaticUseInternal(element); |
| 1086 } | 1081 } |
| 1087 | 1082 |
| 1088 @override | 1083 @override |
| 1089 void processSelector(Enqueuer enqueuer, UniverseSelector selector) { | 1084 void processSelector(Enqueuer enqueuer, UniverseSelector selector) { |
| 1090 enqueuer.handleUnseenSelectorInternal(selector); | 1085 enqueuer.handleUnseenSelectorInternal(selector); |
| 1091 } | 1086 } |
| 1092 } | 1087 } |
| OLD | NEW |