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

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

Issue 10956026: - Add definition of "int hashCode()" to Object. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 3 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
===================================================================
--- lib/compiler/implementation/ssa/value_set.dart (revision 12648)
+++ lib/compiler/implementation/ssa/value_set.dart (working copy)
@@ -38,7 +38,7 @@
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;
}
@@ -148,7 +148,8 @@
class ValueSetNode {
final HInstruction value;
- final int hashCode;
+ final int hash;
+ int hashCode() => hash;
ValueSetNode next;
- ValueSetNode(this.value, this.hashCode, this.next);
+ ValueSetNode(this.value, this.hash, this.next);
}

Powered by Google App Engine
This is Rietveld 408576698