Changeset 27678 in webkit for trunk/JavaScriptCore/kjs/property_map.cpp
- Timestamp:
- Nov 10, 2007, 5:07:00 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/property_map.cpp
r27637 r27678 427 427 // slot that we can use. We know it will be there because we did at least one 428 428 // deletion in the past that left an entry empty. 429 while (m_u.table->entries()[--entryIndex ].key)429 while (m_u.table->entries()[--entryIndex - 1].key) 430 430 ; 431 431 } … … 820 820 continue; 821 821 } 822 ASSERT(entryIndex > deletedSentinelIndex); 823 ASSERT(entryIndex - 1 <= m_u.table->keyCount + m_u.table->deletedSentinelCount); 822 824 ++indexCount; 823 825 824 826 for (unsigned b = a + 1; b != m_u.table->size; ++b) 825 827 ASSERT(m_u.table->entryIndicies[b] != entryIndex); 826 827 828 } 828 829 ASSERT(indexCount == m_u.table->keyCount); … … 831 832 ASSERT(m_u.table->entries()[0].key == 0); 832 833 833 unsigned entryCount = m_u.table->keyCount + m_u.table->deletedSentinelCount;834 834 unsigned nonEmptyEntryCount = 0; 835 for (unsigned c = 1; c <= entryCount; ++c) {835 for (unsigned c = 1; c <= m_u.table->keyCount + m_u.table->deletedSentinelCount; ++c) { 836 836 UString::Rep* rep = m_u.table->entries()[c].key; 837 837 if (!rep) {
Note:
See TracChangeset
for help on using the changeset viewer.