| OLD | NEW |
| 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, 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.serialization.task; | 5 library dart2js.serialization.task; |
| 6 | 6 |
| 7 import '../dart2jslib.dart'; | 7 import '../dart2jslib.dart'; |
| 8 import '../elements/elements.dart'; | 8 import '../elements/elements.dart'; |
| 9 import '../enqueue.dart' show |
| 10 ResolutionEnqueuer, |
| 11 WorldImpact; |
| 9 | 12 |
| 10 /// Task that supports deserialization of elements. | 13 /// Task that supports deserialization of elements. |
| 11 class SerializationTask extends CompilerTask { | 14 class SerializationTask extends CompilerTask { |
| 12 SerializationTask(Compiler compiler) : super(compiler); | 15 SerializationTask(Compiler compiler) : super(compiler); |
| 13 | 16 |
| 14 DeserializerSystem deserializer; | 17 DeserializerSystem deserializer; |
| 15 | 18 |
| 16 String get name => 'Serialization'; | 19 String get name => 'Serialization'; |
| 17 | 20 |
| 18 /// Returns the [LibraryElement] for [resolvedUri] if available from | 21 /// Returns the [LibraryElement] for [resolvedUri] if available from |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 } | 63 } |
| 61 } | 64 } |
| 62 | 65 |
| 63 /// The interface for a system that supports deserialization of libraries and | 66 /// The interface for a system that supports deserialization of libraries and |
| 64 /// elements. | 67 /// elements. |
| 65 abstract class DeserializerSystem { | 68 abstract class DeserializerSystem { |
| 66 LibraryElement readLibrary(Uri resolvedUri); | 69 LibraryElement readLibrary(Uri resolvedUri); |
| 67 bool isDeserialized(Element element); | 70 bool isDeserialized(Element element); |
| 68 WorldImpact computeWorldImpact(Element element); | 71 WorldImpact computeWorldImpact(Element element); |
| 69 } | 72 } |
| OLD | NEW |