Index: src/objects.cc |
diff --git a/src/objects.cc b/src/objects.cc |
index e95ff10a4287445b8088d8fa865fa5c37ef49656..f585a469f9f8398fbfc152b4bf19357de909c2c7 100644 |
--- a/src/objects.cc |
+++ b/src/objects.cc |
@@ -15988,7 +15988,7 @@ Handle<Derived> OrderedHashTable<Derived, Iterator, entrysize>::Clear( |
table->GetHeap()->InNewSpace(*table) ? NOT_TENURED : TENURED); |
table->SetNextTable(*new_table); |
- table->SetNumberOfDeletedElements(-1); |
+ table->SetNumberOfDeletedElements(kClearedTableSentinel); |
return new_table; |
} |
@@ -16233,8 +16233,7 @@ void OrderedHashTableIterator<Derived, TableType>::Transition() { |
if (index > 0) { |
int nod = table->NumberOfDeletedElements(); |
- // When we clear the table we set the number of deleted elements to -1. |
- if (nod == -1) { |
+ if (nod == TableType::kClearedTableSentinel) { |
index = 0; |
} else { |
int old_index = index; |