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 1055 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1066 processQueue(enqueuer.codegen, mainFunction); | 1066 processQueue(enqueuer.codegen, mainFunction); |
1067 enqueuer.codegen.logSummary(reporter.log); | 1067 enqueuer.codegen.logSummary(reporter.log); |
1068 | 1068 |
1069 int programSize = backend.assembleProgram(); | 1069 int programSize = backend.assembleProgram(); |
1070 | 1070 |
1071 if (dumpInfo) { | 1071 if (dumpInfo) { |
1072 dumpInfoTask.reportSize(programSize); | 1072 dumpInfoTask.reportSize(programSize); |
1073 dumpInfoTask.dumpInfo(); | 1073 dumpInfoTask.dumpInfo(); |
1074 } | 1074 } |
1075 | 1075 |
| 1076 backend.sourceInformationStrategy.onComplete(); |
| 1077 |
1076 checkQueues(); | 1078 checkQueues(); |
1077 } | 1079 } |
1078 | 1080 |
1079 void fullyEnqueueLibrary(LibraryElement library, Enqueuer world) { | 1081 void fullyEnqueueLibrary(LibraryElement library, Enqueuer world) { |
1080 void enqueueAll(Element element) { | 1082 void enqueueAll(Element element) { |
1081 fullyEnqueueTopLevelElement(element, world); | 1083 fullyEnqueueTopLevelElement(element, world); |
1082 } | 1084 } |
1083 library.implementation.forEachLocalMember(enqueueAll); | 1085 library.implementation.forEachLocalMember(enqueueAll); |
1084 } | 1086 } |
1085 | 1087 |
(...skipping 1102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2188 if (_otherDependencies == null) { | 2190 if (_otherDependencies == null) { |
2189 _otherDependencies = new Setlet<Element>(); | 2191 _otherDependencies = new Setlet<Element>(); |
2190 } | 2192 } |
2191 _otherDependencies.add(element.implementation); | 2193 _otherDependencies.add(element.implementation); |
2192 } | 2194 } |
2193 | 2195 |
2194 Iterable<Element> get otherDependencies { | 2196 Iterable<Element> get otherDependencies { |
2195 return _otherDependencies != null ? _otherDependencies : const <Element>[]; | 2197 return _otherDependencies != null ? _otherDependencies : const <Element>[]; |
2196 } | 2198 } |
2197 } | 2199 } |
OLD | NEW |