OLD | NEW |
---|---|
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 leg_apiimpl; | 5 library leg_apiimpl; |
6 | 6 |
7 import 'dart:async'; | 7 import 'dart:async'; |
8 import 'dart:convert'; | 8 import 'dart:convert'; |
9 | 9 |
10 import '../compiler.dart' as api; | 10 import '../compiler.dart' as api; |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
72 analyzeMain: hasOption(options, '--analyze-main'), | 72 analyzeMain: hasOption(options, '--analyze-main'), |
73 analyzeSignaturesOnly: | 73 analyzeSignaturesOnly: |
74 hasOption(options, '--analyze-signatures-only'), | 74 hasOption(options, '--analyze-signatures-only'), |
75 strips: extractCsvOption(options, '--force-strip='), | 75 strips: extractCsvOption(options, '--force-strip='), |
76 enableConcreteTypeInference: | 76 enableConcreteTypeInference: |
77 hasOption(options, '--enable-concrete-type-inference'), | 77 hasOption(options, '--enable-concrete-type-inference'), |
78 disableTypeInferenceFlag: | 78 disableTypeInferenceFlag: |
79 hasOption(options, '--disable-type-inference'), | 79 hasOption(options, '--disable-type-inference'), |
80 preserveComments: hasOption(options, '--preserve-comments'), | 80 preserveComments: hasOption(options, '--preserve-comments'), |
81 useCpsIr: hasOption(options, '--use-cps-ir'), | 81 useCpsIr: hasOption(options, '--use-cps-ir'), |
82 useFrequencyNamer: hasOption(options, "--use-frequency-naming"), | |
sra1
2015/07/01 04:11:09
Maybe move this next to --minify since that is wha
herhut
2015/07/02 08:54:51
After talking to floitsch@, I have now enabled fre
| |
82 verbose: hasOption(options, '--verbose'), | 83 verbose: hasOption(options, '--verbose'), |
83 sourceMapUri: extractUriOption(options, '--source-map='), | 84 sourceMapUri: extractUriOption(options, '--source-map='), |
84 outputUri: extractUriOption(options, '--out='), | 85 outputUri: extractUriOption(options, '--out='), |
85 terseDiagnostics: hasOption(options, '--terse'), | 86 terseDiagnostics: hasOption(options, '--terse'), |
86 deferredMapUri: extractUriOption(options, '--deferred-map='), | 87 deferredMapUri: extractUriOption(options, '--deferred-map='), |
87 dumpInfo: hasOption(options, '--dump-info'), | 88 dumpInfo: hasOption(options, '--dump-info'), |
88 buildId: extractStringOption( | 89 buildId: extractStringOption( |
89 options, '--build-id=', | 90 options, '--build-id=', |
90 "build number could not be determined"), | 91 "build number could not be determined"), |
91 showPackageWarnings: | 92 showPackageWarnings: |
(...skipping 377 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
469 print('$message: ${tryToString(exception)}'); | 470 print('$message: ${tryToString(exception)}'); |
470 print(tryToString(stackTrace)); | 471 print(tryToString(stackTrace)); |
471 } | 472 } |
472 | 473 |
473 fromEnvironment(String name) => environment[name]; | 474 fromEnvironment(String name) => environment[name]; |
474 | 475 |
475 LibraryInfo lookupLibraryInfo(String libraryName) { | 476 LibraryInfo lookupLibraryInfo(String libraryName) { |
476 return library_info.LIBRARIES[libraryName]; | 477 return library_info.LIBRARIES[libraryName]; |
477 } | 478 } |
478 } | 479 } |
OLD | NEW |