| 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; |
| 11 import '../common/resolution.dart' show ResolutionImpact; | 11 import '../common/resolution.dart' show ResolutionImpact; |
| 12 import '../compiler.dart' show Compiler; | |
| 13 import '../compile_time_constants.dart' | 12 import '../compile_time_constants.dart' |
| 14 show BackendConstantEnvironment, ConstantCompilerTask; | 13 show BackendConstantEnvironment, ConstantCompilerTask; |
| 14 import '../compiler.dart' show Compiler; |
| 15 import '../constants/constant_system.dart' show ConstantSystem; |
| 15 import '../constants/expressions.dart' show ConstantExpression; | 16 import '../constants/expressions.dart' show ConstantExpression; |
| 16 import '../constants/constant_system.dart' show ConstantSystem; | |
| 17 import '../constants/values.dart' show ConstantValue; | 17 import '../constants/values.dart' show ConstantValue; |
| 18 import '../dart_types.dart' show DartType, InterfaceType; | 18 import '../dart_types.dart' show DartType, InterfaceType; |
| 19 import '../elements/elements.dart' | 19 import '../elements/elements.dart' |
| 20 show | 20 show |
| 21 ClassElement, | 21 ClassElement, |
| 22 ConstructorElement, | |
| 23 Element, | 22 Element, |
| 24 FunctionElement, | 23 FunctionElement, |
| 25 LibraryElement, | 24 LibraryElement, |
| 26 MetadataAnnotation, | 25 MetadataAnnotation, |
| 27 MethodElement; | 26 MethodElement; |
| 28 import '../enqueue.dart' show Enqueuer, CodegenEnqueuer, ResolutionEnqueuer; | 27 import '../enqueue.dart' show Enqueuer, ResolutionEnqueuer; |
| 29 import '../io/code_output.dart' show CodeBuffer; | 28 import '../io/code_output.dart' show CodeBuffer; |
| 30 import '../io/source_information.dart' show SourceInformationStrategy; | 29 import '../io/source_information.dart' show SourceInformationStrategy; |
| 31 import '../js_backend/backend_helpers.dart' as js_backend show BackendHelpers; | 30 import '../js_backend/backend_helpers.dart' as js_backend show BackendHelpers; |
| 32 import '../js_backend/js_backend.dart' as js_backend show JavaScriptBackend; | 31 import '../js_backend/js_backend.dart' as js_backend; |
| 33 import '../library_loader.dart' show LibraryLoader, LoadedLibraries; | 32 import '../library_loader.dart' show LibraryLoader, LoadedLibraries; |
| 34 import '../native/native.dart' as native show NativeEnqueuer, maybeEnableNative; | 33 import '../native/native.dart' as native show NativeEnqueuer, maybeEnableNative; |
| 35 import '../patch_parser.dart' | 34 import '../patch_parser.dart' |
| 36 show checkNativeAnnotation, checkJsInteropAnnotation; | 35 show checkNativeAnnotation, checkJsInteropAnnotation; |
| 37 import '../resolution/tree_elements.dart' show TreeElements; | |
| 38 import '../serialization/serialization.dart' | 36 import '../serialization/serialization.dart' |
| 39 show DeserializerPlugin, ObjectDecoder, ObjectEncoder, SerializerPlugin; | 37 show DeserializerPlugin, SerializerPlugin; |
| 40 import '../tree/tree.dart' show Node, Send; | 38 import '../tree/tree.dart' show Node, Send; |
| 41 import '../universe/call_structure.dart' show CallStructure; | 39 import '../universe/call_structure.dart' show CallStructure; |
| 42 import '../universe/world_impact.dart' show ImpactStrategy, WorldImpact; | 40 import '../universe/world_impact.dart' show ImpactStrategy, WorldImpact; |
| 43 | |
| 44 import 'codegen.dart' show CodegenWorkItem; | 41 import 'codegen.dart' show CodegenWorkItem; |
| 45 import 'registry.dart' show Registry; | 42 import 'registry.dart' show Registry; |
| 46 import 'tasks.dart' show CompilerTask; | 43 import 'tasks.dart' show CompilerTask; |
| 47 import 'work.dart' show ItemCompilationContext; | 44 import 'work.dart' show ItemCompilationContext; |
| 48 | 45 |
| 49 abstract class Backend { | 46 abstract class Backend { |
| 50 final Compiler compiler; | 47 final Compiler compiler; |
| 51 | 48 |
| 52 Backend(this.compiler); | 49 Backend(this.compiler); |
| 53 | 50 |
| (...skipping 372 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 426 } | 423 } |
| 427 } | 424 } |
| 428 | 425 |
| 429 /// Interface for serialization of backend specific data. | 426 /// Interface for serialization of backend specific data. |
| 430 class BackendSerialization { | 427 class BackendSerialization { |
| 431 const BackendSerialization(); | 428 const BackendSerialization(); |
| 432 | 429 |
| 433 SerializerPlugin get serializer => const SerializerPlugin(); | 430 SerializerPlugin get serializer => const SerializerPlugin(); |
| 434 DeserializerPlugin get deserializer => const DeserializerPlugin(); | 431 DeserializerPlugin get deserializer => const DeserializerPlugin(); |
| 435 } | 432 } |
| OLD | NEW |