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

Side by Side Diff: pkg/compiler/lib/src/compiler.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
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 part of dart2js; 5 part of dart2js;
6 6
7 /** 7 /**
8 * If true, print a warning for each method that was resolved, but not 8 * If true, print a warning for each method that was resolved, but not
9 * compiled. 9 * compiled.
10 */ 10 */
(...skipping 681 matching lines...) Expand 10 before | Expand all | Expand 10 after
692 * 692 *
693 * We should get rid of this and ensure that all dependencies are 693 * We should get rid of this and ensure that all dependencies are
694 * associated with a particular element. 694 * associated with a particular element.
695 */ 695 */
696 // TODO(johnniwinther): This should not be a [ResolutionRegistry]. 696 // TODO(johnniwinther): This should not be a [ResolutionRegistry].
697 final Registry mirrorDependencies = 697 final Registry mirrorDependencies =
698 new ResolutionRegistry.internal(null, new TreeElementMapping(null)); 698 new ResolutionRegistry.internal(null, new TreeElementMapping(null));
699 699
700 final bool enableMinification; 700 final bool enableMinification;
701 701
702 final bool useFrequencyNamer;
703
702 /// When `true` emits URIs in the reflection metadata. 704 /// When `true` emits URIs in the reflection metadata.
703 final bool preserveUris; 705 final bool preserveUris;
704 706
705 final bool enableTypeAssertions; 707 final bool enableTypeAssertions;
706 final bool enableUserAssertions; 708 final bool enableUserAssertions;
707 final bool trustTypeAnnotations; 709 final bool trustTypeAnnotations;
708 final bool trustPrimitives; 710 final bool trustPrimitives;
709 final bool enableConcreteTypeInference; 711 final bool enableConcreteTypeInference;
710 final bool disableTypeInferenceFlag; 712 final bool disableTypeInferenceFlag;
711 final Uri deferredMapUri; 713 final Uri deferredMapUri;
(...skipping 323 matching lines...) Expand 10 before | Expand all | Expand 10 after
1035 this.enableNativeLiveTypeAnalysis: false, 1037 this.enableNativeLiveTypeAnalysis: false,
1036 bool emitJavaScript: true, 1038 bool emitJavaScript: true,
1037 bool dart2dartMultiFile: false, 1039 bool dart2dartMultiFile: false,
1038 bool generateSourceMap: true, 1040 bool generateSourceMap: true,
1039 bool analyzeAllFlag: false, 1041 bool analyzeAllFlag: false,
1040 bool analyzeOnly: false, 1042 bool analyzeOnly: false,
1041 this.analyzeMain: false, 1043 this.analyzeMain: false,
1042 bool analyzeSignaturesOnly: false, 1044 bool analyzeSignaturesOnly: false,
1043 this.preserveComments: false, 1045 this.preserveComments: false,
1044 this.useCpsIr: false, 1046 this.useCpsIr: false,
1047 this.useFrequencyNamer: false,
1045 this.verbose: false, 1048 this.verbose: false,
1046 this.sourceMapUri: null, 1049 this.sourceMapUri: null,
1047 this.outputUri: null, 1050 this.outputUri: null,
1048 this.buildId: UNDETERMINED_BUILD_ID, 1051 this.buildId: UNDETERMINED_BUILD_ID,
1049 this.terseDiagnostics: false, 1052 this.terseDiagnostics: false,
1050 this.deferredMapUri: null, 1053 this.deferredMapUri: null,
1051 this.dumpInfo: false, 1054 this.dumpInfo: false,
1052 this.showPackageWarnings: false, 1055 this.showPackageWarnings: false,
1053 this.useContentSecurityPolicy: false, 1056 this.useContentSecurityPolicy: false,
1054 this.suppressWarnings: false, 1057 this.suppressWarnings: false,
(...skipping 1452 matching lines...) Expand 10 before | Expand all | Expand 10 after
2507 InterfaceType streamType([DartType elementType]) { 2510 InterfaceType streamType([DartType elementType]) {
2508 InterfaceType type = streamClass.computeType(compiler); 2511 InterfaceType type = streamClass.computeType(compiler);
2509 if (elementType == null) { 2512 if (elementType == null) {
2510 return streamClass.rawType; 2513 return streamClass.rawType;
2511 } 2514 }
2512 return type.createInstantiation([elementType]); 2515 return type.createInstantiation([elementType]);
2513 } 2516 }
2514 } 2517 }
2515 2518
2516 typedef void InternalErrorFunction(Spannable location, String message); 2519 typedef void InternalErrorFunction(Spannable location, String message);
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698