| 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 '../common.dart'; | 9 import '../common.dart'; |
| 10 import '../common/codegen.dart' show CodegenImpact; | 10 import '../common/codegen.dart' show CodegenImpact; |
| (...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 146 /** | 146 /** |
| 147 * Call this to register that an instantiated generic class has a call | 147 * Call this to register that an instantiated generic class has a call |
| 148 * method. | 148 * method. |
| 149 */ | 149 */ |
| 150 void registerCallMethodWithFreeTypeVariables( | 150 void registerCallMethodWithFreeTypeVariables( |
| 151 Element callMethod, Enqueuer enqueuer, Registry registry) {} | 151 Element callMethod, Enqueuer enqueuer, Registry registry) {} |
| 152 | 152 |
| 153 /// Called to instruct the backend to register that a closure exists for a | 153 /// Called to instruct the backend to register that a closure exists for a |
| 154 /// function on an instantiated generic class. | 154 /// function on an instantiated generic class. |
| 155 void registerClosureWithFreeTypeVariables( | 155 void registerClosureWithFreeTypeVariables( |
| 156 Element closure, Enqueuer enqueuer, Registry registry) { | 156 Element closure, Enqueuer enqueuer, Registry registry) {} |
| 157 enqueuer.universe.closuresWithFreeTypeVariables.add(closure); | |
| 158 } | |
| 159 | 157 |
| 160 /// Call this to register that a member has been closurized. | 158 /// Call this to register that a member has been closurized. |
| 161 void registerBoundClosure(Enqueuer enqueuer) {} | 159 void registerBoundClosure(Enqueuer enqueuer) {} |
| 162 | 160 |
| 163 /// Call this to register that a static function has been closurized. | 161 /// Call this to register that a static function has been closurized. |
| 164 void registerGetOfStaticFunction(Enqueuer enqueuer) {} | 162 void registerGetOfStaticFunction(Enqueuer enqueuer) {} |
| 165 | 163 |
| 166 /** | 164 /** |
| 167 * Call this to register that the [:runtimeType:] property has been accessed. | 165 * Call this to register that the [:runtimeType:] property has been accessed. |
| 168 */ | 166 */ |
| (...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 404 } | 402 } |
| 405 } | 403 } |
| 406 | 404 |
| 407 /// Interface for serialization of backend specific data. | 405 /// Interface for serialization of backend specific data. |
| 408 class BackendSerialization { | 406 class BackendSerialization { |
| 409 const BackendSerialization(); | 407 const BackendSerialization(); |
| 410 | 408 |
| 411 SerializerPlugin get serializer => const SerializerPlugin(); | 409 SerializerPlugin get serializer => const SerializerPlugin(); |
| 412 DeserializerPlugin get deserializer => const DeserializerPlugin(); | 410 DeserializerPlugin get deserializer => const DeserializerPlugin(); |
| 413 } | 411 } |
| OLD | NEW |