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

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

Issue 785303003: Add option for outputting a deferred loading mapping. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: rebase Created 5 years, 11 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 | Annotate | Revision Log
« no previous file with comments | « pkg/compiler/lib/src/apiimpl.dart ('k') | pkg/compiler/lib/src/dart2js.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 part of dart2js; 5 part of dart2js;
6 6
7 /** 7 /**
8 * If true, print a warning for each method that was resolved, but not 8 * If true, print a warning for each method that was resolved, but not
9 * compiled. 9 * compiled.
10 */ 10 */
(...skipping 651 matching lines...) Expand 10 before | Expand all | Expand 10 after
662 662
663 /// When `true` emits URIs in the reflection metadata. 663 /// When `true` emits URIs in the reflection metadata.
664 final bool preserveUris; 664 final bool preserveUris;
665 665
666 final bool enableTypeAssertions; 666 final bool enableTypeAssertions;
667 final bool enableUserAssertions; 667 final bool enableUserAssertions;
668 final bool trustTypeAnnotations; 668 final bool trustTypeAnnotations;
669 final bool trustPrimitives; 669 final bool trustPrimitives;
670 final bool enableConcreteTypeInference; 670 final bool enableConcreteTypeInference;
671 final bool disableTypeInferenceFlag; 671 final bool disableTypeInferenceFlag;
672 final Uri deferredMapUri;
672 final bool dumpInfo; 673 final bool dumpInfo;
673 final bool useContentSecurityPolicy; 674 final bool useContentSecurityPolicy;
674 final bool enableExperimentalMirrors; 675 final bool enableExperimentalMirrors;
675 676
676 /** 677 /**
677 * The maximum size of a concrete type before it widens to dynamic during 678 * The maximum size of a concrete type before it widens to dynamic during
678 * concrete type inference. 679 * concrete type inference.
679 */ 680 */
680 final int maxConcreteTypeSize; 681 final int maxConcreteTypeSize;
681 final bool analyzeAllFlag; 682 final bool analyzeAllFlag;
(...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after
978 bool analyzeAllFlag: false, 979 bool analyzeAllFlag: false,
979 bool analyzeOnly: false, 980 bool analyzeOnly: false,
980 this.analyzeMain: false, 981 this.analyzeMain: false,
981 bool analyzeSignaturesOnly: false, 982 bool analyzeSignaturesOnly: false,
982 this.preserveComments: false, 983 this.preserveComments: false,
983 this.verbose: false, 984 this.verbose: false,
984 this.sourceMapUri: null, 985 this.sourceMapUri: null,
985 this.outputUri: null, 986 this.outputUri: null,
986 this.buildId: UNDETERMINED_BUILD_ID, 987 this.buildId: UNDETERMINED_BUILD_ID,
987 this.terseDiagnostics: false, 988 this.terseDiagnostics: false,
989 this.deferredMapUri: null,
988 this.dumpInfo: false, 990 this.dumpInfo: false,
989 this.showPackageWarnings: false, 991 this.showPackageWarnings: false,
990 this.useContentSecurityPolicy: false, 992 this.useContentSecurityPolicy: false,
991 this.suppressWarnings: false, 993 this.suppressWarnings: false,
992 bool hasIncrementalSupport: false, 994 bool hasIncrementalSupport: false,
993 this.enableExperimentalMirrors: false, 995 this.enableExperimentalMirrors: false,
994 this.enableAsyncAwait: false, 996 this.enableAsyncAwait: false,
995 this.enableEnums: false, 997 this.enableEnums: false,
996 this.allowNativeExtensions: false, 998 this.allowNativeExtensions: false,
997 api.CompilerOutputProvider outputProvider, 999 api.CompilerOutputProvider outputProvider,
(...skipping 526 matching lines...) Expand 10 before | Expand all | Expand 10 after
1524 /// Performs the compilation when all libraries have been loaded. 1526 /// Performs the compilation when all libraries have been loaded.
1525 void compileLoadedLibraries() { 1527 void compileLoadedLibraries() {
1526 computeMain(); 1528 computeMain();
1527 1529
1528 mirrorUsageAnalyzerTask.analyzeUsage(mainApp); 1530 mirrorUsageAnalyzerTask.analyzeUsage(mainApp);
1529 1531
1530 // In order to see if a library is deferred, we must compute the 1532 // In order to see if a library is deferred, we must compute the
1531 // compile-time constants that are metadata. This means adding 1533 // compile-time constants that are metadata. This means adding
1532 // something to the resolution queue. So we cannot wait with 1534 // something to the resolution queue. So we cannot wait with
1533 // this until after the resolution queue is processed. 1535 // this until after the resolution queue is processed.
1534 deferredLoadTask.ensureMetadataResolved(this); 1536 deferredLoadTask.beforeResolution(this);
1535 1537
1536 phase = PHASE_RESOLVING; 1538 phase = PHASE_RESOLVING;
1537 if (analyzeAll) { 1539 if (analyzeAll) {
1538 libraryLoader.libraries.forEach((LibraryElement library) { 1540 libraryLoader.libraries.forEach((LibraryElement library) {
1539 log('Enqueuing ${library.canonicalUri}'); 1541 log('Enqueuing ${library.canonicalUri}');
1540 fullyEnqueueLibrary(library, enqueuer.resolution); 1542 fullyEnqueueLibrary(library, enqueuer.resolution);
1541 }); 1543 });
1542 } else if (analyzeMain && mainApp != null) { 1544 } else if (analyzeMain && mainApp != null) {
1543 fullyEnqueueLibrary(mainApp, enqueuer.resolution); 1545 fullyEnqueueLibrary(mainApp, enqueuer.resolution);
1544 } 1546 }
(...skipping 836 matching lines...) Expand 10 before | Expand all | Expand 10 after
2381 InterfaceType get nullType => nullClass.computeType(compiler); 2383 InterfaceType get nullType => nullClass.computeType(compiler);
2382 2384
2383 @override 2385 @override
2384 InterfaceType get numType => numClass.computeType(compiler); 2386 InterfaceType get numType => numClass.computeType(compiler);
2385 2387
2386 @override 2388 @override
2387 InterfaceType get stringType => stringClass.computeType(compiler); 2389 InterfaceType get stringType => stringClass.computeType(compiler);
2388 } 2390 }
2389 2391
2390 typedef void InternalErrorFunction(Spannable location, String message); 2392 typedef void InternalErrorFunction(Spannable location, String message);
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/apiimpl.dart ('k') | pkg/compiler/lib/src/dart2js.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698