Lines Matching refs:hasher
5607 StringHasher hasher(length); in ComputeHashField() local
5611 if (hasher.has_trivial_hash()) { in ComputeHashField()
5612 return hasher.GetHashField(); in ComputeHashField()
5617 while (buffer->has_more() && hasher.is_array_index()) { in ComputeHashField()
5618 hasher.AddCharacter(buffer->GetNext()); in ComputeHashField()
5624 hasher.AddCharacterNoIndex(buffer->GetNext()); in ComputeHashField()
5627 return hasher.GetHashField(); in ComputeHashField()
8635 StringHasher hasher(string_.length()); in Hash() local
8639 if (hasher.has_trivial_hash()) { in Hash()
8640 hash_field_ = hasher.GetHashField(); in Hash()
8645 while (i < string_.length() && hasher.is_array_index()) { in Hash()
8646 hasher.AddCharacter(static_cast<uc32>(string_[i])); in Hash()
8653 hasher.AddCharacterNoIndex(static_cast<uc32>(string_[i])); in Hash()
8656 hash_field_ = hasher.GetHashField(); in Hash()
9383 StringHasher hasher(2); in TwoCharHashTableKey() local
9384 hasher.AddCharacter(c1); in TwoCharHashTableKey()
9385 hasher.AddCharacter(c2); in TwoCharHashTableKey()
9390 ASSERT_EQ(static_cast<int>(hasher.GetHash()), static_cast<int>(hash)); in TwoCharHashTableKey()