| 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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 ItemCompilationContext; | 48 ItemCompilationContext; |
| 49 | 49 |
| 50 abstract class Backend { | 50 abstract class Backend { |
| 51 final Compiler compiler; | 51 final Compiler compiler; |
| 52 | 52 |
| 53 Backend(this.compiler); | 53 Backend(this.compiler); |
| 54 | 54 |
| 55 /// Returns true if the backend supports reflection. | 55 /// Returns true if the backend supports reflection. |
| 56 bool get supportsReflection; | 56 bool get supportsReflection; |
| 57 | 57 |
| 58 /// Returns true if the backend supports reflection. |
| 59 bool get supportsAsyncAwait; |
| 60 |
| 58 /// The [ConstantSystem] used to interpret compile-time constants for this | 61 /// The [ConstantSystem] used to interpret compile-time constants for this |
| 59 /// backend. | 62 /// backend. |
| 60 ConstantSystem get constantSystem; | 63 ConstantSystem get constantSystem; |
| 61 | 64 |
| 62 /// The constant environment for the backend interpretation of compile-time | 65 /// The constant environment for the backend interpretation of compile-time |
| 63 /// constants. | 66 /// constants. |
| 64 BackendConstantEnvironment get constants; | 67 BackendConstantEnvironment get constants; |
| 65 | 68 |
| 66 /// The compiler task responsible for the compilation of constants for both | 69 /// The compiler task responsible for the compilation of constants for both |
| 67 /// the frontend and the backend. | 70 /// the frontend and the backend. |
| (...skipping 366 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 434 } | 437 } |
| 435 } | 438 } |
| 436 | 439 |
| 437 /// Interface for serialization of backend specific data. | 440 /// Interface for serialization of backend specific data. |
| 438 class BackendSerialization { | 441 class BackendSerialization { |
| 439 const BackendSerialization(); | 442 const BackendSerialization(); |
| 440 | 443 |
| 441 SerializerPlugin get serializer => const SerializerPlugin(); | 444 SerializerPlugin get serializer => const SerializerPlugin(); |
| 442 DeserializerPlugin get deserializer => const DeserializerPlugin(); | 445 DeserializerPlugin get deserializer => const DeserializerPlugin(); |
| 443 } | 446 } |
| OLD | NEW |