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

Unified Diff: dart/pkg/compiler/lib/src/enqueue.dart

Issue 740273003: Incremental compiler: support optional arguments. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Merged with r42234. Created 6 years 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 | « no previous file | dart/pkg/compiler/lib/src/js_backend/backend.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/pkg/compiler/lib/src/enqueue.dart
diff --git a/dart/pkg/compiler/lib/src/enqueue.dart b/dart/pkg/compiler/lib/src/enqueue.dart
index fb8c2cf4de33360c1b681b1dc058716d8f147fc8..c2638b43a5d7c4614ad18ad30d4e461e8a36882c 100644
--- a/dart/pkg/compiler/lib/src/enqueue.dart
+++ b/dart/pkg/compiler/lib/src/enqueue.dart
@@ -812,10 +812,13 @@ class CodegenEnqueuer extends Enqueuer {
final Set<Element> newlyEnqueuedElements;
+ final Set<Selector> newlySeenSelectors;
+
CodegenEnqueuer(Compiler compiler,
ItemCompilationContext itemCompilationContextCreator())
: queue = new Queue<CodegenWorkItem>(),
newlyEnqueuedElements = compiler.cacheStrategy.newSet(),
+ newlySeenSelectors = compiler.cacheStrategy.newSet(),
super('codegen enqueuer', compiler, itemCompilationContextCreator);
bool isProcessed(Element member) =>
@@ -875,6 +878,13 @@ class CodegenEnqueuer extends Enqueuer {
}
}
}
+
+ void handleUnseenSelector(String methodName, Selector selector) {
+ if (compiler.hasIncrementalSupport) {
+ newlySeenSelectors.add(selector);
+ }
+ super.handleUnseenSelector(methodName, selector);
+ }
}
/// Parameterizes filtering of which work items are enqueued.
« no previous file with comments | « no previous file | dart/pkg/compiler/lib/src/js_backend/backend.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698