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

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

Issue 1436223002: Forget elements from resolution also. (Closed) Base URL: https://github.com/dart-lang/sdk.git@_temporary_fletch_patches
Patch Set: Created 5 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/common/resolution.dart ('k') | no next file » | 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 baecb6d4af4cb8e038b12c8bded5ace0244d38a7..68089a7f1aca6c438c665cc16528012d5c61cddc 100644
--- a/pkg/compiler/lib/src/compiler.dart
+++ b/pkg/compiler/lib/src/compiler.dart
@@ -1403,6 +1403,7 @@ abstract class Compiler {
}
void forgetElement(Element element) {
+ resolution.forgetElement(element);
enqueuer.forgetElement(element);
if (element is MemberElement) {
for (Element closure in element.nestedClosures) {
@@ -2010,6 +2011,11 @@ class _CompilerResolution implements Resolution {
bool hasBeenResolved(Element element) {
return _worldImpactCache.containsKey(element);
}
+
+ @override
+ void forgetElement(Element element) {
+ _worldImpactCache.remove(element);
+ }
}
// TODO(johnniwinther): Move [ParserTask], [PatchParserTask], [DietParserTask]
« no previous file with comments | « pkg/compiler/lib/src/common/resolution.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698