| Index: lib/compiler/implementation/enqueue.dart
|
| diff --git a/lib/compiler/implementation/enqueue.dart b/lib/compiler/implementation/enqueue.dart
|
| index 5877a37710d6d744c8ba98e7f44bea46fe0ff109..829dbdcf5f5996217437485ec26e41c003f606ac 100644
|
| --- a/lib/compiler/implementation/enqueue.dart
|
| +++ b/lib/compiler/implementation/enqueue.dart
|
| @@ -20,6 +20,7 @@ class EnqueueTask extends CompilerTask {
|
| class RecompilationQueue {
|
| final Queue<WorkItem> queue;
|
| final Set<Element> queueElements;
|
| + int processed = 0;
|
|
|
| RecompilationQueue()
|
| : queue = new Queue<WorkItem>(),
|
| @@ -41,6 +42,7 @@ class RecompilationQueue {
|
| WorkItem next() {
|
| WorkItem item = queue.removeLast();
|
| queueElements.remove(item.element);
|
| + processed++;
|
| return item;
|
| }
|
| }
|
| @@ -74,7 +76,7 @@ class Enqueuer {
|
|
|
| void addToWorkList(Element element, [TreeElements elements]) {
|
| if (element.isForeign()) return;
|
| - if (compiler.pass == 2) return;
|
| + if (compiler.phase == Compiler.PHASE_RECOMPILING) return;
|
| if (queueIsClosed) {
|
| if (isResolutionQueue && getCachedElements(element) !== null) return;
|
| compiler.internalErrorOnElement(element, "Work list is closed.");
|
|
|