Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(63)

Side by Side Diff: pkg/compiler/lib/src/compiler.dart

Issue 1809533004: Support serialization of WorldImpact (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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: true);
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698