| Index: pkg/compiler/lib/src/compiler.dart
|
| diff --git a/pkg/compiler/lib/src/compiler.dart b/pkg/compiler/lib/src/compiler.dart
|
| index 9bfb7ebe917bbc29dac6a02814db96783e84a2f4..b96ec2a415ec1e7b529e206c15ca7788fca249b3 100644
|
| --- a/pkg/compiler/lib/src/compiler.dart
|
| +++ b/pkg/compiler/lib/src/compiler.dart
|
| @@ -34,6 +34,7 @@ import 'common/tasks.dart' show
|
| CompilerTask,
|
| GenericTask;
|
| import 'common/work.dart' show
|
| + ItemCompilationContext,
|
| WorkItem;
|
| import 'compile_time_constants.dart';
|
| import 'constants/values.dart';
|
| @@ -2141,6 +2142,7 @@ class _CompilerResolution implements Resolution {
|
|
|
| @override
|
| void uncacheWorldImpact(Element element) {
|
| + if (compiler.serialization.isDeserialized(element)) return;
|
| assert(invariant(element, _worldImpactCache[element] != null,
|
| message: "WorldImpact not computed for $element."));
|
| _worldImpactCache[element] = const WorldImpact();
|
| @@ -2157,6 +2159,17 @@ class _CompilerResolution implements Resolution {
|
| bool hasBeenResolved(Element element) {
|
| return _worldImpactCache.containsKey(element);
|
| }
|
| +
|
| + @override
|
| + ResolutionWorkItem createWorkItem(
|
| + Element element, ItemCompilationContext compilationContext) {
|
| + if (compiler.serialization.isDeserialized(element)) {
|
| + return compiler.serialization.createResolutionWorkItem(
|
| + element, compilationContext);
|
| + } else {
|
| + return new ResolutionWorkItem(element, compilationContext);
|
| + }
|
| + }
|
| }
|
|
|
| // TODO(johnniwinther): Move [ParserTask], [PatchParserTask], [DietParserTask]
|
|
|