Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(63)

Side by Side Diff: pkg/compiler/lib/src/enqueue.dart

Issue 1398393002: Decouple SSA builder from codegen-work-item (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « pkg/compiler/lib/src/dump_info.dart ('k') | pkg/compiler/lib/src/native/ssa.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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.
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
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 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/dump_info.dart ('k') | pkg/compiler/lib/src/native/ssa.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698