| Index: src/objects-inl.h
|
| diff --git a/src/objects-inl.h b/src/objects-inl.h
|
| index 9172257e6d8c884e5448605c4b7ee6ded30c698c..03aea64736d818f456c748f76a31d583593dc664 100644
|
| --- a/src/objects-inl.h
|
| +++ b/src/objects-inl.h
|
| @@ -6787,13 +6787,8 @@ uint32_t IteratingStringHasher::Hash(String* string, uint32_t seed) {
|
| // Nothing to do.
|
| if (hasher.has_trivial_hash()) return hasher.GetHashField();
|
| ConsString* cons_string = String::VisitFlat(&hasher, string);
|
| - // The string was flat.
|
| - if (cons_string == NULL) return hasher.GetHashField();
|
| - // This is a ConsString, iterate across it.
|
| - ConsStringIterator iter(cons_string);
|
| - int offset;
|
| - while (NULL != (string = iter.Next(&offset))) {
|
| - String::VisitFlat(&hasher, string, offset);
|
| + if (cons_string != nullptr) {
|
| + hasher.VisitConsString(cons_string);
|
| }
|
| return hasher.GetHashField();
|
| }
|
|
|