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

Unified Diff: runtime/lib/identical_patch.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/double.dart ('k') | runtime/lib/integers.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/lib/identical_patch.dart
diff --git a/runtime/lib/identical_patch.dart b/runtime/lib/identical_patch.dart
index b7f8f188cd71316aef1c2a8b02823c5c983f7b91..172478f57c4106be1294a9d131d02b76f0f119e6 100644
--- a/runtime/lib/identical_patch.dart
+++ b/runtime/lib/identical_patch.dart
@@ -3,3 +3,5 @@
// BSD-style license that can be found in the LICENSE file.
patch bool identical(Object a, Object b) native "Identical_comparison";
+
+patch int identityHashCode(Object object) => object._identityHashCode;
« no previous file with comments | « runtime/lib/double.dart ('k') | runtime/lib/integers.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698