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

Unified Diff: dart/site/try/poi/poi.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
Index: dart/site/try/poi/poi.dart
diff --git a/dart/site/try/poi/poi.dart b/dart/site/try/poi/poi.dart
index 5a8900e9a56148bb0adf0fa9188b8f164b48ae21..b8f530cb057fa26ddbf250f0f657305ce545942c 100644
--- a/dart/site/try/poi/poi.dart
+++ b/dart/site/try/poi/poi.dart
@@ -538,12 +538,16 @@ class ScriptOnlyFilter implements QueueFilter {
bool checkNoEnqueuedInvokedInstanceMethods(Enqueuer enqueuer) => true;
void processWorkItem(void f(WorkItem work), WorkItem work) {
- if (work.element.library.canonicalUri == script) {
- f(work);
- printWallClock('Processed ${work.element}.');
- } else {
- printWallClock('Skipped ${work.element}.');
+ if (work.element.library.canonicalUri != script) {
+ // TODO(ahe): Rather nasty hack to work around another nasty hack in
+ // backend.dart. Find better solution.
+ if (work.element.name != 'closureFromTearOff') {
+ printWallClock('Skipped ${work.element}.');
+ return;
+ }
}
+ f(work);
+ printWallClock('Processed ${work.element}.');
}
}
« no previous file with comments | « dart/sdk/lib/_internal/compiler/js_lib/js_helper.dart ('k') | dart/tests/try/web/incremental_compilation_update_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698