Changeset 26847 in webkit for trunk/JavaScriptCore/kjs/property_map.cpp
- Timestamp:
- Oct 21, 2007, 8:12:08 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/property_map.cpp
r26688 r26847 621 621 } 622 622 623 void PropertyMap::getSparseArrayPropertyNames(PropertyNameArray& propertyNames) const624 {625 if (!m_usingTable) {626 #if USE_SINGLE_ENTRY627 UString::Rep *key = m_singleEntryKey;628 if (key) {629 UString k(key);630 bool fitsInUInt32;631 k.toUInt32(&fitsInUInt32);632 if (fitsInUInt32)633 propertyNames.add(Identifier(key));634 }635 #endif636 return;637 }638 639 int size = m_u.table->size;640 Entry *entries = m_u.table->entries;641 for (int i = 0; i != size; ++i) {642 UString::Rep *key = entries[i].key;643 if (isValid(key)) {644 UString k(key);645 bool fitsInUInt32;646 k.toUInt32(&fitsInUInt32);647 if (fitsInUInt32)648 propertyNames.add(Identifier(key));649 }650 }651 }652 653 623 void PropertyMap::save(SavedProperties &p) const 654 624 {
Note:
See TracChangeset
for help on using the changeset viewer.