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

Side by Side Diff: sdk/lib/_internal/compiler/implementation/enqueue.dart

Issue 26662006: Changed LinkedHashSet to Set and LinkedHashMap to Map. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: HashMap -> Map. Created 7 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 | Annotate | Revision Log
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 part of dart2js; 5 part of dart2js;
6 6
7 typedef ItemCompilationContext ItemCompilationContextCreator(); 7 typedef ItemCompilationContext ItemCompilationContextCreator();
8 8
9 class EnqueueTask extends CompilerTask { 9 class EnqueueTask extends CompilerTask {
10 final ResolutionEnqueuer resolution; 10 final ResolutionEnqueuer resolution;
(...skipping 560 matching lines...) Expand 10 before | Expand all | Expand 10 after
571 571
572 /** 572 /**
573 * A post-processing queue for the resolution phase which is processed 573 * A post-processing queue for the resolution phase which is processed
574 * immediately after the resolution queue has been closed. 574 * immediately after the resolution queue has been closed.
575 */ 575 */
576 final Queue<PostProcessTask> postQueue; 576 final Queue<PostProcessTask> postQueue;
577 577
578 ResolutionEnqueuer(Compiler compiler, 578 ResolutionEnqueuer(Compiler compiler,
579 ItemCompilationContext itemCompilationContextCreator()) 579 ItemCompilationContext itemCompilationContextCreator())
580 : super('resolution enqueuer', compiler, itemCompilationContextCreator), 580 : super('resolution enqueuer', compiler, itemCompilationContextCreator),
581 resolvedElements = new LinkedHashMap<Element, TreeElements>(), 581 resolvedElements = new Map<Element, TreeElements>(),
582 queue = new Queue<ResolutionWorkItem>(), 582 queue = new Queue<ResolutionWorkItem>(),
583 postQueue = new Queue<PostProcessTask>(); 583 postQueue = new Queue<PostProcessTask>();
584 584
585 bool get isResolutionQueue => true; 585 bool get isResolutionQueue => true;
586 586
587 bool isProcessed(Element member) => resolvedElements.containsKey(member); 587 bool isProcessed(Element member) => resolvedElements.containsKey(member);
588 588
589 /// Returns [:true:] if [element] has actually been used. 589 /// Returns [:true:] if [element] has actually been used.
590 bool isLive(Element element) { 590 bool isLive(Element element) {
591 if (seenClasses.contains(element)) return true; 591 if (seenClasses.contains(element)) return true;
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
735 } 735 }
736 CodegenWorkItem workItem = new CodegenWorkItem( 736 CodegenWorkItem workItem = new CodegenWorkItem(
737 element, itemCompilationContextCreator()); 737 element, itemCompilationContextCreator());
738 queue.add(workItem); 738 queue.add(workItem);
739 } 739 }
740 740
741 void _logSpecificSummary(log(message)) { 741 void _logSpecificSummary(log(message)) {
742 log('Compiled ${generatedCode.length} methods.'); 742 log('Compiled ${generatedCode.length} methods.');
743 } 743 }
744 } 744 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698