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

Side by Side Diff: pkg/compiler/lib/src/enqueue.dart

Issue 1416253002: Remove requiredTypes (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Updated cf. comments. Created 5 years, 1 month 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 unified diff | Download patch
« no previous file with comments | « pkg/compiler/lib/src/deferred_load.dart ('k') | pkg/compiler/lib/src/js_backend/backend.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/deferred_load.dart ('k') | pkg/compiler/lib/src/js_backend/backend.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698