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

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

Issue 2239933003: Ensure that no scripts are resolved when compiling purely from deserialized data. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 4 years, 4 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
« no previous file with comments | « pkg/compiler/lib/src/dart2js.dart ('k') | no next file » | 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) 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 '../compiler.dart' show PackagesDiscoveryProvider; 7 import '../compiler.dart' show PackagesDiscoveryProvider;
8 import 'commandline_options.dart' show Flags; 8 import 'commandline_options.dart' show Flags;
9 9
10 /// Options used for parsing. 10 /// Options used for parsing.
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 193
194 /// The locations of serialized data used for resolution. 194 /// The locations of serialized data used for resolution.
195 final List<Uri> resolutionInputs; 195 final List<Uri> resolutionInputs;
196 196
197 /// The location of the serialized data from resolution. 197 /// The location of the serialized data from resolution.
198 final Uri resolutionOutput; 198 final Uri resolutionOutput;
199 199
200 // If `true`, sources are resolved and serialized. 200 // If `true`, sources are resolved and serialized.
201 final bool resolveOnly; 201 final bool resolveOnly;
202 202
203 // If `true`, sources are only available from serialized data.
204 final bool compileOnly;
205
203 /// URI where the compiler should generate the output source map file. 206 /// URI where the compiler should generate the output source map file.
204 final Uri sourceMapUri; 207 final Uri sourceMapUri;
205 208
206 /// The compiler is run from the build bot. 209 /// The compiler is run from the build bot.
207 final bool testMode; 210 final bool testMode;
208 211
209 /// Whether to trust JS-interop annotations. (experimental) 212 /// Whether to trust JS-interop annotations. (experimental)
210 final bool trustJSInteropTypeAnnotations; 213 final bool trustJSInteropTypeAnnotations;
211 214
212 /// Whether to trust primitive types during inference and optimizations. 215 /// Whether to trust primitive types during inference and optimizations.
(...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after
488 this.generateCodeWithCompileTimeErrors: false, 491 this.generateCodeWithCompileTimeErrors: false,
489 this.generateSourceMap: true, 492 this.generateSourceMap: true,
490 this.hasIncrementalSupport: false, 493 this.hasIncrementalSupport: false,
491 this.outputUri: null, 494 this.outputUri: null,
492 this.platformConfigUri: null, 495 this.platformConfigUri: null,
493 this.preserveComments: false, 496 this.preserveComments: false,
494 this.preserveUris: false, 497 this.preserveUris: false,
495 this.resolutionInputs: null, 498 this.resolutionInputs: null,
496 this.resolutionOutput: null, 499 this.resolutionOutput: null,
497 this.resolveOnly: false, 500 this.resolveOnly: false,
501 this.compileOnly: false,
498 this.sourceMapUri: null, 502 this.sourceMapUri: null,
499 this.strips: const [], 503 this.strips: const [],
500 this.testMode: false, 504 this.testMode: false,
501 this.trustJSInteropTypeAnnotations: false, 505 this.trustJSInteropTypeAnnotations: false,
502 this.trustPrimitives: false, 506 this.trustPrimitives: false,
503 this.trustTypeAnnotations: false, 507 this.trustTypeAnnotations: false,
504 this.useContentSecurityPolicy: false, 508 this.useContentSecurityPolicy: false,
505 this.useCpsIr: false, 509 this.useCpsIr: false,
506 this.useFrequencyNamer: false, 510 this.useFrequencyNamer: false,
507 this.useNewSourceInfo: false, 511 this.useNewSourceInfo: false,
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
545 generateCodeWithCompileTimeErrors, 549 generateCodeWithCompileTimeErrors,
546 generateSourceMap, 550 generateSourceMap,
547 hasIncrementalSupport, 551 hasIncrementalSupport,
548 outputUri, 552 outputUri,
549 platformConfigUri, 553 platformConfigUri,
550 preserveComments, 554 preserveComments,
551 preserveUris, 555 preserveUris,
552 resolutionInputs, 556 resolutionInputs,
553 resolutionOutput, 557 resolutionOutput,
554 resolveOnly, 558 resolveOnly,
559 compileOnly,
555 sourceMapUri, 560 sourceMapUri,
556 strips, 561 strips,
557 testMode, 562 testMode,
558 trustJSInteropTypeAnnotations, 563 trustJSInteropTypeAnnotations,
559 trustPrimitives, 564 trustPrimitives,
560 trustTypeAnnotations, 565 trustTypeAnnotations,
561 useContentSecurityPolicy, 566 useContentSecurityPolicy,
562 useCpsIr, 567 useCpsIr,
563 useFrequencyNamer, 568 useFrequencyNamer,
564 useNewSourceInfo, 569 useNewSourceInfo,
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
611 generateSourceMap: generateSourceMap ?? options.generateSourceMap, 616 generateSourceMap: generateSourceMap ?? options.generateSourceMap,
612 hasIncrementalSupport: 617 hasIncrementalSupport:
613 hasIncrementalSupport ?? options.hasIncrementalSupport, 618 hasIncrementalSupport ?? options.hasIncrementalSupport,
614 outputUri: outputUri ?? options.outputUri, 619 outputUri: outputUri ?? options.outputUri,
615 platformConfigUri: platformConfigUri ?? options.platformConfigUri, 620 platformConfigUri: platformConfigUri ?? options.platformConfigUri,
616 preserveComments: preserveComments ?? options.preserveComments, 621 preserveComments: preserveComments ?? options.preserveComments,
617 preserveUris: preserveUris ?? options.preserveUris, 622 preserveUris: preserveUris ?? options.preserveUris,
618 resolutionInputs: resolutionInputs ?? options.resolutionInputs, 623 resolutionInputs: resolutionInputs ?? options.resolutionInputs,
619 resolutionOutput: resolutionOutput ?? options.resolutionOutput, 624 resolutionOutput: resolutionOutput ?? options.resolutionOutput,
620 resolveOnly: resolveOnly ?? options.resolveOnly, 625 resolveOnly: resolveOnly ?? options.resolveOnly,
626 compileOnly: compileOnly ?? options.compileOnly,
621 sourceMapUri: sourceMapUri ?? options.sourceMapUri, 627 sourceMapUri: sourceMapUri ?? options.sourceMapUri,
622 strips: strips ?? options.strips, 628 strips: strips ?? options.strips,
623 testMode: testMode ?? options.testMode, 629 testMode: testMode ?? options.testMode,
624 trustJSInteropTypeAnnotations: trustJSInteropTypeAnnotations ?? 630 trustJSInteropTypeAnnotations: trustJSInteropTypeAnnotations ??
625 options.trustJSInteropTypeAnnotations, 631 options.trustJSInteropTypeAnnotations,
626 trustPrimitives: trustPrimitives ?? options.trustPrimitives, 632 trustPrimitives: trustPrimitives ?? options.trustPrimitives,
627 trustTypeAnnotations: 633 trustTypeAnnotations:
628 trustTypeAnnotations ?? options.trustTypeAnnotations, 634 trustTypeAnnotations ?? options.trustTypeAnnotations,
629 useContentSecurityPolicy: 635 useContentSecurityPolicy:
630 useContentSecurityPolicy ?? options.useContentSecurityPolicy, 636 useContentSecurityPolicy ?? options.useContentSecurityPolicy,
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
729 } 735 }
730 736
731 /// Locations of the platform descriptor files relative to the library root. 737 /// Locations of the platform descriptor files relative to the library root.
732 const String _clientPlatform = "lib/dart_client.platform"; 738 const String _clientPlatform = "lib/dart_client.platform";
733 const String _serverPlatform = "lib/dart_server.platform"; 739 const String _serverPlatform = "lib/dart_server.platform";
734 const String _sharedPlatform = "lib/dart_shared.platform"; 740 const String _sharedPlatform = "lib/dart_shared.platform";
735 741
736 const String _UNDETERMINED_BUILD_ID = "build number could not be determined"; 742 const String _UNDETERMINED_BUILD_ID = "build number could not be determined";
737 const bool _forceIncrementalSupport = 743 const bool _forceIncrementalSupport =
738 const bool.fromEnvironment('DART2JS_EXPERIMENTAL_INCREMENTAL_SUPPORT'); 744 const bool.fromEnvironment('DART2JS_EXPERIMENTAL_INCREMENTAL_SUPPORT');
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/dart2js.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698