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

Side by Side Diff: dart/sdk/lib/_internal/compiler/implementation/dart2js.dart

Issue 21242002: Retain elements a finer granularity than library. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Address review comments Created 7 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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.cmdline; 5 library dart2js.cmdline;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 import 'dart:io'; 8 import 'dart:io';
9 import 'dart:math' as math; 9 import 'dart:math' as math;
10 10
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after
252 new OptionHandler(r'--help|/\?|/h', (_) => wantHelp = true), 252 new OptionHandler(r'--help|/\?|/h', (_) => wantHelp = true),
253 new OptionHandler('--package-root=.+|-p.+', setPackageRoot), 253 new OptionHandler('--package-root=.+|-p.+', setPackageRoot),
254 new OptionHandler('--disallow-unsafe-eval', passThrough), 254 new OptionHandler('--disallow-unsafe-eval', passThrough),
255 new OptionHandler('--analyze-all', passThrough), 255 new OptionHandler('--analyze-all', passThrough),
256 new OptionHandler('--analyze-only', setAnalyzeOnly), 256 new OptionHandler('--analyze-only', setAnalyzeOnly),
257 new OptionHandler('--analyze-signatures-only', passThrough), 257 new OptionHandler('--analyze-signatures-only', passThrough),
258 new OptionHandler('--disable-native-live-type-analysis', passThrough), 258 new OptionHandler('--disable-native-live-type-analysis', passThrough),
259 new OptionHandler('--categories=.*', setCategories), 259 new OptionHandler('--categories=.*', setCategories),
260 new OptionHandler('--global-js-name=.*', checkGlobalName), 260 new OptionHandler('--global-js-name=.*', checkGlobalName),
261 new OptionHandler('--disable-type-inference', passThrough), 261 new OptionHandler('--disable-type-inference', passThrough),
262 new OptionHandler('--terse', passThrough),
262 263
263 // The following two options must come last. 264 // The following two options must come last.
264 new OptionHandler('-.*', (String argument) { 265 new OptionHandler('-.*', (String argument) {
265 helpAndFail('Error: Unknown option "$argument".'); 266 helpAndFail('Error: Unknown option "$argument".');
266 }), 267 }),
267 new OptionHandler('.*', (String argument) { 268 new OptionHandler('.*', (String argument) {
268 arguments.add(nativeToUriPath(argument)); 269 arguments.add(nativeToUriPath(argument));
269 }) 270 })
270 ]; 271 ];
271 272
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after
493 494
494 --suppress-warnings 495 --suppress-warnings
495 Do not display any warnings. 496 Do not display any warnings.
496 497
497 --suppress-hints 498 --suppress-hints
498 Do not display any hints. 499 Do not display any hints.
499 500
500 --enable-diagnostic-colors 501 --enable-diagnostic-colors
501 Add colors to diagnostic messages. 502 Add colors to diagnostic messages.
502 503
504 --terse
505 Emit diagnostics without suggestions for how to get rid of the diagnosed
506 problems.
507
503 The following options are only used for compiler development and may 508 The following options are only used for compiler development and may
504 be removed in a future version: 509 be removed in a future version:
505 510
506 --output-type=dart 511 --output-type=dart
507 Output Dart code instead of JavaScript. 512 Output Dart code instead of JavaScript.
508 513
509 --throw-on-error 514 --throw-on-error
510 Throw an exception if a compile-time error is detected. 515 Throw an exception if a compile-time error is detected.
511 516
512 --library-root=<directory> 517 --library-root=<directory>
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
573 print(trace); 578 print(trace);
574 } finally { 579 } finally {
575 exit(253); // 253 is recognized as a crash by our test scripts. 580 exit(253); // 253 is recognized as a crash by our test scripts.
576 } 581 }
577 } 582 }
578 } 583 }
579 584
580 void main() { 585 void main() {
581 mainWithErrorHandler(new Options()); 586 mainWithErrorHandler(new Options());
582 } 587 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698