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

Side by Side Diff: pkg/compiler/lib/src/common/backend_api.dart

Issue 1374243002: Remove Registry arguments from Enqueuer. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 2 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 unified diff | Download patch
« no previous file with comments | « no previous file | pkg/compiler/lib/src/common/codegen.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.backend_api; 5 library dart2js.backend_api;
6 6
7 import 'dart:async' show Future; 7 import 'dart:async' show Future;
8 8
9 import '../compiler.dart' show 9 import '../compiler.dart' show
10 Compiler; 10 Compiler;
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 Enqueuer enqueuer, 153 Enqueuer enqueuer,
154 Registry registry) {} 154 Registry registry) {}
155 155
156 /// Called to notify to the backend that a class is implemented by an 156 /// Called to notify to the backend that a class is implemented by an
157 /// instantiated class. 157 /// instantiated class.
158 void registerImplementedClass(ClassElement cls, 158 void registerImplementedClass(ClassElement cls,
159 Enqueuer enqueuer, 159 Enqueuer enqueuer,
160 Registry registry) {} 160 Registry registry) {}
161 161
162 /// Called to notify to the backend that an interface type has been 162 /// Called to notify to the backend that an interface type has been
163 /// instantiated. 163 /// instantiated.
sigurdm 2015/09/29 14:37:09 This comment is outdated cf. our offline discussio
Johnni Winther 2015/09/30 08:00:57 Done.
164 void registerInstantiatedType(InterfaceType type, Registry registry) {} 164 void registerInstantiatedType(InterfaceType type,
165 Enqueuer enqueuer,
166 Registry registry,
167 {bool mirrorUsage: false}) {
168 registry.registerDependency(type.element);
169 enqueuer.registerInstantiatedType(type, mirrorUsage: mirrorUsage);
170 }
165 171
166 /// Register an is check to the backend. 172 /// Register an is check to the backend.
167 void registerIsCheckForCodegen(DartType type, 173 void registerIsCheckForCodegen(DartType type,
168 Enqueuer enqueuer, 174 Enqueuer enqueuer,
169 Registry registry) {} 175 Registry registry) {}
170 176
171 /// Register a runtime type variable bound tests between [typeArgument] and 177 /// Register a runtime type variable bound tests between [typeArgument] and
172 /// [bound]. 178 /// [bound].
173 void registerTypeVariableBoundsSubtypeCheck(DartType typeArgument, 179 void registerTypeVariableBoundsSubtypeCheck(DartType typeArgument,
174 DartType bound) {} 180 DartType bound) {}
175 181
176 /** 182 /**
177 * Call this to register that an instantiated generic class has a call 183 * Call this to register that an instantiated generic class has a call
178 * method. 184 * method.
179 */ 185 */
180 void registerCallMethodWithFreeTypeVariables( 186 void registerCallMethodWithFreeTypeVariables(
181 Element callMethod, 187 Element callMethod,
182 Enqueuer enqueuer, 188 Enqueuer enqueuer,
183 Registry registry) {} 189 Registry registry) {}
184 190
185 /** 191 /**
186 * Call this to register that a getter exists for a function on an 192 * Call this to register that a getter exists for a function on an
187 * instantiated generic class. 193 * instantiated generic class.
188 */ 194 */
189 void registerClosureWithFreeTypeVariables( 195 void registerClosureWithFreeTypeVariables(
190 Element closure, 196 Element closure,
191 Enqueuer enqueuer, 197 Enqueuer enqueuer,
192 Registry registry) {} 198 Registry registry) {
199 enqueuer.universe.closuresWithFreeTypeVariables.add(closure);
200 }
193 201
194 /// Call this to register that a member has been closurized. 202 /// Call this to register that a member has been closurized.
195 void registerBoundClosure(Enqueuer enqueuer) {} 203 void registerBoundClosure(Enqueuer enqueuer) {}
196 204
197 /// Call this to register that a static function has been closurized. 205 /// Call this to register that a static function has been closurized.
198 void registerGetOfStaticFunction(Enqueuer enqueuer) {} 206 void registerGetOfStaticFunction(Enqueuer enqueuer) {}
199 207
200 /** 208 /**
201 * Call this to register that the [:runtimeType:] property has been accessed. 209 * Call this to register that the [:runtimeType:] property has been accessed.
202 */ 210 */
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
364 372
365 void forgetElement(Element element) {} 373 void forgetElement(Element element) {}
366 374
367 void registerMainHasArguments(Enqueuer enqueuer) {} 375 void registerMainHasArguments(Enqueuer enqueuer) {}
368 376
369 void registerAsyncMarker(FunctionElement element, 377 void registerAsyncMarker(FunctionElement element,
370 Enqueuer enqueuer, 378 Enqueuer enqueuer,
371 Registry registry) {} 379 Registry registry) {}
372 } 380 }
373 381
OLDNEW
« no previous file with comments | « no previous file | pkg/compiler/lib/src/common/codegen.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698