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

Unified Diff: dart/compiler/java/com/google/dart/compiler/resolver/DynamicElementImplementation.java

Issue 9390011: Don't cache subtypes in elements. It causes a memory leak in the Editor. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 10 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
Index: dart/compiler/java/com/google/dart/compiler/resolver/DynamicElementImplementation.java
diff --git a/dart/compiler/java/com/google/dart/compiler/resolver/DynamicElementImplementation.java b/dart/compiler/java/com/google/dart/compiler/resolver/DynamicElementImplementation.java
index fd2a9693bb56dd46610997d509f93b1ce1e393c4..971ff33e10df3cef13af2e667bff2dac30d963f4 100644
--- a/dart/compiler/java/com/google/dart/compiler/resolver/DynamicElementImplementation.java
+++ b/dart/compiler/java/com/google/dart/compiler/resolver/DynamicElementImplementation.java
@@ -20,8 +20,6 @@ import java.util.Set;
* Dummy element corresponding to {@link DynamicType}.
*/
class DynamicElementImplementation extends AbstractElement implements DynamicElement {
- private final Set<InterfaceType> subtypes =
- Collections.<InterfaceType>singleton(Types.newDynamicType());
private DynamicElementImplementation() {
super(null, "<dynamic>");
@@ -181,11 +179,6 @@ class DynamicElementImplementation extends AbstractElement implements DynamicEle
}
@Override
- public Set<InterfaceType> getSubtypes() {
- return subtypes;
- }
-
- @Override
public FunctionType getFunctionType() {
return null;
}

Powered by Google App Engine
This is Rietveld 408576698