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

Unified Diff: runtime/lib/integers.dart

Issue 24280003: Add Object.hashCodeOf to get the default hashCode of an object. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Now top-level and called identityHashCode Created 7 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
« no previous file with comments | « runtime/lib/identical_patch.dart ('k') | runtime/lib/null_patch.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/lib/integers.dart
diff --git a/runtime/lib/integers.dart b/runtime/lib/integers.dart
index aa2267efc0a9be8ad733fc28ff7e569242e77d53..cec9518d5c1c9c0caec0f9536f2499b28dbc9389 100644
--- a/runtime/lib/integers.dart
+++ b/runtime/lib/integers.dart
@@ -222,7 +222,7 @@ class _Smi extends _IntegerImplementation implements int {
throw new UnsupportedError(
"_Smi can only be allocated by the VM");
}
- int get hashCode {
+ int get _identityHashCode {
return this;
}
int operator ~() native "Smi_bitNegate";
@@ -271,7 +271,7 @@ class _Mint extends _IntegerImplementation implements int {
throw new UnsupportedError(
"_Mint can only be allocated by the VM");
}
- int get hashCode {
+ int get _identityHashCode {
return this;
}
int operator ~() native "Mint_bitNegate";
@@ -295,7 +295,7 @@ class _Bigint extends _IntegerImplementation implements int {
throw new UnsupportedError(
"_Bigint can only be allocated by the VM");
}
- int get hashCode {
+ int get _identityHashCode {
return this;
}
int operator ~() native "Bigint_bitNegate";
« no previous file with comments | « runtime/lib/identical_patch.dart ('k') | runtime/lib/null_patch.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698