| Index: sdk/lib/_internal/compiler/implementation/types/simple_types_inferrer.dart
|
| ===================================================================
|
| --- sdk/lib/_internal/compiler/implementation/types/simple_types_inferrer.dart (revision 23797)
|
| +++ sdk/lib/_internal/compiler/implementation/types/simple_types_inferrer.dart (working copy)
|
| @@ -342,6 +342,7 @@
|
| buildWorkQueue();
|
| int analyzed = 0;
|
| compiler.progress.reset();
|
| + int maxReanalysis = (numberOfElementsToAnalyze * 1.5).toInt();
|
| do {
|
| if (compiler.progress.elapsedMilliseconds > 500) {
|
| compiler.log('Inferred $analyzed methods.');
|
| @@ -353,7 +354,7 @@
|
| bool wasAnalyzed = analyzeCount.containsKey(element);
|
| if (wasAnalyzed) {
|
| recompiles++;
|
| - if (recompiles >= numberOfElementsToAnalyze) {
|
| + if (recompiles >= maxReanalysis) {
|
| compiler.log('Ran out of budget for inferring.');
|
| break;
|
| }
|
|
|