| 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 306361621ea9934a2652ce67f9f111d2b02b1fac..d7af0cb49b4a058eea3457e55e3586777b28ff56 100644
|
| --- a/pkg/compiler/lib/src/common/backend_api.dart
|
| +++ b/pkg/compiler/lib/src/common/backend_api.dart
|
| @@ -55,6 +55,11 @@ import '../patch_parser.dart' show
|
| checkNativeAnnotation, checkJsInteropAnnotation;
|
| import '../resolution/tree_elements.dart' show
|
| TreeElements;
|
| +import '../serialization/serialization.dart' show
|
| + DeserializerPlugin,
|
| + ObjectDecoder,
|
| + ObjectEncoder,
|
| + SerializerPlugin;
|
| import '../tree/tree.dart' show
|
| Node,
|
| Send;
|
| @@ -102,6 +107,9 @@ abstract class Backend {
|
| return const SourceInformationStrategy();
|
| }
|
|
|
| + /// Interface for serialization of backend specific data.
|
| + BackendSerialization get serialization => const BackendSerialization();
|
| +
|
| // TODO(johnniwinther): Move this to the JavaScriptBackend.
|
| String get patchVersion => null;
|
|
|
| @@ -430,7 +438,8 @@ abstract class Backend {
|
| /// Creates an impact strategy to use for compilation.
|
| ImpactStrategy createImpactStrategy(
|
| {bool supportDeferredLoad: true,
|
| - bool supportDumpInfo: true}) {
|
| + bool supportDumpInfo: true,
|
| + bool supportSerialization: true}) {
|
| return const ImpactStrategy();
|
| }
|
| }
|
| @@ -462,3 +471,11 @@ class ImpactTransformer {
|
| return worldImpact;
|
| }
|
| }
|
| +
|
| +/// Interface for serialization of backend specific data.
|
| +class BackendSerialization {
|
| + const BackendSerialization();
|
| +
|
| + SerializerPlugin get serializer => const SerializerPlugin();
|
| + DeserializerPlugin get deserializer => const DeserializerPlugin();
|
| +}
|
|
|