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

Unified Diff: compiler/java/com/google/dart/compiler/ast/DartClass.java

Issue 9148026: Recompile unit with potential conflict/dependency on some top-level symbol. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix for compiling corelib, so NPE in TreeShaker Created 8 years, 11 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: compiler/java/com/google/dart/compiler/ast/DartClass.java
diff --git a/compiler/java/com/google/dart/compiler/ast/DartClass.java b/compiler/java/com/google/dart/compiler/ast/DartClass.java
index 1143e648d14ff04cb01426ede46cb8eeaaeda558..a8045cd5f28faf9e8983591e28316fd4739cb437 100644
--- a/compiler/java/com/google/dart/compiler/ast/DartClass.java
+++ b/compiler/java/com/google/dart/compiler/ast/DartClass.java
@@ -27,8 +27,6 @@ public class DartClass extends DartDeclaration<DartIdentifier> implements HasSym
private DartParameterizedTypeNode defaultClass;
private final Modifiers modifiers;
- private int hash = -1;
-
// If the Dart class is implemented by a native JS class the nativeName
// points to the JS class. Otherwise it is null.
private final DartStringLiteral nativeName;
@@ -56,14 +54,6 @@ public class DartClass extends DartDeclaration<DartIdentifier> implements HasSym
Modifiers.NONE);
}
- /**
- * Set the diet-string hash code for the class
- * @param hash the hash code to set
- */
- void setHash(int hash) {
- this.hash = hash;
- }
-
public DartClass(DartIdentifier name, DartStringLiteral nativeName,
DartTypeNode superclass, List<DartTypeNode> interfaces,
List<DartNode> members,
@@ -215,15 +205,4 @@ public class DartClass extends DartDeclaration<DartIdentifier> implements HasSym
public <R> R accept(DartPlainVisitor<R> visitor) {
return visitor.visitClass(this);
}
-
- @Override
- public int computeHash() {
- // TODO(jgw): Remove this altogether in fixing b/5324113.
-
- // Cache hashes for DartClass, because they're always needed.
- if (this.hash == -1) {
- this.hash = super.computeHash();
- }
- return this.hash;
- }
}

Powered by Google App Engine
This is Rietveld 408576698