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.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 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
146 Element annotatedElement, | 146 Element annotatedElement, |
147 Registry registry) {} | 147 Registry registry) {} |
148 | 148 |
149 /// Called to notify to the backend that a class is being instantiated. | 149 /// Called to notify to the backend that a class is being instantiated. |
150 // TODO(johnniwinther): Remove this. It's only called once for each [cls] and | 150 // TODO(johnniwinther): Remove this. It's only called once for each [cls] and |
151 // only with [Compiler.globalDependencies] as [registry]. | 151 // only with [Compiler.globalDependencies] as [registry]. |
152 void registerInstantiatedClass(ClassElement cls, | 152 void registerInstantiatedClass(ClassElement cls, |
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 | |
157 /// instantiated class. | |
158 void registerImplementedClass(ClassElement cls, | |
159 Enqueuer enqueuer, | |
160 Registry registry) {} | |
161 | |
162 /// Called to notify to the backend that an interface type has been | 156 /// Called to notify to the backend that an interface type has been |
163 /// instantiated. | 157 /// instantiated. |
164 void registerInstantiatedType(InterfaceType type, Registry registry) {} | 158 void registerInstantiatedType(InterfaceType type, Registry registry) {} |
165 | 159 |
166 /// Register an is check to the backend. | 160 /// Register an is check to the backend. |
167 void registerIsCheckForCodegen(DartType type, | 161 void registerIsCheckForCodegen(DartType type, |
168 Enqueuer enqueuer, | 162 Enqueuer enqueuer, |
169 Registry registry) {} | 163 Registry registry) {} |
170 | 164 |
171 /// Register a runtime type variable bound tests between [typeArgument] and | 165 /// Register a runtime type variable bound tests between [typeArgument] and |
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
364 | 358 |
365 void forgetElement(Element element) {} | 359 void forgetElement(Element element) {} |
366 | 360 |
367 void registerMainHasArguments(Enqueuer enqueuer) {} | 361 void registerMainHasArguments(Enqueuer enqueuer) {} |
368 | 362 |
369 void registerAsyncMarker(FunctionElement element, | 363 void registerAsyncMarker(FunctionElement element, |
370 Enqueuer enqueuer, | 364 Enqueuer enqueuer, |
371 Registry registry) {} | 365 Registry registry) {} |
372 } | 366 } |
373 | 367 |
OLD | NEW |