Ignore:
Timestamp:
Sep 4, 2008, 1:00:04 AM (17 years ago)
Author:
[email protected]
Message:

2008-09-04 Cameron Zwarich <[email protected]>

Rubber-stamped by Oliver Hunt.

Correct the spelling of 'entryIndices'.

  • kjs/PropertyMap.cpp: (KJS::PropertyMap::get): (KJS::PropertyMap::getLocation): (KJS::PropertyMap::put): (KJS::PropertyMap::insert): (KJS::PropertyMap::remove): (KJS::PropertyMap::checkConsistency):
  • kjs/PropertyMap.h: (KJS::PropertyMapHashTable::entries): (KJS::PropertyMap::getOffset): (KJS::PropertyMap::putOffset): (KJS::PropertyMap::offsetForTableLocation):
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/kjs/PropertyMap.cpp

    r36032 r36083  
    129129#endif
    130130
    131     unsigned entryIndex = m_u.table->entryIndicies[i & m_u.table->sizeMask];
     131    unsigned entryIndex = m_u.table->entryIndices[i & m_u.table->sizeMask];
    132132    if (entryIndex == emptyEntryIndex)
    133133        return 0;
     
    151151#endif
    152152
    153         entryIndex = m_u.table->entryIndicies[i & m_u.table->sizeMask];
     153        entryIndex = m_u.table->entryIndices[i & m_u.table->sizeMask];
    154154        if (entryIndex == emptyEntryIndex)
    155155            return 0;
     
    182182#endif
    183183
    184     unsigned entryIndex = m_u.table->entryIndicies[i & m_u.table->sizeMask];
     184    unsigned entryIndex = m_u.table->entryIndices[i & m_u.table->sizeMask];
    185185    if (entryIndex == emptyEntryIndex)
    186186        return 0;
     
    202202#endif
    203203
    204         entryIndex = m_u.table->entryIndicies[i & m_u.table->sizeMask];
     204        entryIndex = m_u.table->entryIndices[i & m_u.table->sizeMask];
    205205        if (entryIndex == emptyEntryIndex)
    206206            return 0;
     
    231231#endif
    232232
    233     unsigned entryIndex = m_u.table->entryIndicies[i & m_u.table->sizeMask];
     233    unsigned entryIndex = m_u.table->entryIndices[i & m_u.table->sizeMask];
    234234    if (entryIndex == emptyEntryIndex)
    235235        return 0;
     
    251251#endif
    252252
    253         entryIndex = m_u.table->entryIndicies[i & m_u.table->sizeMask];
     253        entryIndex = m_u.table->entryIndices[i & m_u.table->sizeMask];
    254254        if (entryIndex == emptyEntryIndex)
    255255            return 0;
     
    282282#endif
    283283
    284     unsigned entryIndex = m_u.table->entryIndicies[i & m_u.table->sizeMask];
     284    unsigned entryIndex = m_u.table->entryIndices[i & m_u.table->sizeMask];
    285285    if (entryIndex == emptyEntryIndex)
    286286        return 0;
     
    304304#endif
    305305
    306         entryIndex = m_u.table->entryIndicies[i & m_u.table->sizeMask];
     306        entryIndex = m_u.table->entryIndices[i & m_u.table->sizeMask];
    307307        if (entryIndex == emptyEntryIndex)
    308308            return 0;
     
    357357
    358358    while (1) {
    359         unsigned entryIndex = m_u.table->entryIndicies[i & m_u.table->sizeMask];
     359        unsigned entryIndex = m_u.table->entryIndices[i & m_u.table->sizeMask];
    360360        if (entryIndex == emptyEntryIndex)
    361361            break;
     
    405405
    406406    // Create a new hash table entry.
    407     m_u.table->entryIndicies[i & m_u.table->sizeMask] = entryIndex;
     407    m_u.table->entryIndices[i & m_u.table->sizeMask] = entryIndex;
    408408
    409409    // Create a new hash table entry.
     
    434434
    435435    while (1) {
    436         unsigned entryIndex = m_u.table->entryIndicies[i & m_u.table->sizeMask];
     436        unsigned entryIndex = m_u.table->entryIndices[i & m_u.table->sizeMask];
    437437        if (entryIndex == emptyEntryIndex)
    438438            break;
     
    453453
    454454    unsigned entryIndex = m_u.table->keyCount + 2;
    455     m_u.table->entryIndicies[i & m_u.table->sizeMask] = entryIndex;
     455    m_u.table->entryIndices[i & m_u.table->sizeMask] = entryIndex;
    456456    m_u.table->entries()[entryIndex - 1] = entry;
    457457    ++m_u.table->keyCount;
     
    560560    UString::Rep* key = 0;
    561561    while (1) {
    562         entryIndex = m_u.table->entryIndicies[i & m_u.table->sizeMask];
     562        entryIndex = m_u.table->entryIndices[i & m_u.table->sizeMask];
    563563        if (entryIndex == emptyEntryIndex)
    564564            return;
     
    584584    // Replace this one element with the deleted sentinel. Also clear out
    585585    // the entry so we can iterate all the entries as needed.
    586     m_u.table->entryIndicies[i & m_u.table->sizeMask] = deletedSentinelIndex;
     586    m_u.table->entryIndices[i & m_u.table->sizeMask] = deletedSentinelIndex;
    587587    key->deref();
    588588    m_u.table->entries()[entryIndex - 1].key = 0;
     
    705705    unsigned deletedIndexCount = 0;
    706706    for (unsigned a = 0; a != m_u.table->size; ++a) {
    707         unsigned entryIndex = m_u.table->entryIndicies[a];
     707        unsigned entryIndex = m_u.table->entryIndices[a];
    708708        if (entryIndex == emptyEntryIndex)
    709709            continue;
     
    717717
    718718        for (unsigned b = a + 1; b != m_u.table->size; ++b)
    719             ASSERT(m_u.table->entryIndicies[b] != entryIndex);
     719            ASSERT(m_u.table->entryIndices[b] != entryIndex);
    720720    }
    721721    ASSERT(indexCount == m_u.table->keyCount);
     
    736736        unsigned entryIndex;
    737737        while (1) {
    738             entryIndex = m_u.table->entryIndicies[i & m_u.table->sizeMask];
     738            entryIndex = m_u.table->entryIndices[i & m_u.table->sizeMask];
    739739            ASSERT(entryIndex != emptyEntryIndex);
    740740            if (rep == m_u.table->entries()[entryIndex - 1].key)
Note: See TracChangeset for help on using the changeset viewer.