Chromium Code Reviews| 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 698 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 709 final bool showPackageWarnings; | 709 final bool showPackageWarnings; |
| 710 | 710 |
| 711 /// `true` if the last diagnostic was filtered, in which case the | 711 /// `true` if the last diagnostic was filtered, in which case the |
| 712 /// accompanying info message should be filtered as well. | 712 /// accompanying info message should be filtered as well. |
| 713 bool lastDiagnosticWasFiltered = false; | 713 bool lastDiagnosticWasFiltered = false; |
| 714 | 714 |
| 715 /// Map containing information about the warnings and hints that have been | 715 /// Map containing information about the warnings and hints that have been |
| 716 /// suppressed for each library. | 716 /// suppressed for each library. |
| 717 Map<Uri, SuppressionInfo> suppressedWarnings = <Uri, SuppressionInfo>{}; | 717 Map<Uri, SuppressionInfo> suppressedWarnings = <Uri, SuppressionInfo>{}; |
| 718 | 718 |
| 719 static const bool USE_CPS_IR = const bool.fromEnvironment("USE_CPS_IR"); | |
|
floitsch
2014/11/12 11:03:19
Just move it to js_backend/backend.dart unless you
sigurdm
2014/11/13 08:29:41
Done.
| |
| 720 | |
| 719 final bool suppressWarnings; | 721 final bool suppressWarnings; |
| 720 | 722 |
| 721 /// `true` if async/await features are supported. | 723 /// `true` if async/await features are supported. |
| 722 final bool enableAsyncAwait; | 724 final bool enableAsyncAwait; |
| 723 | 725 |
| 724 /// If `true`, some values are cached for reuse in incremental compilation. | 726 /// If `true`, some values are cached for reuse in incremental compilation. |
| 725 /// Incremental compilation is basically calling [run] more than once. | 727 /// Incremental compilation is basically calling [run] more than once. |
| 726 final bool hasIncrementalSupport; | 728 final bool hasIncrementalSupport; |
| 727 | 729 |
| 728 api.CompilerOutputProvider outputProvider; | 730 api.CompilerOutputProvider outputProvider; |
| (...skipping 1446 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2175 int warnings = 0; | 2177 int warnings = 0; |
| 2176 int hints = 0; | 2178 int hints = 0; |
| 2177 } | 2179 } |
| 2178 | 2180 |
| 2179 class GenericTask extends CompilerTask { | 2181 class GenericTask extends CompilerTask { |
| 2180 final String name; | 2182 final String name; |
| 2181 | 2183 |
| 2182 GenericTask(this.name, Compiler compiler) | 2184 GenericTask(this.name, Compiler compiler) |
| 2183 : super(compiler); | 2185 : super(compiler); |
| 2184 } | 2186 } |
| OLD | NEW |