| 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 841 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 852 | 852 |
| 853 mirrorUsageAnalyzerTask.analyzeUsage(mainApp); | 853 mirrorUsageAnalyzerTask.analyzeUsage(mainApp); |
| 854 | 854 |
| 855 // In order to see if a library is deferred, we must compute the | 855 // In order to see if a library is deferred, we must compute the |
| 856 // compile-time constants that are metadata. This means adding | 856 // compile-time constants that are metadata. This means adding |
| 857 // something to the resolution queue. So we cannot wait with | 857 // something to the resolution queue. So we cannot wait with |
| 858 // this until after the resolution queue is processed. | 858 // this until after the resolution queue is processed. |
| 859 deferredLoadTask.beforeResolution(this); | 859 deferredLoadTask.beforeResolution(this); |
| 860 impactStrategy = backend.createImpactStrategy( | 860 impactStrategy = backend.createImpactStrategy( |
| 861 supportDeferredLoad: deferredLoadTask.isProgramSplit, | 861 supportDeferredLoad: deferredLoadTask.isProgramSplit, |
| 862 supportDumpInfo: options.dumpInfo); | 862 supportDumpInfo: dumpInfo, |
| 863 supportSerialization: serialization.supportSerialization); |
| 863 | 864 |
| 864 phase = PHASE_RESOLVING; | 865 phase = PHASE_RESOLVING; |
| 865 if (analyzeAll) { | 866 if (analyzeAll) { |
| 866 libraryLoader.libraries.forEach((LibraryElement library) { | 867 libraryLoader.libraries.forEach((LibraryElement library) { |
| 867 reporter.log('Enqueuing ${library.canonicalUri}'); | 868 reporter.log('Enqueuing ${library.canonicalUri}'); |
| 868 fullyEnqueueLibrary(library, enqueuer.resolution); | 869 fullyEnqueueLibrary(library, enqueuer.resolution); |
| 869 }); | 870 }); |
| 870 } else if (options.analyzeMain) { | 871 } else if (options.analyzeMain) { |
| 871 if (mainApp != null) { | 872 if (mainApp != null) { |
| 872 fullyEnqueueLibrary(mainApp, enqueuer.resolution); | 873 fullyEnqueueLibrary(mainApp, enqueuer.resolution); |
| (...skipping 1213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2086 if (_otherDependencies == null) { | 2087 if (_otherDependencies == null) { |
| 2087 _otherDependencies = new Setlet<Element>(); | 2088 _otherDependencies = new Setlet<Element>(); |
| 2088 } | 2089 } |
| 2089 _otherDependencies.add(element.implementation); | 2090 _otherDependencies.add(element.implementation); |
| 2090 } | 2091 } |
| 2091 | 2092 |
| 2092 Iterable<Element> get otherDependencies { | 2093 Iterable<Element> get otherDependencies { |
| 2093 return _otherDependencies != null ? _otherDependencies : const <Element>[]; | 2094 return _otherDependencies != null ? _otherDependencies : const <Element>[]; |
| 2094 } | 2095 } |
| 2095 } | 2096 } |
| OLD | NEW |