| Index: sdk/lib/_internal/compiler/implementation/enqueue.dart
|
| diff --git a/sdk/lib/_internal/compiler/implementation/enqueue.dart b/sdk/lib/_internal/compiler/implementation/enqueue.dart
|
| index 47150a055febcbc1177a5ad64f11e637e76a83cf..c700d5924fe2a0ed6950bdf43548d8307920e0ba 100644
|
| --- a/sdk/lib/_internal/compiler/implementation/enqueue.dart
|
| +++ b/sdk/lib/_internal/compiler/implementation/enqueue.dart
|
| @@ -85,8 +85,7 @@ abstract class Enqueuer {
|
| EnqueueTask task;
|
| native.NativeEnqueuer nativeEnqueuer; // Set by EnqueueTask
|
|
|
| - bool hasEnqueuedEverything = false;
|
| - bool hasEnqueuedReflectiveStaticFields = false;
|
| + bool hasEnqueuedReflectiveElements = false;
|
|
|
| Enqueuer(this.name, this.compiler, this.itemCompilationContextCreator);
|
|
|
| @@ -360,7 +359,7 @@ abstract class Enqueuer {
|
| }
|
|
|
| void enqueueEverything() {
|
| - if (hasEnqueuedEverything) return;
|
| + if (hasEnqueuedReflectiveElements) return;
|
| compiler.log('Enqueuing everything');
|
| task.ensureAllElementsByName();
|
| for (Link link in task.allElementsByName.values) {
|
| @@ -368,15 +367,14 @@ abstract class Enqueuer {
|
| pretendElementWasUsed(element, compiler.globalDependencies);
|
| }
|
| }
|
| - hasEnqueuedEverything = true;
|
| - hasEnqueuedReflectiveStaticFields = true;
|
| + hasEnqueuedReflectiveElements = true;
|
| }
|
|
|
| /// Enqueue the static fields that have been marked as used by reflective
|
| /// usage through `MirrorsUsed`.
|
| void enqueueReflectiveStaticFields(Iterable<Element> elements) {
|
| - if (hasEnqueuedReflectiveStaticFields) return;
|
| - hasEnqueuedReflectiveStaticFields = true;
|
| + if (hasEnqueuedReflectiveElements) return;
|
| + hasEnqueuedReflectiveElements = true;
|
| for (Element element in elements) {
|
| pretendElementWasUsed(element, compiler.globalDependencies);
|
| }
|
|
|