| 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 971 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 982 | 982 |
| 983 mirrorUsageAnalyzerTask.analyzeUsage(mainApp); | 983 mirrorUsageAnalyzerTask.analyzeUsage(mainApp); |
| 984 | 984 |
| 985 // In order to see if a library is deferred, we must compute the | 985 // In order to see if a library is deferred, we must compute the |
| 986 // compile-time constants that are metadata. This means adding | 986 // compile-time constants that are metadata. This means adding |
| 987 // something to the resolution queue. So we cannot wait with | 987 // something to the resolution queue. So we cannot wait with |
| 988 // this until after the resolution queue is processed. | 988 // this until after the resolution queue is processed. |
| 989 deferredLoadTask.beforeResolution(this); | 989 deferredLoadTask.beforeResolution(this); |
| 990 impactStrategy = backend.createImpactStrategy( | 990 impactStrategy = backend.createImpactStrategy( |
| 991 supportDeferredLoad: deferredLoadTask.isProgramSplit, | 991 supportDeferredLoad: deferredLoadTask.isProgramSplit, |
| 992 supportDumpInfo: dumpInfo); | 992 supportDumpInfo: dumpInfo, |
| 993 supportSerialization: serialiation.supportSerialization); |
| 993 | 994 |
| 994 phase = PHASE_RESOLVING; | 995 phase = PHASE_RESOLVING; |
| 995 if (analyzeAll) { | 996 if (analyzeAll) { |
| 996 libraryLoader.libraries.forEach((LibraryElement library) { | 997 libraryLoader.libraries.forEach((LibraryElement library) { |
| 997 reporter.log('Enqueuing ${library.canonicalUri}'); | 998 reporter.log('Enqueuing ${library.canonicalUri}'); |
| 998 fullyEnqueueLibrary(library, enqueuer.resolution); | 999 fullyEnqueueLibrary(library, enqueuer.resolution); |
| 999 }); | 1000 }); |
| 1000 } else if (analyzeMain) { | 1001 } else if (analyzeMain) { |
| 1001 if (mainApp != null) { | 1002 if (mainApp != null) { |
| 1002 fullyEnqueueLibrary(mainApp, enqueuer.resolution); | 1003 fullyEnqueueLibrary(mainApp, enqueuer.resolution); |
| (...skipping 1213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2216 if (_otherDependencies == null) { | 2217 if (_otherDependencies == null) { |
| 2217 _otherDependencies = new Setlet<Element>(); | 2218 _otherDependencies = new Setlet<Element>(); |
| 2218 } | 2219 } |
| 2219 _otherDependencies.add(element.implementation); | 2220 _otherDependencies.add(element.implementation); |
| 2220 } | 2221 } |
| 2221 | 2222 |
| 2222 Iterable<Element> get otherDependencies { | 2223 Iterable<Element> get otherDependencies { |
| 2223 return _otherDependencies != null ? _otherDependencies : const <Element>[]; | 2224 return _otherDependencies != null ? _otherDependencies : const <Element>[]; |
| 2224 } | 2225 } |
| 2225 } | 2226 } |
| OLD | NEW |