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

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

Issue 23449019: Couple of backend fixes: (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 3 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
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 635 matching lines...) Expand 10 before | Expand all | Expand 10 after
646 addToWorkList(compiler.isolateHelperLibrary.find( 646 addToWorkList(compiler.isolateHelperLibrary.find(
647 const SourceString('_callInIsolate'))); 647 const SourceString('_callInIsolate')));
648 } 648 }
649 649
650 void enableNoSuchMethod(Element element) { 650 void enableNoSuchMethod(Element element) {
651 if (compiler.enabledNoSuchMethod) return; 651 if (compiler.enabledNoSuchMethod) return;
652 if (compiler.backend.isDefaultNoSuchMethodImplementation(element)) return; 652 if (compiler.backend.isDefaultNoSuchMethodImplementation(element)) return;
653 653
654 Selector selector = compiler.noSuchMethodSelector; 654 Selector selector = compiler.noSuchMethodSelector;
655 compiler.enabledNoSuchMethod = true; 655 compiler.enabledNoSuchMethod = true;
656 registerInvocation(selector); 656 compiler.backend.enableNoSuchMethod(this);
657
658 compiler.createInvocationMirrorElement =
659 compiler.findHelper(Compiler.CREATE_INVOCATION_MIRROR);
660 addToWorkList(compiler.createInvocationMirrorElement);
661 } 657 }
662 658
663 void forEach(f(WorkItem work)) { 659 void forEach(f(WorkItem work)) {
664 while (!queue.isEmpty) { 660 while (!queue.isEmpty) {
665 // TODO(johnniwinther): Find an optimal process order for resolution. 661 // TODO(johnniwinther): Find an optimal process order for resolution.
666 f(queue.removeLast()); 662 f(queue.removeLast());
667 } 663 }
668 } 664 }
669 665
670 /** 666 /**
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
729 while(!queue.isEmpty) { 725 while(!queue.isEmpty) {
730 // TODO(johnniwinther): Find an optimal process order for codegen. 726 // TODO(johnniwinther): Find an optimal process order for codegen.
731 f(queue.removeLast()); 727 f(queue.removeLast());
732 } 728 }
733 } 729 }
734 730
735 void _logSpecificSummary(log(message)) { 731 void _logSpecificSummary(log(message)) {
736 log('Compiled ${generatedCode.length} methods.'); 732 log('Compiled ${generatedCode.length} methods.');
737 } 733 }
738 } 734 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698