| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 library dart2js.enqueue; | 5 library dart2js.enqueue; |
| 6 | 6 |
| 7 import 'dart:collection' show | 7 import 'dart:collection' show |
| 8 Queue; | 8 Queue; |
| 9 | 9 |
| 10 import 'common.dart'; | 10 import 'common.dart'; |
| (...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 164 worldImpact.dynamicInvocations.forEach(registerDynamicInvocation); | 164 worldImpact.dynamicInvocations.forEach(registerDynamicInvocation); |
| 165 worldImpact.dynamicGetters.forEach(registerDynamicGetter); | 165 worldImpact.dynamicGetters.forEach(registerDynamicGetter); |
| 166 worldImpact.dynamicSetters.forEach(registerDynamicSetter); | 166 worldImpact.dynamicSetters.forEach(registerDynamicSetter); |
| 167 worldImpact.staticUses.forEach(registerStaticUse); | 167 worldImpact.staticUses.forEach(registerStaticUse); |
| 168 worldImpact.instantiatedTypes.forEach(registerInstantiatedType); | 168 worldImpact.instantiatedTypes.forEach(registerInstantiatedType); |
| 169 worldImpact.isChecks.forEach(registerIsCheck); | 169 worldImpact.isChecks.forEach(registerIsCheck); |
| 170 worldImpact.asCasts.forEach(registerIsCheck); | 170 worldImpact.asCasts.forEach(registerIsCheck); |
| 171 if (compiler.enableTypeAssertions) { | 171 if (compiler.enableTypeAssertions) { |
| 172 worldImpact.checkedModeChecks.forEach(registerIsCheck); | 172 worldImpact.checkedModeChecks.forEach(registerIsCheck); |
| 173 } | 173 } |
| 174 worldImpact.onCatchTypes.forEach(registerIsCheck); |
| 174 worldImpact.closurizedFunctions.forEach(registerGetOfStaticFunction); | 175 worldImpact.closurizedFunctions.forEach(registerGetOfStaticFunction); |
| 175 worldImpact.closures.forEach(registerClosure); | 176 worldImpact.closures.forEach(registerClosure); |
| 176 } | 177 } |
| 177 | 178 |
| 178 // TODO(johnniwinther): Remove the need for passing the [registry]. | 179 // TODO(johnniwinther): Remove the need for passing the [registry]. |
| 179 void registerInstantiatedType(InterfaceType type, | 180 void registerInstantiatedType(InterfaceType type, |
| 180 {bool mirrorUsage: false}) { | 181 {bool mirrorUsage: false}) { |
| 181 task.measure(() { | 182 task.measure(() { |
| 182 ClassElement cls = type.element; | 183 ClassElement cls = type.element; |
| 183 cls.ensureResolved(resolution); | 184 cls.ensureResolved(resolution); |
| (...skipping 868 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1052 @override | 1053 @override |
| 1053 void processStaticUse(Enqueuer enqueuer, Element element) { | 1054 void processStaticUse(Enqueuer enqueuer, Element element) { |
| 1054 enqueuer.registerStaticUseInternal(element); | 1055 enqueuer.registerStaticUseInternal(element); |
| 1055 } | 1056 } |
| 1056 | 1057 |
| 1057 @override | 1058 @override |
| 1058 void processSelector(Enqueuer enqueuer, UniverseSelector selector) { | 1059 void processSelector(Enqueuer enqueuer, UniverseSelector selector) { |
| 1059 enqueuer.handleUnseenSelectorInternal(selector); | 1060 enqueuer.handleUnseenSelectorInternal(selector); |
| 1060 } | 1061 } |
| 1061 } | 1062 } |
| OLD | NEW |