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 library dart2js.compiler_base; | 5 library dart2js.compiler_base; |
6 | 6 |
7 import 'dart:async' show | 7 import 'dart:async' show |
8 EventSink, | 8 EventSink, |
9 Future; | 9 Future; |
10 | 10 |
(...skipping 1135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1146 | 1146 |
1147 log('Inferring types...'); | 1147 log('Inferring types...'); |
1148 typesTask.onResolutionComplete(mainFunction); | 1148 typesTask.onResolutionComplete(mainFunction); |
1149 | 1149 |
1150 if (stopAfterTypeInference) return; | 1150 if (stopAfterTypeInference) return; |
1151 | 1151 |
1152 backend.onTypeInferenceComplete(); | 1152 backend.onTypeInferenceComplete(); |
1153 | 1153 |
1154 log('Compiling...'); | 1154 log('Compiling...'); |
1155 phase = PHASE_COMPILING; | 1155 phase = PHASE_COMPILING; |
1156 backend.onCodegenStart(); | |
1157 // TODO(johnniwinther): Move these to [CodegenEnqueuer]. | 1156 // TODO(johnniwinther): Move these to [CodegenEnqueuer]. |
1158 if (hasIsolateSupport) { | 1157 if (hasIsolateSupport) { |
1159 backend.enableIsolateSupport(enqueuer.codegen); | 1158 backend.enableIsolateSupport(enqueuer.codegen); |
1160 } | 1159 } |
1161 if (compileAll) { | 1160 if (compileAll) { |
1162 libraryLoader.libraries.forEach((LibraryElement library) { | 1161 libraryLoader.libraries.forEach((LibraryElement library) { |
1163 fullyEnqueueLibrary(library, enqueuer.codegen); | 1162 fullyEnqueueLibrary(library, enqueuer.codegen); |
1164 }); | 1163 }); |
1165 } | 1164 } |
1166 processQueue(enqueuer.codegen, mainFunction); | 1165 processQueue(enqueuer.codegen, mainFunction); |
(...skipping 618 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1785 | 1784 |
1786 @override | 1785 @override |
1787 InterfaceType streamType([DartType elementType]) { | 1786 InterfaceType streamType([DartType elementType]) { |
1788 InterfaceType type = streamClass.computeType(compiler); | 1787 InterfaceType type = streamClass.computeType(compiler); |
1789 if (elementType == null) { | 1788 if (elementType == null) { |
1790 return streamClass.rawType; | 1789 return streamClass.rawType; |
1791 } | 1790 } |
1792 return type.createInstantiation([elementType]); | 1791 return type.createInstantiation([elementType]); |
1793 } | 1792 } |
1794 } | 1793 } |
OLD | NEW |