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

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

Issue 12327010: Infer types of final fields. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 10 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
« no previous file with comments | « no previous file | sdk/lib/_internal/compiler/implementation/ssa/builder.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 part of dart2js; 5 part of dart2js;
6 6
7 class EnqueueTask extends CompilerTask { 7 class EnqueueTask extends CompilerTask {
8 final ResolutionEnqueuer resolution; 8 final ResolutionEnqueuer resolution;
9 final CodegenEnqueuer codegen; 9 final CodegenEnqueuer codegen;
10 10
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 * Returns [:true:] if the [element] should be processed. 83 * Returns [:true:] if the [element] should be processed.
84 */ 84 */
85 // TODO(johnniwinther): Change to 'Returns true if the element was added to 85 // TODO(johnniwinther): Change to 'Returns true if the element was added to
86 // the work list'? 86 // the work list'?
87 bool addElementToWorkList(Element element, [TreeElements elements]); 87 bool addElementToWorkList(Element element, [TreeElements elements]);
88 88
89 void registerInstantiatedClass(ClassElement cls) { 89 void registerInstantiatedClass(ClassElement cls) {
90 if (universe.instantiatedClasses.contains(cls)) return; 90 if (universe.instantiatedClasses.contains(cls)) return;
91 if (!cls.isAbstract(compiler)) { 91 if (!cls.isAbstract(compiler)) {
92 universe.instantiatedClasses.add(cls); 92 universe.instantiatedClasses.add(cls);
93 onRegisterInstantiatedClass(cls);
94 } 93 }
94 onRegisterInstantiatedClass(cls);
95 compiler.backend.registerInstantiatedClass(cls, this); 95 compiler.backend.registerInstantiatedClass(cls, this);
96 } 96 }
97 97
98 bool checkNoEnqueuedInvokedInstanceMethods() { 98 bool checkNoEnqueuedInvokedInstanceMethods() {
99 task.measure(() { 99 task.measure(() {
100 // Run through the classes and see if we need to compile methods. 100 // Run through the classes and see if we need to compile methods.
101 for (ClassElement classElement in universe.instantiatedClasses) { 101 for (ClassElement classElement in universe.instantiatedClasses) {
102 for (ClassElement currentClass = classElement; 102 for (ClassElement currentClass = classElement;
103 currentClass != null; 103 currentClass != null;
104 currentClass = currentClass.superclass) { 104 currentClass = currentClass.superclass) {
(...skipping 421 matching lines...) Expand 10 before | Expand all | Expand 10 after
526 while(!queue.isEmpty) { 526 while(!queue.isEmpty) {
527 // TODO(johnniwinther): Find an optimal process order for codegen. 527 // TODO(johnniwinther): Find an optimal process order for codegen.
528 f(queue.removeLast()); 528 f(queue.removeLast());
529 } 529 }
530 } 530 }
531 531
532 void _logSpecificSummary(log(message)) { 532 void _logSpecificSummary(log(message)) {
533 log('Compiled ${generatedCode.length} methods.'); 533 log('Compiled ${generatedCode.length} methods.');
534 } 534 }
535 } 535 }
OLDNEW
« no previous file with comments | « no previous file | sdk/lib/_internal/compiler/implementation/ssa/builder.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698