| 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 1352ceaf87e01300c5033dbec7cc80964f4d660e..ef07dab9116bf10cfbabec590d42f9ceec780165 100644
|
| --- a/dart/sdk/lib/_internal/compiler/implementation/enqueue.dart
|
| +++ b/dart/sdk/lib/_internal/compiler/implementation/enqueue.dart
|
| @@ -152,11 +152,7 @@ abstract class Enqueuer {
|
|
|
| void registerTypeLiteral(Element element, TreeElements elements) {
|
| registerInstantiatedClass(compiler.typeClass, elements);
|
| - compiler.backend.registerTypeLiteral(elements);
|
| - if (compiler.mirrorsEnabled) {
|
| - // In order to use reflectClass, we need to find the constructor.
|
| - registerInstantiatedClass(element, elements);
|
| - }
|
| + compiler.backend.registerTypeLiteral(element, elements);
|
| }
|
|
|
| bool checkNoEnqueuedInvokedInstanceMethods() {
|
| @@ -333,18 +329,7 @@ abstract class Enqueuer {
|
|
|
| /// Called when [:const Symbol(name):] is seen.
|
| void registerConstSymbol(String name, TreeElements elements) {
|
| - // If dart:mirrors is loaded, a const symbol may be used to call a
|
| - // static/top-level method or accessor, instantiate a class, call
|
| - // an instance method or accessor with the given name.
|
| - if (!compiler.mirrorsEnabled) return;
|
| -
|
| - task.ensureAllElementsByName();
|
| -
|
| - for (var link = task.allElementsByName[name];
|
| - link != null && !link.isEmpty;
|
| - link = link.tail) {
|
| - pretendElementWasUsed(link.head, elements);
|
| - }
|
| + compiler.backend.registerConstSymbol(name, elements);
|
| }
|
|
|
| void pretendElementWasUsed(Element element, TreeElements elements) {
|
| @@ -388,6 +373,7 @@ abstract class Enqueuer {
|
|
|
| /// Called when [:new Symbol(...):] is seen.
|
| void registerNewSymbol(TreeElements elements) {
|
| + compiler.backend.registerNewSymbol(elements);
|
| }
|
|
|
| void enqueueEverything() {
|
|
|