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

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

Issue 14986002: Make static tear-off closures a class, like instance tear-off closures. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 7 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 /** 7 /**
8 * If true, print a warning for each method that was resolved, but not 8 * If true, print a warning for each method that was resolved, but not
9 * compiled. 9 * compiled.
10 */ 10 */
(...skipping 830 matching lines...) Expand 10 before | Expand all | Expand 10 after
841 841
842 log('Inferring types...'); 842 log('Inferring types...');
843 typesTask.onResolutionComplete(main); 843 typesTask.onResolutionComplete(main);
844 844
845 log('Compiling...'); 845 log('Compiling...');
846 phase = PHASE_COMPILING; 846 phase = PHASE_COMPILING;
847 // TODO(johnniwinther): Move these to [CodegenEnqueuer]. 847 // TODO(johnniwinther): Move these to [CodegenEnqueuer].
848 if (hasIsolateSupport()) { 848 if (hasIsolateSupport()) {
849 enqueuer.codegen.addToWorkList( 849 enqueuer.codegen.addToWorkList(
850 isolateHelperLibrary.find(Compiler.START_ROOT_ISOLATE)); 850 isolateHelperLibrary.find(Compiler.START_ROOT_ISOLATE));
851 enqueuer.codegen.registerGetOfStaticFunction(mainApp.find(MAIN));
851 } 852 }
852 if (enabledNoSuchMethod) { 853 if (enabledNoSuchMethod) {
853 enqueuer.codegen.registerInvocation(NO_SUCH_METHOD, noSuchMethodSelector); 854 enqueuer.codegen.registerInvocation(NO_SUCH_METHOD, noSuchMethodSelector);
854 enqueuer.codegen.addToWorkList(createInvocationMirrorElement); 855 enqueuer.codegen.addToWorkList(createInvocationMirrorElement);
855 } 856 }
856 processQueue(enqueuer.codegen, main); 857 processQueue(enqueuer.codegen, main);
857 enqueuer.codegen.logSummary(log); 858 enqueuer.codegen.logSummary(log);
858 859
859 if (compilationFailed) return; 860 if (compilationFailed) return;
860 861
(...skipping 469 matching lines...) Expand 10 before | Expand all | Expand 10 after
1330 1331
1331 void close() {} 1332 void close() {}
1332 1333
1333 toString() => name; 1334 toString() => name;
1334 1335
1335 /// Convenience method for getting an [api.CompilerOutputProvider]. 1336 /// Convenience method for getting an [api.CompilerOutputProvider].
1336 static NullSink outputProvider(String name, String extension) { 1337 static NullSink outputProvider(String name, String extension) {
1337 return new NullSink('$name.$extension'); 1338 return new NullSink('$name.$extension');
1338 } 1339 }
1339 } 1340 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698