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

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

Issue 1212613009: dart2js: Implement frequency based naming. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 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 | « no previous file | pkg/compiler/lib/src/compiler.dart » ('j') | pkg/compiler/lib/src/dart2js.dart » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « no previous file | pkg/compiler/lib/src/compiler.dart » ('j') | pkg/compiler/lib/src/dart2js.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698