Changeset 2846 in webkit for trunk/JavaScriptCore/kjs/property_map.cpp
- Timestamp:
- Nov 23, 2002, 11:49:26 PM (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/property_map.cpp
r2834 r2846 370 370 } 371 371 372 void PropertyMap::addSparseArrayPropertiesToReferenceList(ReferenceList &list, const Object &base) const 373 { 374 #if USE_SINGLE_ENTRY 375 UString::Rep *key = _singleEntry.key; 376 if (key) { 377 UString k(key); 378 bool fitsInUInt32; 379 k.toUInt32(&fitsInUInt32); 380 if (fitsInUInt32) { 381 list.append(Reference(base, Identifier(key))); 382 } 383 } 384 #endif 385 if (!_table) { 386 return; 387 } 388 389 for (int i = 0; i != _table->size; ++i) { 390 UString::Rep *key = _table->entries[i].key; 391 if (key) { 392 UString k(key); 393 bool fitsInUInt32; 394 k.toUInt32(&fitsInUInt32); 395 if (fitsInUInt32) { 396 list.append(Reference(base, Identifier(key))); 397 } 398 } 399 } 400 } 401 372 402 void PropertyMap::save(SavedProperties &p) const 373 403 {
Note:
See TracChangeset
for help on using the changeset viewer.