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

Side by Side Diff: pkg/compiler/lib/src/enqueue.dart

Issue 1091613003: Revert "dart2js: add compiler builtins to the core-runtime." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 8 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 | pkg/compiler/lib/src/inferrer/simple_types_inferrer.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 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
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
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 }
OLDNEW
« no previous file with comments | « no previous file | pkg/compiler/lib/src/inferrer/simple_types_inferrer.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698