| 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 296 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 307 /// [recentClasses], but every class seen by the [enqueuer] will be present in | 307 /// [recentClasses], but every class seen by the [enqueuer] will be present in |
| 308 /// [recentClasses] at least once. | 308 /// [recentClasses] at least once. |
| 309 bool onQueueEmpty(Enqueuer enqueuer, Iterable<ClassEntity> recentClasses) { | 309 bool onQueueEmpty(Enqueuer enqueuer, Iterable<ClassEntity> recentClasses) { |
| 310 return true; | 310 return true; |
| 311 } | 311 } |
| 312 | 312 |
| 313 /// Called after the queue is closed. [onQueueEmpty] may be called multiple | 313 /// Called after the queue is closed. [onQueueEmpty] may be called multiple |
| 314 /// times, but [onQueueClosed] is only called once. | 314 /// times, but [onQueueClosed] is only called once. |
| 315 void onQueueClosed() {} | 315 void onQueueClosed() {} |
| 316 | 316 |
| 317 /// Called when the compiler starts running the codegen enqueuer. | 317 /// Called when the compiler starts running the codegen enqueuer. The |
| 318 void onCodegenStart() {} | 318 /// [WorldImpact] of enabled backend features is returned. |
| 319 WorldImpact onCodegenStart() => const WorldImpact(); |
| 319 | 320 |
| 320 // Does this element belong in the output | 321 // Does this element belong in the output |
| 321 bool shouldOutput(Element element) => true; | 322 bool shouldOutput(Element element) => true; |
| 322 | 323 |
| 323 FunctionElement helperForBadMain() => null; | 324 FunctionElement helperForBadMain() => null; |
| 324 | 325 |
| 325 FunctionElement helperForMissingMain() => null; | 326 FunctionElement helperForMissingMain() => null; |
| 326 | 327 |
| 327 FunctionElement helperForMainArity() => null; | 328 FunctionElement helperForMainArity() => null; |
| 328 | 329 |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 412 ClassElement get typeImplementation; | 413 ClassElement get typeImplementation; |
| 413 ClassElement get boolImplementation; | 414 ClassElement get boolImplementation; |
| 414 ClassElement get nullImplementation; | 415 ClassElement get nullImplementation; |
| 415 ClassElement get uint32Implementation; | 416 ClassElement get uint32Implementation; |
| 416 ClassElement get uint31Implementation; | 417 ClassElement get uint31Implementation; |
| 417 ClassElement get positiveIntImplementation; | 418 ClassElement get positiveIntImplementation; |
| 418 ClassElement get syncStarIterableImplementation; | 419 ClassElement get syncStarIterableImplementation; |
| 419 ClassElement get asyncFutureImplementation; | 420 ClassElement get asyncFutureImplementation; |
| 420 ClassElement get asyncStarStreamImplementation; | 421 ClassElement get asyncStarStreamImplementation; |
| 421 } | 422 } |
| OLD | NEW |