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

Unified Diff: runtime/lib/string.cc

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: runtime/lib/string.cc
diff --git a/runtime/lib/string.cc b/runtime/lib/string.cc
index 41c3181ba654441feb3e7255655ebd422b1195fd..2d5bd9168d6fee8b62ec65feba20729426c2b4f3 100644
--- a/runtime/lib/string.cc
+++ b/runtime/lib/string.cc
@@ -62,7 +62,7 @@ DEFINE_NATIVE_ENTRY(StringBase_substringUnchecked, 3) {
}
-DEFINE_NATIVE_ENTRY(String_hashCode, 1) {
+DEFINE_NATIVE_ENTRY(String_getHashCode, 1) {
const String& receiver = String::CheckedHandle(arguments->At(0));
intptr_t hash_val = receiver.Hash();
ASSERT(hash_val > 0);

Powered by Google App Engine
This is Rietveld 408576698