Lines Matching defs:hash
33 int32_t hash = static_cast<int32_t>(running_hash & String::HashBits::kMax);
34 // Ensure that the hash is kZeroHash, if the computed value is 0.
35 int32_t mask = (hash - 1) >> 31;
42 // The hash of a large string is simply computed from the length.
46 uint32_t hash = static_cast<uint32_t>(length);
47 return String::CreateHashFieldValue(hash, String::HashFieldType::kHash);
62 // Possible array index; try to compute the array index hash.
81 // Perform a regular hash computation, and additionally check
94 uint32_t hash =
96 if (Name::ContainsCachedArrayIndex(hash)) {
97 // The hash accidentally looks like a cached index. Fix that by
100 hash |= (String::kMaxCachedArrayIndexLength + 1)
103 DCHECK(!Name::ContainsCachedArrayIndex(hash));
104 return hash;
115 // Non-index hash.