Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(14)

Unified Diff: pkg/compiler/lib/src/serialization/task.dart

Issue 2797443008: Reapply "Add "load from .dill" file capability and run a white-box test."" (Closed)
Patch Set: take two Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/compiler/lib/src/options.dart ('k') | pkg/compiler/tool/perf.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/serialization/task.dart
diff --git a/pkg/compiler/lib/src/serialization/task.dart b/pkg/compiler/lib/src/serialization/task.dart
index 6df97636dbbf9aeafc6f6e769a483ac6ed4ba3f2..d052e4e2b3e3b8ff48615b9b7d72e7f5660dd262 100644
--- a/pkg/compiler/lib/src/serialization/task.dart
+++ b/pkg/compiler/lib/src/serialization/task.dart
@@ -11,6 +11,7 @@ import '../common/resolution.dart' show ResolutionImpact, ResolutionWorkItem;
import '../common/tasks.dart' show CompilerTask;
import '../compiler.dart' show Compiler;
import '../elements/elements.dart';
+import '../elements/entities.dart' show Entity;
import '../universe/world_impact.dart' show WorldImpact;
import 'json_serializer.dart';
import 'serialization.dart';
@@ -24,7 +25,7 @@ abstract class LibraryDeserializer {
Future<LibraryElement> readLibrary(Uri uri);
/// Returns `true` if [element] has been deserialized.
- bool isDeserialized(Element element);
+ bool isDeserialized(Entity element);
}
/// Task that supports deserialization of elements.
@@ -58,7 +59,7 @@ class SerializationTask extends CompilerTask implements LibraryDeserializer {
}
/// Returns `true` if [element] has been deserialized.
- bool isDeserialized(Element element) {
+ bool isDeserialized(Entity element) {
return deserializer != null && deserializer.isDeserialized(element);
}
@@ -153,7 +154,7 @@ class DeserializedResolutionWorkItem implements ResolutionWorkItem {
/// elements.
abstract class DeserializerSystem {
Future<LibraryElement> readLibrary(Uri resolvedUri);
- bool isDeserialized(Element element);
+ bool isDeserialized(Entity element);
bool hasResolvedAst(ExecutableElement element);
ResolvedAst getResolvedAst(ExecutableElement element);
bool hasResolutionImpact(Element element);
« no previous file with comments | « pkg/compiler/lib/src/options.dart ('k') | pkg/compiler/tool/perf.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698