OLD | NEW |
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 show Future, EventSink; | 8 show Future, EventSink; |
9 import 'dart:convert' show UTF8, LineSplitter; | 9 import 'dart:convert' show UTF8, LineSplitter; |
10 import 'dart:io' | 10 import 'dart:io' |
(...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
317 new OptionHandler('--disable-native-live-type-analysis', passThrough), | 317 new OptionHandler('--disable-native-live-type-analysis', passThrough), |
318 new OptionHandler('--categories=.*', setCategories), | 318 new OptionHandler('--categories=.*', setCategories), |
319 new OptionHandler('--disable-type-inference', implyCompilation), | 319 new OptionHandler('--disable-type-inference', implyCompilation), |
320 new OptionHandler('--terse', passThrough), | 320 new OptionHandler('--terse', passThrough), |
321 new OptionHandler('--dump-info', implyCompilation), | 321 new OptionHandler('--dump-info', implyCompilation), |
322 new OptionHandler('--disallow-unsafe-eval', | 322 new OptionHandler('--disallow-unsafe-eval', |
323 (_) => hasDisallowUnsafeEval = true), | 323 (_) => hasDisallowUnsafeEval = true), |
324 new OptionHandler('--show-package-warnings', passThrough), | 324 new OptionHandler('--show-package-warnings', passThrough), |
325 new OptionHandler('--csp', passThrough), | 325 new OptionHandler('--csp', passThrough), |
326 new OptionHandler('--enable-async', setEnableAsync), | 326 new OptionHandler('--enable-async', setEnableAsync), |
| 327 new OptionHandler('--enable-enum', passThrough), |
327 new OptionHandler('-D.+=.*', addInEnvironment), | 328 new OptionHandler('-D.+=.*', addInEnvironment), |
328 | 329 |
329 // The following two options must come last. | 330 // The following two options must come last. |
330 new OptionHandler('-.*', (String argument) { | 331 new OptionHandler('-.*', (String argument) { |
331 helpAndFail("Unknown option '$argument'."); | 332 helpAndFail("Unknown option '$argument'."); |
332 }), | 333 }), |
333 new OptionHandler('.*', (String argument) { | 334 new OptionHandler('.*', (String argument) { |
334 arguments.add(nativeToUriPath(argument)); | 335 arguments.add(nativeToUriPath(argument)); |
335 }) | 336 }) |
336 ]; | 337 ]; |
(...skipping 342 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
679 } else if (exitCode == 253) { | 680 } else if (exitCode == 253) { |
680 print(">>> TEST CRASH"); | 681 print(">>> TEST CRASH"); |
681 } else { | 682 } else { |
682 print(">>> TEST FAIL"); | 683 print(">>> TEST FAIL"); |
683 } | 684 } |
684 stderr.writeln(">>> EOF STDERR"); | 685 stderr.writeln(">>> EOF STDERR"); |
685 subscription.resume(); | 686 subscription.resume(); |
686 }); | 687 }); |
687 }); | 688 }); |
688 } | 689 } |
OLD | NEW |