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

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

Issue 44033002: Update status file, and fix unit tests. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 1 month 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 233 matching lines...) Expand 10 before | Expand all | Expand 10 after
244 } 244 }
245 245
246 // The element is not yet used. Add it to the list of instance 246 // The element is not yet used. Add it to the list of instance
247 // members to still be processed. 247 // members to still be processed.
248 Link<Element> members = instanceMembersByName.putIfAbsent( 248 Link<Element> members = instanceMembersByName.putIfAbsent(
249 memberName, () => const Link<Element>()); 249 memberName, () => const Link<Element>());
250 instanceMembersByName[memberName] = members.prepend(member); 250 instanceMembersByName[memberName] = members.prepend(member);
251 } 251 }
252 252
253 void enableNoSuchMethod(Element element) {} 253 void enableNoSuchMethod(Element element) {}
254 void enableIsolateSupport(LibraryElement element) {}
254 255
255 void onRegisterInstantiatedClass(ClassElement cls) { 256 void onRegisterInstantiatedClass(ClassElement cls) {
256 task.measure(() { 257 task.measure(() {
257 if (seenClasses.contains(cls)) return; 258 if (seenClasses.contains(cls)) return;
258 // The class must be resolved to compute the set of all 259 // The class must be resolved to compute the set of all
259 // supertypes. 260 // supertypes.
260 cls.ensureResolved(compiler); 261 cls.ensureResolved(compiler);
261 262
262 void processClass(ClassElement cls) { 263 void processClass(ClassElement cls) {
263 if (seenClasses.contains(cls)) return; 264 if (seenClasses.contains(cls)) return;
(...skipping 468 matching lines...) Expand 10 before | Expand all | Expand 10 after
732 } 733 }
733 CodegenWorkItem workItem = new CodegenWorkItem( 734 CodegenWorkItem workItem = new CodegenWorkItem(
734 element, itemCompilationContextCreator()); 735 element, itemCompilationContextCreator());
735 queue.add(workItem); 736 queue.add(workItem);
736 } 737 }
737 738
738 void _logSpecificSummary(log(message)) { 739 void _logSpecificSummary(log(message)) {
739 log('Compiled ${generatedCode.length} methods.'); 740 log('Compiled ${generatedCode.length} methods.');
740 } 741 }
741 } 742 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698