| 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 830 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 467 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1328 | 1329 |
| 1329 void close() {} | 1330 void close() {} |
| 1330 | 1331 |
| 1331 toString() => name; | 1332 toString() => name; |
| 1332 | 1333 |
| 1333 /// Convenience method for getting an [api.CompilerOutputProvider]. | 1334 /// Convenience method for getting an [api.CompilerOutputProvider]. |
| 1334 static NullSink outputProvider(String name, String extension) { | 1335 static NullSink outputProvider(String name, String extension) { |
| 1335 return new NullSink('$name.$extension'); | 1336 return new NullSink('$name.$extension'); |
| 1336 } | 1337 } |
| 1337 } | 1338 } |
| OLD | NEW |