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 /** | 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 896 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
907 | 907 |
908 log('Compiling...'); | 908 log('Compiling...'); |
909 phase = PHASE_COMPILING; | 909 phase = PHASE_COMPILING; |
910 // TODO(johnniwinther): Move these to [CodegenEnqueuer]. | 910 // TODO(johnniwinther): Move these to [CodegenEnqueuer]. |
911 if (hasIsolateSupport()) { | 911 if (hasIsolateSupport()) { |
912 enqueuer.codegen.addToWorkList( | 912 enqueuer.codegen.addToWorkList( |
913 isolateHelperLibrary.find(Compiler.START_ROOT_ISOLATE)); | 913 isolateHelperLibrary.find(Compiler.START_ROOT_ISOLATE)); |
914 enqueuer.codegen.registerGetOfStaticFunction(mainApp.find(MAIN)); | 914 enqueuer.codegen.registerGetOfStaticFunction(mainApp.find(MAIN)); |
915 } | 915 } |
916 if (enabledNoSuchMethod) { | 916 if (enabledNoSuchMethod) { |
917 enqueuer.codegen.registerInvocation(NO_SUCH_METHOD, noSuchMethodSelector); | 917 enqueuer.codegen.registerInvocation(noSuchMethodSelector); |
918 enqueuer.codegen.addToWorkList(createInvocationMirrorElement); | 918 enqueuer.codegen.addToWorkList(createInvocationMirrorElement); |
919 } | 919 } |
920 if (compileAll) { | 920 if (compileAll) { |
921 libraries.forEach((_, lib) => fullyEnqueueLibrary(lib, enqueuer.codegen)); | 921 libraries.forEach((_, lib) => fullyEnqueueLibrary(lib, enqueuer.codegen)); |
922 } | 922 } |
923 processQueue(enqueuer.codegen, main); | 923 processQueue(enqueuer.codegen, main); |
924 enqueuer.codegen.logSummary(log); | 924 enqueuer.codegen.logSummary(log); |
925 | 925 |
926 if (compilationFailed) return; | 926 if (compilationFailed) return; |
927 | 927 |
(...skipping 504 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1432 | 1432 |
1433 void close() {} | 1433 void close() {} |
1434 | 1434 |
1435 toString() => name; | 1435 toString() => name; |
1436 | 1436 |
1437 /// Convenience method for getting an [api.CompilerOutputProvider]. | 1437 /// Convenience method for getting an [api.CompilerOutputProvider]. |
1438 static NullSink outputProvider(String name, String extension) { | 1438 static NullSink outputProvider(String name, String extension) { |
1439 return new NullSink('$name.$extension'); | 1439 return new NullSink('$name.$extension'); |
1440 } | 1440 } |
1441 } | 1441 } |
OLD | NEW |