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 948 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
959 disableTypeInferenceFlag || !emitJavaScript, | 959 disableTypeInferenceFlag || !emitJavaScript, |
960 this.analyzeOnly = | 960 this.analyzeOnly = |
961 analyzeOnly || analyzeSignaturesOnly || analyzeAllFlag, | 961 analyzeOnly || analyzeSignaturesOnly || analyzeAllFlag, |
962 this.analyzeSignaturesOnly = analyzeSignaturesOnly, | 962 this.analyzeSignaturesOnly = analyzeSignaturesOnly, |
963 this.analyzeAllFlag = analyzeAllFlag, | 963 this.analyzeAllFlag = analyzeAllFlag, |
964 this.hasIncrementalSupport = hasIncrementalSupport, | 964 this.hasIncrementalSupport = hasIncrementalSupport, |
965 cacheStrategy = new CacheStrategy(hasIncrementalSupport), | 965 cacheStrategy = new CacheStrategy(hasIncrementalSupport), |
966 this.outputProvider = (outputProvider == null) | 966 this.outputProvider = (outputProvider == null) |
967 ? NullSink.outputProvider | 967 ? NullSink.outputProvider |
968 : outputProvider { | 968 : outputProvider { |
| 969 if (hasIncrementalSupport) { |
| 970 // TODO(ahe): This is too much. Any method from platform and package |
| 971 // libraries can be inlined. |
| 972 disableInlining = true; |
| 973 } |
969 world = new World(this); | 974 world = new World(this); |
970 types = new Types(this); | 975 types = new Types(this); |
971 tracer = new Tracer(this, this.outputProvider); | 976 tracer = new Tracer(this, this.outputProvider); |
972 | 977 |
973 if (verbose) { | 978 if (verbose) { |
974 progress = new Stopwatch()..start(); | 979 progress = new Stopwatch()..start(); |
975 } | 980 } |
976 | 981 |
977 // TODO(johnniwinther): Separate the dependency tracking from the enqueueing | 982 // TODO(johnniwinther): Separate the dependency tracking from the enqueueing |
978 // for global dependencies. | 983 // for global dependencies. |
(...skipping 1174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2153 int warnings = 0; | 2158 int warnings = 0; |
2154 int hints = 0; | 2159 int hints = 0; |
2155 } | 2160 } |
2156 | 2161 |
2157 class GenericTask extends CompilerTask { | 2162 class GenericTask extends CompilerTask { |
2158 final String name; | 2163 final String name; |
2159 | 2164 |
2160 GenericTask(this.name, Compiler compiler) | 2165 GenericTask(this.name, Compiler compiler) |
2161 : super(compiler); | 2166 : super(compiler); |
2162 } | 2167 } |
OLD | NEW |