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

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

Issue 2034973003: Handle deferred access of unserialized code. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: dartfmt Created 4 years, 7 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/serialization/modelz.dart ('k') | pkg/compiler/lib/src/serialization/task.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/serialization/system.dart
diff --git a/pkg/compiler/lib/src/serialization/system.dart b/pkg/compiler/lib/src/serialization/system.dart
index 315b15814de46f900443526d8202b3a96693fad4..22ac66b5c247472a4daaa0d68e19768ad2e256be 100644
--- a/pkg/compiler/lib/src/serialization/system.dart
+++ b/pkg/compiler/lib/src/serialization/system.dart
@@ -28,17 +28,15 @@ import 'task.dart';
class DeserializerSystemImpl extends DeserializerSystem {
final Compiler _compiler;
+ final Resolution resolution;
final DeserializationContext deserializationContext;
final List<LibraryElement> deserializedLibraries = <LibraryElement>[];
final ResolutionImpactDeserializer _resolutionImpactDeserializer;
final ResolvedAstDeserializerPlugin _resolvedAstDeserializer;
- final ImpactTransformer _impactTransformer;
- factory DeserializerSystemImpl(
- Compiler compiler, ImpactTransformer impactTransformer) {
- DeserializationContext context =
- new DeserializationContext(
- compiler.reporter, compiler.resolution, compiler.libraryLoader);
+ factory DeserializerSystemImpl(Compiler compiler) {
+ DeserializationContext context = new DeserializationContext(
+ compiler.reporter, compiler.resolution, compiler.libraryLoader);
DeserializerPlugin backendDeserializer =
compiler.backend.serialization.deserializer;
context.plugins.add(backendDeserializer);
@@ -49,14 +47,14 @@ class DeserializerSystemImpl extends DeserializerSystem {
new ResolvedAstDeserializerPlugin(
compiler.parsingContext, backendDeserializer);
context.plugins.add(resolvedAstDeserializer);
- return new DeserializerSystemImpl._(compiler, context, impactTransformer,
+ return new DeserializerSystemImpl._(compiler, compiler.resolution, context,
resolutionImpactDeserializer, resolvedAstDeserializer);
}
DeserializerSystemImpl._(
this._compiler,
+ this.resolution,
this.deserializationContext,
- this._impactTransformer,
this._resolutionImpactDeserializer,
this._resolvedAstDeserializer);
@@ -142,7 +140,7 @@ class DeserializerSystemImpl extends DeserializerSystem {
}
}
}
- return _impactTransformer.transformResolutionImpact(resolutionImpact);
+ return resolution.transformResolutionImpact(element, resolutionImpact);
}
@override
@@ -204,7 +202,6 @@ class ResolutionImpactDeserializer extends DeserializerPlugin {
}
return null;
});
-
}
}
« no previous file with comments | « pkg/compiler/lib/src/serialization/modelz.dart ('k') | pkg/compiler/lib/src/serialization/task.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698