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

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

Issue 2302363003: No longer store the compilation-context in WorkItem. (Closed)
Patch Set: ... lint Created 4 years, 3 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/js_backend/enqueuer.dart ('k') | pkg/compiler/lib/src/ssa/builder.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 9f319db39dd63efc7256a09f95a587b3ce71a652..5bfae8b0f77d798fb9f98ac2a003c3101ab80119 100644
--- a/pkg/compiler/lib/src/serialization/task.dart
+++ b/pkg/compiler/lib/src/serialization/task.dart
@@ -8,7 +8,6 @@ import 'dart:async' show EventSink, Future;
import '../common/resolution.dart' show ResolutionImpact, ResolutionWorkItem;
import '../common/tasks.dart' show CompilerTask;
-import '../common/work.dart' show ItemCompilationContext;
import '../compiler.dart' show Compiler;
import '../elements/elements.dart';
import '../enqueue.dart' show ResolutionEnqueuer;
@@ -71,12 +70,11 @@ class SerializationTask extends CompilerTask implements LibraryDeserializer {
}
/// Creates the [ResolutionWorkItem] for the deserialized [element].
- ResolutionWorkItem createResolutionWorkItem(
- Element element, ItemCompilationContext context) {
+ ResolutionWorkItem createResolutionWorkItem(Element element) {
assert(deserializer != null);
assert(isDeserialized(element));
return new DeserializedResolutionWorkItem(
- element, context, deserializer.computeWorldImpact(element));
+ element, deserializer.computeWorldImpact(element));
}
bool hasResolvedAst(ExecutableElement element) {
@@ -139,12 +137,10 @@ class SerializationTask extends CompilerTask implements LibraryDeserializer {
/// This will not resolve the element but only compute the [WorldImpact].
class DeserializedResolutionWorkItem implements ResolutionWorkItem {
final Element element;
- final ItemCompilationContext compilationContext;
final WorldImpact worldImpact;
bool _isAnalyzed = false;
- DeserializedResolutionWorkItem(
- this.element, this.compilationContext, this.worldImpact);
+ DeserializedResolutionWorkItem(this.element, this.worldImpact);
@override
bool get isAnalyzed => _isAnalyzed;
« no previous file with comments | « pkg/compiler/lib/src/js_backend/enqueuer.dart ('k') | pkg/compiler/lib/src/ssa/builder.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698