| 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 623 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 634 * Dependencies that are only included due to mirrors. | 634 * Dependencies that are only included due to mirrors. |
| 635 * | 635 * |
| 636 * We should get rid of this and ensure that all dependencies are | 636 * We should get rid of this and ensure that all dependencies are |
| 637 * associated with a particular element. | 637 * associated with a particular element. |
| 638 */ | 638 */ |
| 639 // TODO(johnniwinther): This should not be a [ResolutionRegistry]. | 639 // TODO(johnniwinther): This should not be a [ResolutionRegistry]. |
| 640 final Registry mirrorDependencies = | 640 final Registry mirrorDependencies = |
| 641 new ResolutionRegistry.internal(null, new TreeElementMapping(null)); | 641 new ResolutionRegistry.internal(null, new TreeElementMapping(null)); |
| 642 | 642 |
| 643 final bool enableMinification; | 643 final bool enableMinification; |
| 644 |
| 645 /// When `true` doesn't emit URIs in the reflection metadata. |
| 646 final bool hideUris; |
| 647 |
| 644 final bool enableTypeAssertions; | 648 final bool enableTypeAssertions; |
| 645 final bool enableUserAssertions; | 649 final bool enableUserAssertions; |
| 646 final bool trustTypeAnnotations; | 650 final bool trustTypeAnnotations; |
| 647 final bool enableConcreteTypeInference; | 651 final bool enableConcreteTypeInference; |
| 648 final bool disableTypeInferenceFlag; | 652 final bool disableTypeInferenceFlag; |
| 649 final bool dumpInfo; | 653 final bool dumpInfo; |
| 650 final bool useContentSecurityPolicy; | 654 final bool useContentSecurityPolicy; |
| 651 | 655 |
| 652 /** | 656 /** |
| 653 * The maximum size of a concrete type before it widens to dynamic during | 657 * 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... |
| 923 /// Set by the backend if real reflection is detected in use of dart:mirrors. | 927 /// Set by the backend if real reflection is detected in use of dart:mirrors. |
| 924 bool disableTypeInferenceForMirrors = false; | 928 bool disableTypeInferenceForMirrors = false; |
| 925 | 929 |
| 926 Compiler({this.enableTypeAssertions: false, | 930 Compiler({this.enableTypeAssertions: false, |
| 927 this.enableUserAssertions: false, | 931 this.enableUserAssertions: false, |
| 928 this.trustTypeAnnotations: false, | 932 this.trustTypeAnnotations: false, |
| 929 this.enableConcreteTypeInference: false, | 933 this.enableConcreteTypeInference: false, |
| 930 bool disableTypeInferenceFlag: false, | 934 bool disableTypeInferenceFlag: false, |
| 931 this.maxConcreteTypeSize: 5, | 935 this.maxConcreteTypeSize: 5, |
| 932 this.enableMinification: false, | 936 this.enableMinification: false, |
| 937 this.hideUris: false, |
| 933 this.enableNativeLiveTypeAnalysis: false, | 938 this.enableNativeLiveTypeAnalysis: false, |
| 934 bool emitJavaScript: true, | 939 bool emitJavaScript: true, |
| 935 bool dart2dartMultiFile: false, | 940 bool dart2dartMultiFile: false, |
| 936 bool generateSourceMap: true, | 941 bool generateSourceMap: true, |
| 937 bool analyzeAllFlag: false, | 942 bool analyzeAllFlag: false, |
| 938 bool analyzeOnly: false, | 943 bool analyzeOnly: false, |
| 939 this.analyzeMain: false, | 944 this.analyzeMain: false, |
| 940 bool analyzeSignaturesOnly: false, | 945 bool analyzeSignaturesOnly: false, |
| 941 this.preserveComments: false, | 946 this.preserveComments: false, |
| 942 this.verbose: false, | 947 this.verbose: false, |
| (...skipping 1183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2126 int warnings = 0; | 2131 int warnings = 0; |
| 2127 int hints = 0; | 2132 int hints = 0; |
| 2128 } | 2133 } |
| 2129 | 2134 |
| 2130 class GenericTask extends CompilerTask { | 2135 class GenericTask extends CompilerTask { |
| 2131 final String name; | 2136 final String name; |
| 2132 | 2137 |
| 2133 GenericTask(this.name, Compiler compiler) | 2138 GenericTask(this.name, Compiler compiler) |
| 2134 : super(compiler); | 2139 : super(compiler); |
| 2135 } | 2140 } |
| OLD | NEW |