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

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

Issue 21110003: Implement MirrorUsed.targets for libraries (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Merged with r25609 and added test. Created 7 years, 5 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
Index: dart/sdk/lib/_internal/compiler/implementation/enqueue.dart
diff --git a/dart/sdk/lib/_internal/compiler/implementation/enqueue.dart b/dart/sdk/lib/_internal/compiler/implementation/enqueue.dart
index 353897d8130ac169e99cca03f092d901759fc1b9..d6086f4ff2518b9d6ce6ae1728670e1e1b73407b 100644
--- a/dart/sdk/lib/_internal/compiler/implementation/enqueue.dart
+++ b/dart/sdk/lib/_internal/compiler/implementation/enqueue.dart
@@ -311,6 +311,7 @@ abstract class Enqueuer {
}
void pretendElementWasUsed(Element element, TreeElements elements) {
+ if (!compiler.backend.isNeededForReflection(element)) return;
if (Elements.isUnresolved(element)) {
// Ignore.
} else if (element.isSynthesized

Powered by Google App Engine
This is Rietveld 408576698