Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(779)

Unified Diff: lib/compiler/implementation/enqueue.dart

Issue 10532158: Some cleanup of recompilation (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fixed "Closure" Created 8 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « lib/compiler/implementation/compiler.dart ('k') | lib/compiler/implementation/ssa/optimize.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.");
« no previous file with comments | « lib/compiler/implementation/compiler.dart ('k') | lib/compiler/implementation/ssa/optimize.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698