| 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 295 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 306 } | 306 } |
| 307 | 307 |
| 308 /// Called after the queue is closed. [onQueueEmpty] may be called multiple | 308 /// Called after the queue is closed. [onQueueEmpty] may be called multiple |
| 309 /// times, but [onQueueClosed] is only called once. | 309 /// times, but [onQueueClosed] is only called once. |
| 310 void onQueueClosed() {} | 310 void onQueueClosed() {} |
| 311 | 311 |
| 312 /// Called when the compiler starts running the codegen enqueuer. The | 312 /// Called when the compiler starts running the codegen enqueuer. The |
| 313 /// [WorldImpact] of enabled backend features is returned. | 313 /// [WorldImpact] of enabled backend features is returned. |
| 314 WorldImpact onCodegenStart(ClosedWorld closedWorld) => const WorldImpact(); | 314 WorldImpact onCodegenStart(ClosedWorld closedWorld) => const WorldImpact(); |
| 315 | 315 |
| 316 /// Called when code generation has been completed. |
| 317 void onCodegenEnd() {} |
| 318 |
| 316 // Does this element belong in the output | 319 // Does this element belong in the output |
| 317 bool shouldOutput(Element element) => true; | 320 bool shouldOutput(Element element) => true; |
| 318 | 321 |
| 319 FunctionElement helperForBadMain() => null; | 322 FunctionElement helperForBadMain() => null; |
| 320 | 323 |
| 321 FunctionElement helperForMissingMain() => null; | 324 FunctionElement helperForMissingMain() => null; |
| 322 | 325 |
| 323 FunctionElement helperForMainArity() => null; | 326 FunctionElement helperForMainArity() => null; |
| 324 | 327 |
| 325 void forgetElement(Element element) {} | 328 void forgetElement(Element element) {} |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 416 ClassElement get asyncFutureImplementation; | 419 ClassElement get asyncFutureImplementation; |
| 417 ClassElement get asyncStarStreamImplementation; | 420 ClassElement get asyncStarStreamImplementation; |
| 418 ClassElement get indexableImplementation; | 421 ClassElement get indexableImplementation; |
| 419 ClassElement get mutableIndexableImplementation; | 422 ClassElement get mutableIndexableImplementation; |
| 420 ClassElement get indexingBehaviorImplementation; | 423 ClassElement get indexingBehaviorImplementation; |
| 421 | 424 |
| 422 bool isDefaultEqualityImplementation(Element element); | 425 bool isDefaultEqualityImplementation(Element element); |
| 423 bool isInterceptorClass(ClassElement cls); | 426 bool isInterceptorClass(ClassElement cls); |
| 424 bool isNative(Element element); | 427 bool isNative(Element element); |
| 425 } | 428 } |
| OLD | NEW |