| 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 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 627 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 638 * Dependencies that are only included due to mirrors. | 638 * Dependencies that are only included due to mirrors. |
| 639 * | 639 * |
| 640 * We should get rid of this and ensure that all dependencies are | 640 * We should get rid of this and ensure that all dependencies are |
| 641 * associated with a particular element. | 641 * associated with a particular element. |
| 642 */ | 642 */ |
| 643 // TODO(johnniwinther): This should not be a [ResolutionRegistry]. | 643 // TODO(johnniwinther): This should not be a [ResolutionRegistry]. |
| 644 final Registry mirrorDependencies = | 644 final Registry mirrorDependencies = |
| 645 new ResolutionRegistry.internal(null, new TreeElementMapping(null)); | 645 new ResolutionRegistry.internal(null, new TreeElementMapping(null)); |
| 646 | 646 |
| 647 final bool enableMinification; | 647 final bool enableMinification; |
| 648 |
| 649 /// When `true` emits URIs in the reflection metadata. |
| 650 final bool preserveUris; |
| 651 |
| 648 final bool enableTypeAssertions; | 652 final bool enableTypeAssertions; |
| 649 final bool enableUserAssertions; | 653 final bool enableUserAssertions; |
| 650 final bool trustTypeAnnotations; | 654 final bool trustTypeAnnotations; |
| 651 final bool enableConcreteTypeInference; | 655 final bool enableConcreteTypeInference; |
| 652 final bool disableTypeInferenceFlag; | 656 final bool disableTypeInferenceFlag; |
| 653 final bool dumpInfo; | 657 final bool dumpInfo; |
| 654 final bool useContentSecurityPolicy; | 658 final bool useContentSecurityPolicy; |
| 655 | 659 |
| 656 /** | 660 /** |
| 657 * The maximum size of a concrete type before it widens to dynamic during | 661 * The maximum size of a concrete type before it widens to dynamic during |
| (...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 927 /// Set by the backend if real reflection is detected in use of dart:mirrors. | 931 /// Set by the backend if real reflection is detected in use of dart:mirrors. |
| 928 bool disableTypeInferenceForMirrors = false; | 932 bool disableTypeInferenceForMirrors = false; |
| 929 | 933 |
| 930 Compiler({this.enableTypeAssertions: false, | 934 Compiler({this.enableTypeAssertions: false, |
| 931 this.enableUserAssertions: false, | 935 this.enableUserAssertions: false, |
| 932 this.trustTypeAnnotations: false, | 936 this.trustTypeAnnotations: false, |
| 933 this.enableConcreteTypeInference: false, | 937 this.enableConcreteTypeInference: false, |
| 934 bool disableTypeInferenceFlag: false, | 938 bool disableTypeInferenceFlag: false, |
| 935 this.maxConcreteTypeSize: 5, | 939 this.maxConcreteTypeSize: 5, |
| 936 this.enableMinification: false, | 940 this.enableMinification: false, |
| 941 this.preserveUris: false, |
| 937 this.enableNativeLiveTypeAnalysis: false, | 942 this.enableNativeLiveTypeAnalysis: false, |
| 938 bool emitJavaScript: true, | 943 bool emitJavaScript: true, |
| 939 bool dart2dartMultiFile: false, | 944 bool dart2dartMultiFile: false, |
| 940 bool generateSourceMap: true, | 945 bool generateSourceMap: true, |
| 941 bool analyzeAllFlag: false, | 946 bool analyzeAllFlag: false, |
| 942 bool analyzeOnly: false, | 947 bool analyzeOnly: false, |
| 943 this.analyzeMain: false, | 948 this.analyzeMain: false, |
| 944 bool analyzeSignaturesOnly: false, | 949 bool analyzeSignaturesOnly: false, |
| 945 this.preserveComments: false, | 950 this.preserveComments: false, |
| 946 this.verbose: false, | 951 this.verbose: false, |
| (...skipping 1211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2158 int warnings = 0; | 2163 int warnings = 0; |
| 2159 int hints = 0; | 2164 int hints = 0; |
| 2160 } | 2165 } |
| 2161 | 2166 |
| 2162 class GenericTask extends CompilerTask { | 2167 class GenericTask extends CompilerTask { |
| 2163 final String name; | 2168 final String name; |
| 2164 | 2169 |
| 2165 GenericTask(this.name, Compiler compiler) | 2170 GenericTask(this.name, Compiler compiler) |
| 2166 : super(compiler); | 2171 : super(compiler); |
| 2167 } | 2172 } |
| OLD | NEW |