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

Unified Diff: runtime/vm/object.h

Issue 442483002: Avoid redundant allocation of accessor names. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 4 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 | « no previous file | runtime/vm/object.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/object.h
===================================================================
--- runtime/vm/object.h (revision 38859)
+++ runtime/vm/object.h (working copy)
@@ -5402,6 +5402,9 @@
return result;
}
+ // Returns the hash of str1 + str2.
+ static intptr_t HashConcat(const String& str1, const String& str2);
+
virtual RawObject* HashCode() const { return Integer::New(Hash()); }
int32_t CharAt(intptr_t index) const;
@@ -5429,6 +5432,9 @@
// Compares to an array of UTF-32 encoded characters.
bool Equals(const int32_t* characters, intptr_t len) const;
+ // True iff this string equals str1 + str2.
+ bool EqualsConcat(const String& str1, const String& str2) const;
+
virtual bool OperatorEquals(const Instance& other) const {
return Equals(other);
}
@@ -5627,6 +5633,7 @@
friend class Symbols;
friend class StringSlice; // SetHash
template<typename CharType> friend class CharArray; // SetHash
+ friend class ConcatString; // SetHash
friend class OneByteString;
friend class TwoByteString;
friend class ExternalOneByteString;
@@ -5761,6 +5768,7 @@
friend class String;
friend class ExternalOneByteString;
friend class SnapshotReader;
+ friend class StringHasher;
};
« no previous file with comments | « no previous file | runtime/vm/object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698