| Index: src/objects.cc
|
| ===================================================================
|
| --- src/objects.cc (revision 10366)
|
| +++ src/objects.cc (working copy)
|
| @@ -6929,14 +6929,14 @@
|
| if (StringShape(this).IsSequentialAscii()) {
|
| field = HashSequentialString(SeqAsciiString::cast(this)->GetChars(),
|
| len,
|
| - GetHeap()->StringHashSeed());
|
| + GetHeap()->HashSeed());
|
| } else if (StringShape(this).IsSequentialTwoByte()) {
|
| field = HashSequentialString(SeqTwoByteString::cast(this)->GetChars(),
|
| len,
|
| - GetHeap()->StringHashSeed());
|
| + GetHeap()->HashSeed());
|
| } else {
|
| StringInputBuffer buffer(this);
|
| - field = ComputeHashField(&buffer, len, GetHeap()->StringHashSeed());
|
| + field = ComputeHashField(&buffer, len, GetHeap()->HashSeed());
|
| }
|
|
|
| // Store the hash code in the object.
|
| @@ -10718,7 +10718,7 @@
|
| uint32_t Hash() {
|
| ASSERT(length_ >= 0);
|
| ASSERT(from_ + length_ <= string_->length());
|
| - StringHasher hasher(length_, string_->GetHeap()->StringHashSeed());
|
| + StringHasher hasher(length_, string_->GetHeap()->HashSeed());
|
|
|
| // Very long strings have a trivial hash that doesn't inspect the
|
| // string contents.
|
| @@ -11636,7 +11636,7 @@
|
| bool SymbolTable::LookupTwoCharsSymbolIfExists(uint32_t c1,
|
| uint32_t c2,
|
| String** symbol) {
|
| - TwoCharHashTableKey key(c1, c2, GetHeap()->StringHashSeed());
|
| + TwoCharHashTableKey key(c1, c2, GetHeap()->HashSeed());
|
| int entry = FindEntry(&key);
|
| if (entry == kNotFound) {
|
| return false;
|
| @@ -11651,14 +11651,14 @@
|
|
|
| MaybeObject* SymbolTable::LookupSymbol(Vector<const char> str,
|
| Object** s) {
|
| - Utf8SymbolKey key(str, GetHeap()->StringHashSeed());
|
| + Utf8SymbolKey key(str, GetHeap()->HashSeed());
|
| return LookupKey(&key, s);
|
| }
|
|
|
|
|
| MaybeObject* SymbolTable::LookupAsciiSymbol(Vector<const char> str,
|
| Object** s) {
|
| - AsciiSymbolKey key(str, GetHeap()->StringHashSeed());
|
| + AsciiSymbolKey key(str, GetHeap()->HashSeed());
|
| return LookupKey(&key, s);
|
| }
|
|
|
| @@ -11667,14 +11667,14 @@
|
| int from,
|
| int length,
|
| Object** s) {
|
| - SubStringAsciiSymbolKey key(str, from, length, GetHeap()->StringHashSeed());
|
| + SubStringAsciiSymbolKey key(str, from, length, GetHeap()->HashSeed());
|
| return LookupKey(&key, s);
|
| }
|
|
|
|
|
| MaybeObject* SymbolTable::LookupTwoByteSymbol(Vector<const uc16> str,
|
| Object** s) {
|
| - TwoByteSymbolKey key(str, GetHeap()->StringHashSeed());
|
| + TwoByteSymbolKey key(str, GetHeap()->HashSeed());
|
| return LookupKey(&key, s);
|
| }
|
|
|
|
|