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

Unified Diff: pkg/compiler/lib/src/js_backend/backend.dart

Issue 2296723003: Handle html+mirrors (Closed)
Patch Set: Created 4 years, 4 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 | « no previous file | tests/compiler/dart2js/serialization/compilation_test_helper.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/js_backend/backend.dart
diff --git a/pkg/compiler/lib/src/js_backend/backend.dart b/pkg/compiler/lib/src/js_backend/backend.dart
index 5b9b6bd5697bbce1168110936430ad3a48ee39a1..d88b33ae4059127f944cc2279228159d9dffa303 100644
--- a/pkg/compiler/lib/src/js_backend/backend.dart
+++ b/pkg/compiler/lib/src/js_backend/backend.dart
@@ -2344,9 +2344,15 @@ class JavaScriptBackend extends Backend {
/// Called when [enqueuer] is empty, but before it is closed.
bool onQueueEmpty(Enqueuer enqueuer, Iterable<ClassElement> recentClasses) {
- // Add elements referenced only via custom elements. Return early if any
- // elements are added to avoid counting the elements as due to mirrors.
- customElementsAnalysis.onQueueEmpty(enqueuer);
+ if (!compiler.options.resolveOnly) {
+ // TODO(johnniwinther): The custom element analysis eagerly enqueues
+ // elements on the codegen queue. Change to compute the data needed
+ // instead.
+
+ // Add elements referenced only via custom elements. Return early if any
+ // elements are added to avoid counting the elements as due to mirrors.
+ customElementsAnalysis.onQueueEmpty(enqueuer);
+ }
if (!enqueuer.queueIsEmpty) return false;
noSuchMethodRegistry.onQueueEmpty();
« no previous file with comments | « no previous file | tests/compiler/dart2js/serialization/compilation_test_helper.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698