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 765 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
776 } | 776 } |
777 | 777 |
778 void registerJsCall(Send node, ResolverVisitor resolver) { | 778 void registerJsCall(Send node, ResolverVisitor resolver) { |
779 nativeEnqueuer.registerJsCall(node, resolver); | 779 nativeEnqueuer.registerJsCall(node, resolver); |
780 } | 780 } |
781 | 781 |
782 void registerJsEmbeddedGlobalCall(Send node, ResolverVisitor resolver) { | 782 void registerJsEmbeddedGlobalCall(Send node, ResolverVisitor resolver) { |
783 nativeEnqueuer.registerJsEmbeddedGlobalCall(node, resolver); | 783 nativeEnqueuer.registerJsEmbeddedGlobalCall(node, resolver); |
784 } | 784 } |
785 | 785 |
786 void registerJsBuiltinCall(Send node, ResolverVisitor resolver) { | |
787 nativeEnqueuer.registerJsBuiltinCall(node, resolver); | |
788 } | |
789 | |
790 void _logSpecificSummary(log(message)) { | 786 void _logSpecificSummary(log(message)) { |
791 log('Resolved ${resolvedElements.length} elements.'); | 787 log('Resolved ${resolvedElements.length} elements.'); |
792 } | 788 } |
793 | 789 |
794 void forgetElement(Element element) { | 790 void forgetElement(Element element) { |
795 super.forgetElement(element); | 791 super.forgetElement(element); |
796 resolvedElements.remove(element); | 792 resolvedElements.remove(element); |
797 } | 793 } |
798 } | 794 } |
799 | 795 |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
909 void processWorkItem(void f(WorkItem work), WorkItem work) { | 905 void processWorkItem(void f(WorkItem work), WorkItem work) { |
910 f(work); | 906 f(work); |
911 } | 907 } |
912 } | 908 } |
913 | 909 |
914 void removeFromSet(Map<String, Set<Element>> map, Element element) { | 910 void removeFromSet(Map<String, Set<Element>> map, Element element) { |
915 Set<Element> set = map[element.name]; | 911 Set<Element> set = map[element.name]; |
916 if (set == null) return; | 912 if (set == null) return; |
917 set.remove(element); | 913 set.remove(element); |
918 } | 914 } |
OLD | NEW |