Chromium Code Reviews| Index: pkg/compiler/lib/src/common/backend_api.dart |
| diff --git a/pkg/compiler/lib/src/common/backend_api.dart b/pkg/compiler/lib/src/common/backend_api.dart |
| index b095b230809e7c65cb78c1e79b78df1a36adc1e8..75a493d19c74ba6c626eba687cdd13f99afb6122 100644 |
| --- a/pkg/compiler/lib/src/common/backend_api.dart |
| +++ b/pkg/compiler/lib/src/common/backend_api.dart |
| @@ -161,7 +161,13 @@ abstract class Backend { |
| /// Called to notify to the backend that an interface type has been |
| /// 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.
|
| - void registerInstantiatedType(InterfaceType type, Registry registry) {} |
| + void registerInstantiatedType(InterfaceType type, |
| + Enqueuer enqueuer, |
| + Registry registry, |
| + {bool mirrorUsage: false}) { |
| + registry.registerDependency(type.element); |
| + enqueuer.registerInstantiatedType(type, mirrorUsage: mirrorUsage); |
| + } |
| /// Register an is check to the backend. |
| void registerIsCheckForCodegen(DartType type, |
| @@ -189,7 +195,9 @@ abstract class Backend { |
| void registerClosureWithFreeTypeVariables( |
| Element closure, |
| Enqueuer enqueuer, |
| - Registry registry) {} |
| + Registry registry) { |
| + enqueuer.universe.closuresWithFreeTypeVariables.add(closure); |
| + } |
| /// Call this to register that a member has been closurized. |
| void registerBoundClosure(Enqueuer enqueuer) {} |