| 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 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 Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |