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

Unified Diff: lib/compiler/implementation/ssa/value_set.dart

Issue 11191078: Make hashCode a getter and not a method. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Update status file with co19 issue number. Created 8 years, 2 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: lib/compiler/implementation/ssa/value_set.dart
diff --git a/lib/compiler/implementation/ssa/value_set.dart b/lib/compiler/implementation/ssa/value_set.dart
index bb50d612479711266996077019ed3b8a1abeb6e6..06cadcaf5a211e92486459b12a4e915180ccf6c9 100644
--- a/lib/compiler/implementation/ssa/value_set.dart
+++ b/lib/compiler/implementation/ssa/value_set.dart
@@ -38,7 +38,7 @@ class ValueSet {
if (probe != null && probe.gvnEquals(instruction)) return probe;
// Look in the collisions list.
for (ValueSetNode node = collisions; node != null; node = node.next) {
- if (node.hashCode() == hashCode) {
+ if (node.hashCode == hashCode) {
HInstruction cached = node.value;
if (cached.gvnEquals(instruction)) return cached;
}
@@ -149,7 +149,7 @@ class ValueSet {
class ValueSetNode {
final HInstruction value;
final int hash;
- int hashCode() => hash;
+ int get hashCode => hash;
ValueSetNode next;
ValueSetNode(this.value, this.hash, this.next);
}

Powered by Google App Engine
This is Rietveld 408576698