| Index: src/objects.cc
|
| diff --git a/src/objects.cc b/src/objects.cc
|
| index 9aee6790ceec43e2606d2b65a6d3dd20b3d5ba4f..c0f15580dbc7b7efe56019a22b88fb7e35d0f061 100644
|
| --- a/src/objects.cc
|
| +++ b/src/objects.cc
|
| @@ -10925,7 +10925,7 @@ MaybeObject* HashTable<Shape, Key>::Rehash(HashTable* new_table, Key key) {
|
| uint32_t from_index = EntryToIndex(i);
|
| Object* k = get(from_index);
|
| if (IsKey(k)) {
|
| - uint32_t hash = Shape::HashForObject(key, k);
|
| + uint32_t hash = Shape::HashForObject(key, GetHeap()->StringHashSeed(), k);
|
| uint32_t insertion_index =
|
| EntryToIndex(new_table->FindInsertionEntry(hash));
|
| for (int j = 0; j < Shape::kEntrySize; j++) {
|
| @@ -12011,8 +12011,11 @@ MaybeObject* Dictionary<Shape, Key>::AtPut(Key key, Object* value) {
|
| if (!maybe_k->ToObject(&k)) return maybe_k;
|
| }
|
| PropertyDetails details = PropertyDetails(NONE, NORMAL);
|
| - return Dictionary<Shape, Key>::cast(obj)->
|
| - AddEntry(key, value, details, Shape::Hash(key));
|
| + return Dictionary<Shape, Key>::cast(obj)->AddEntry(
|
| + key,
|
| + value,
|
| + details,
|
| + Shape::Hash(key, Dictionary<Shape, Key>::GetHeap()->StringHashSeed()));
|
| }
|
|
|
|
|
| @@ -12027,8 +12030,11 @@ MaybeObject* Dictionary<Shape, Key>::Add(Key key,
|
| { MaybeObject* maybe_obj = EnsureCapacity(1, key);
|
| if (!maybe_obj->ToObject(&obj)) return maybe_obj;
|
| }
|
| - return Dictionary<Shape, Key>::cast(obj)->
|
| - AddEntry(key, value, details, Shape::Hash(key));
|
| + return Dictionary<Shape, Key>::cast(obj)->AddEntry(
|
| + key,
|
| + value,
|
| + details,
|
| + Shape::Hash(key, Dictionary<Shape, Key>::GetHeap()->StringHashSeed()));
|
| }
|
|
|
|
|
|
|