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

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

Issue 2086443002: Support completely serialized compilation in batch mode. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 4 years, 6 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) 2016, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2016, 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.src.options; 5 library dart2js.src.options;
6 6
7 import 'commandline_options.dart' show Flags; 7 import 'commandline_options.dart' show Flags;
8 import '../compiler.dart' show PackagesDiscoveryProvider; 8 import '../compiler.dart' show PackagesDiscoveryProvider;
9 9
10 /// Options used for parsing. 10 /// Options used for parsing.
(...skipping 507 matching lines...) Expand 10 before | Expand all | Expand 10 after
518 this.trustPrimitives: false, 518 this.trustPrimitives: false,
519 this.trustTypeAnnotations: false, 519 this.trustTypeAnnotations: false,
520 this.useContentSecurityPolicy: false, 520 this.useContentSecurityPolicy: false,
521 this.useCpsIr: false, 521 this.useCpsIr: false,
522 this.useFrequencyNamer: false, 522 this.useFrequencyNamer: false,
523 this.useNewSourceInfo: false, 523 this.useNewSourceInfo: false,
524 this.useStartupEmitter: false, 524 this.useStartupEmitter: false,
525 this.verbose: false}) 525 this.verbose: false})
526 : _shownPackageWarnings = shownPackageWarnings; 526 : _shownPackageWarnings = shownPackageWarnings;
527 527
528 /// Creates a copy of the [CompilerOptions] where the provided non-null
529 /// option values replace existing.
530 CompilerOptions copy(
531 {entryPoint,
532 libraryRoot,
533 packageRoot,
534 packageConfig,
535 packagesDiscoveryProvider,
536 environment,
537 allowMockCompilation,
538 allowNativeExtensions,
539 analyzeAll,
540 analyzeMain,
541 analyzeOnly,
542 analyzeSignaturesOnly,
543 buildId,
544 dart2dartMultiFile,
545 deferredMapUri,
546 fatalWarnings,
547 terseDiagnostics,
548 suppressWarnings,
549 suppressHints,
550 List<String> shownPackageWarnings,
551 disableInlining,
552 disableTypeInference,
553 dumpInfo,
554 emitJavaScript,
555 enableAssertMessage,
556 enableGenericMethodSyntax,
557 enableInitializingFormalAccess,
558 enableExperimentalMirrors,
559 enableMinification,
560 enableNativeLiveTypeAnalysis,
561 enableTypeAssertions,
562 enableUserAssertions,
563 generateCodeWithCompileTimeErrors,
564 generateSourceMap,
565 hasIncrementalSupport,
566 outputUri,
567 platformConfigUri,
568 preserveComments,
569 preserveUris,
570 resolutionInputs,
571 resolutionOutput,
572 resolveOnly,
573 sourceMapUri,
574 strips,
575 testMode,
576 trustJSInteropTypeAnnotations,
577 trustPrimitives,
578 trustTypeAnnotations,
579 useContentSecurityPolicy,
580 useCpsIr,
581 useFrequencyNamer,
582 useNewSourceInfo,
583 useStartupEmitter,
584 verbose}) {
585 return new CompilerOptions._(
586 entryPoint ?? this.entryPoint,
587 libraryRoot ?? this.libraryRoot,
588 packageRoot ?? this.packageRoot,
589 packageConfig ?? this.packageConfig,
590 packagesDiscoveryProvider ?? this.packagesDiscoveryProvider,
591 environment ?? this.environment,
592 allowMockCompilation: allowMockCompilation ?? this.allowMockCompilation,
593 allowNativeExtensions:
594 allowNativeExtensions ?? this.allowNativeExtensions,
595 analyzeAll: analyzeAll ?? this.analyzeAll,
596 analyzeMain: analyzeMain ?? this.analyzeMain,
597 analyzeOnly: analyzeOnly ?? this.analyzeOnly,
598 analyzeSignaturesOnly:
599 analyzeSignaturesOnly ?? this.analyzeSignaturesOnly,
600 buildId: buildId ?? this.buildId,
601 dart2dartMultiFile: dart2dartMultiFile ?? this.dart2dartMultiFile,
602 deferredMapUri: deferredMapUri ?? this.deferredMapUri,
603 fatalWarnings: fatalWarnings ?? this.fatalWarnings,
604 terseDiagnostics: terseDiagnostics ?? this.terseDiagnostics,
605 suppressWarnings: suppressWarnings ?? this.suppressWarnings,
606 suppressHints: suppressHints ?? this.suppressHints,
607 shownPackageWarnings:
608 shownPackageWarnings ?? this._shownPackageWarnings,
609 disableInlining: disableInlining ?? this.disableInlining,
610 disableTypeInference: disableTypeInference ?? this.disableTypeInference,
611 dumpInfo: dumpInfo ?? this.dumpInfo,
612 emitJavaScript: emitJavaScript ?? this.emitJavaScript,
613 enableAssertMessage: enableAssertMessage ?? this.enableAssertMessage,
614 enableGenericMethodSyntax:
615 enableGenericMethodSyntax ?? this.enableGenericMethodSyntax,
616 enableInitializingFormalAccess: enableInitializingFormalAccess ??
617 this.enableInitializingFormalAccess,
618 enableExperimentalMirrors:
619 enableExperimentalMirrors ?? this.enableExperimentalMirrors,
620 enableMinification: enableMinification ?? this.enableMinification,
621 enableNativeLiveTypeAnalysis:
622 enableNativeLiveTypeAnalysis ?? this.enableNativeLiveTypeAnalysis,
623 enableTypeAssertions: enableTypeAssertions ?? this.enableTypeAssertions,
624 enableUserAssertions: enableUserAssertions ?? this.enableUserAssertions,
625 generateCodeWithCompileTimeErrors: generateCodeWithCompileTimeErrors ??
626 this.generateCodeWithCompileTimeErrors,
627 generateSourceMap: generateSourceMap ?? this.generateSourceMap,
628 hasIncrementalSupport:
629 hasIncrementalSupport ?? this.hasIncrementalSupport,
630 outputUri: outputUri ?? this.outputUri,
631 platformConfigUri: platformConfigUri ?? this.platformConfigUri,
632 preserveComments: preserveComments ?? this.preserveComments,
633 preserveUris: preserveUris ?? this.preserveUris,
634 resolutionInputs: resolutionInputs ?? this.resolutionInputs,
635 resolutionOutput: resolutionOutput ?? this.resolutionOutput,
636 resolveOnly: resolveOnly ?? this.resolveOnly,
637 sourceMapUri: sourceMapUri ?? this.sourceMapUri,
638 strips: strips ?? this.strips,
639 testMode: testMode ?? this.testMode,
640 trustJSInteropTypeAnnotations:
641 trustJSInteropTypeAnnotations ?? this.trustJSInteropTypeAnnotations,
642 trustPrimitives: trustPrimitives ?? this.trustPrimitives,
643 trustTypeAnnotations: trustTypeAnnotations ?? this.trustTypeAnnotations,
644 useContentSecurityPolicy:
645 useContentSecurityPolicy ?? this.useContentSecurityPolicy,
646 useCpsIr: useCpsIr ?? this.useCpsIr,
647 useFrequencyNamer: useFrequencyNamer ?? this.useFrequencyNamer,
648 useNewSourceInfo: useNewSourceInfo ?? this.useNewSourceInfo,
649 useStartupEmitter: useStartupEmitter ?? this.useStartupEmitter,
650 verbose: verbose ?? this.verbose);
651 }
652
528 /// Returns `true` if warnings and hints are shown for all packages. 653 /// Returns `true` if warnings and hints are shown for all packages.
529 bool get showAllPackageWarnings { 654 bool get showAllPackageWarnings {
530 return _shownPackageWarnings != null && _shownPackageWarnings.isEmpty; 655 return _shownPackageWarnings != null && _shownPackageWarnings.isEmpty;
531 } 656 }
532 657
533 /// Returns `true` if warnings and hints are hidden for all packages. 658 /// Returns `true` if warnings and hints are hidden for all packages.
534 bool get hidePackageWarnings => _shownPackageWarnings == null; 659 bool get hidePackageWarnings => _shownPackageWarnings == null;
535 660
536 /// Returns `true` if warnings should be should for [uri]. 661 /// Returns `true` if warnings should be should for [uri].
537 bool showPackageWarningsFor(Uri uri) { 662 bool showPackageWarningsFor(Uri uri) {
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
623 748
624 /// Locations of the platform descriptor files relative to the library root. 749 /// Locations of the platform descriptor files relative to the library root.
625 const String _clientPlatform = "lib/dart_client.platform"; 750 const String _clientPlatform = "lib/dart_client.platform";
626 const String _serverPlatform = "lib/dart_server.platform"; 751 const String _serverPlatform = "lib/dart_server.platform";
627 const String _sharedPlatform = "lib/dart_shared.platform"; 752 const String _sharedPlatform = "lib/dart_shared.platform";
628 const String _dart2dartPlatform = "lib/dart2dart.platform"; 753 const String _dart2dartPlatform = "lib/dart2dart.platform";
629 754
630 const String _UNDETERMINED_BUILD_ID = "build number could not be determined"; 755 const String _UNDETERMINED_BUILD_ID = "build number could not be determined";
631 const bool _forceIncrementalSupport = 756 const bool _forceIncrementalSupport =
632 const bool.fromEnvironment('DART2JS_EXPERIMENTAL_INCREMENTAL_SUPPORT'); 757 const bool.fromEnvironment('DART2JS_EXPERIMENTAL_INCREMENTAL_SUPPORT');
OLDNEW
« pkg/compiler/lib/src/dart2js.dart ('K') | « pkg/compiler/lib/src/dart2js.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698