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

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

Issue 1910473003: Remove invalidated elements from enqueuer and resolution. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Also remove element from _resolutionImpactCache. Created 4 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/common/resolution.dart ('k') | pkg/compiler/lib/src/enqueue.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/compiler.dart
diff --git a/pkg/compiler/lib/src/compiler.dart b/pkg/compiler/lib/src/compiler.dart
index bc7dfe0e3982787e6b721aac2a3806c6eb67e300..007f984337bc6dd69d0eec8325ff602d33fe20e6 100644
--- a/pkg/compiler/lib/src/compiler.dart
+++ b/pkg/compiler/lib/src/compiler.dart
@@ -1208,6 +1208,7 @@ abstract class Compiler implements LibraryLoaderListener {
}
void forgetElement(Element element) {
+ resolution.forgetElement(element);
enqueuer.forgetElement(element);
if (element is MemberElement) {
for (Element closure in element.nestedClosures) {
@@ -1976,6 +1977,12 @@ class _CompilerResolution implements Resolution {
return new ResolutionWorkItem(element, compilationContext);
}
}
+
+ @override
+ void forgetElement(Element element) {
+ _worldImpactCache.remove(element);
+ _resolutionImpactCache.remove(element);
+ }
}
class GlobalDependencyRegistry extends EagerRegistry {
« no previous file with comments | « pkg/compiler/lib/src/common/resolution.dart ('k') | pkg/compiler/lib/src/enqueue.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698