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

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

Issue 2531303002: Decouple WorkItem from Compiler (Closed)
Patch Set: Updated cf. comments. Created 4 years, 1 month 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/impact_serialization.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 5bfae8b0f77d798fb9f98ac2a003c3101ab80119..acad2240e73628ce645ffc3030d5049ddc78756b 100644
--- a/pkg/compiler/lib/src/serialization/task.dart
+++ b/pkg/compiler/lib/src/serialization/task.dart
@@ -138,17 +138,11 @@ class SerializationTask extends CompilerTask implements LibraryDeserializer {
class DeserializedResolutionWorkItem implements ResolutionWorkItem {
final Element element;
final WorldImpact worldImpact;
- bool _isAnalyzed = false;
DeserializedResolutionWorkItem(this.element, this.worldImpact);
@override
- bool get isAnalyzed => _isAnalyzed;
-
- @override
- WorldImpact run(Compiler compiler, ResolutionEnqueuer world) {
- _isAnalyzed = true;
- world.registerProcessedElement(element);
+ WorldImpact run() {
return worldImpact;
}
}
« no previous file with comments | « pkg/compiler/lib/src/serialization/impact_serialization.dart ('k') | pkg/compiler/lib/src/ssa/builder.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698