| Index: src/objects.cc
|
| diff --git a/src/objects.cc b/src/objects.cc
|
| index c6d826218d0716b403f0c9a6bbbf6c315ba6d74d..f577d5e4d3ec4d9449ab1e5dd88e6a8963798980 100644
|
| --- a/src/objects.cc
|
| +++ b/src/objects.cc
|
| @@ -16501,16 +16501,6 @@ void HeapSortPairs(FixedArray* content, FixedArray* numbers, int len) {
|
| }
|
| }
|
| }
|
| - // Wipe deleted entries.
|
| - Heap* heap = GetHeap();
|
| - Object* the_hole = heap->the_hole_value();
|
| - Object* undefined = heap->undefined_value();
|
| - for (uint32_t current = 0; current < capacity; current++) {
|
| - if (get(EntryToIndex(current)) == the_hole) {
|
| - set(EntryToIndex(current), undefined);
|
| - }
|
| - }
|
| - SetNumberOfDeletedElements(0);
|
| }
|
|
|
|
|
| @@ -17359,6 +17349,16 @@ void HashTable<Derived, Shape, Key>::Rehash(Key key) {
|
| }
|
| }
|
| }
|
| + // Wipe deleted entries.
|
| + Heap* heap = GetHeap();
|
| + Object* the_hole = heap->the_hole_value();
|
| + Object* undefined = heap->undefined_value();
|
| + for (uint32_t current = 0; current < capacity; current++) {
|
| + if (get(EntryToIndex(current)) == the_hole) {
|
| + set(EntryToIndex(current), undefined);
|
| + }
|
| + }
|
| + SetNumberOfDeletedElements(0);
|
| }
|
|
|
|
|
|
|