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

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

Issue 2879153005: Add support to dart2js for option --enable-asserts. (Closed)
Patch Set: Added !$checked to section predicate in co19 status file Created 3 years, 5 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') | pkg/expect/lib/expect.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) 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 controlling diagnostic messages. 10 /// Options used for controlling diagnostic messages.
(...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after
289 _extractOptionalCsvOption(options, Flags.showPackageWarnings), 289 _extractOptionalCsvOption(options, Flags.showPackageWarnings),
290 disableInlining: _hasOption(options, Flags.disableInlining), 290 disableInlining: _hasOption(options, Flags.disableInlining),
291 disableTypeInference: _hasOption(options, Flags.disableTypeInference), 291 disableTypeInference: _hasOption(options, Flags.disableTypeInference),
292 dumpInfo: _hasOption(options, Flags.dumpInfo), 292 dumpInfo: _hasOption(options, Flags.dumpInfo),
293 enableExperimentalMirrors: 293 enableExperimentalMirrors:
294 _hasOption(options, Flags.enableExperimentalMirrors), 294 _hasOption(options, Flags.enableExperimentalMirrors),
295 enableMinification: _hasOption(options, Flags.minify), 295 enableMinification: _hasOption(options, Flags.minify),
296 enableNativeLiveTypeAnalysis: 296 enableNativeLiveTypeAnalysis:
297 !_hasOption(options, Flags.disableNativeLiveTypeAnalysis), 297 !_hasOption(options, Flags.disableNativeLiveTypeAnalysis),
298 enableTypeAssertions: _hasOption(options, Flags.enableCheckedMode), 298 enableTypeAssertions: _hasOption(options, Flags.enableCheckedMode),
299 enableUserAssertions: _hasOption(options, Flags.enableCheckedMode), 299 enableUserAssertions: _hasOption(options, Flags.enableCheckedMode) ||
300 _hasOption(options, Flags.enableAsserts),
300 experimentalTrackAllocations: 301 experimentalTrackAllocations:
301 _hasOption(options, Flags.experimentalTrackAllocations), 302 _hasOption(options, Flags.experimentalTrackAllocations),
302 experimentalAllocationsPath: _extractStringOption( 303 experimentalAllocationsPath: _extractStringOption(
303 options, "${Flags.experimentalAllocationsPath}=", null), 304 options, "${Flags.experimentalAllocationsPath}=", null),
304 generateCodeWithCompileTimeErrors: 305 generateCodeWithCompileTimeErrors:
305 _hasOption(options, Flags.generateCodeWithCompileTimeErrors), 306 _hasOption(options, Flags.generateCodeWithCompileTimeErrors),
306 generateSourceMap: !_hasOption(options, Flags.noSourceMaps), 307 generateSourceMap: !_hasOption(options, Flags.noSourceMaps),
307 kernelGlobalInference: _hasOption(options, Flags.kernelGlobalInference), 308 kernelGlobalInference: _hasOption(options, Flags.kernelGlobalInference),
308 outputUri: _extractUriOption(options, '--out='), 309 outputUri: _extractUriOption(options, '--out='),
309 platformConfigUri: 310 platformConfigUri:
(...skipping 436 matching lines...) Expand 10 before | Expand all | Expand 10 after
746 _extractStringOption(options, "--platform-config=", null), 747 _extractStringOption(options, "--platform-config=", null),
747 _extractCsvOption(options, '--categories=')); 748 _extractCsvOption(options, '--categories='));
748 } 749 }
749 750
750 /// Locations of the platform descriptor files relative to the library root. 751 /// Locations of the platform descriptor files relative to the library root.
751 const String _clientPlatform = "lib/dart_client.platform"; 752 const String _clientPlatform = "lib/dart_client.platform";
752 const String _serverPlatform = "lib/dart_server.platform"; 753 const String _serverPlatform = "lib/dart_server.platform";
753 const String _sharedPlatform = "lib/dart_shared.platform"; 754 const String _sharedPlatform = "lib/dart_shared.platform";
754 755
755 const String _UNDETERMINED_BUILD_ID = "build number could not be determined"; 756 const String _UNDETERMINED_BUILD_ID = "build number could not be determined";
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/dart2js.dart ('k') | pkg/expect/lib/expect.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698