Changeset 36325 in webkit for trunk/JavaScriptCore/kjs/PropertyMap.cpp
- Timestamp:
- Sep 10, 2008, 7:42:18 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/PropertyMap.cpp
r36314 r36325 429 429 m_table->sizeMask = newTableSize - 1; 430 430 431 propertyStorage.set(new JSValue*[m_table->size]);432 433 431 checkConsistency(propertyStorage); 434 432 } … … 441 439 442 440 Table* oldTable = m_table; 443 JSValue** oldPropertStorage = propertyStorage .release();441 JSValue** oldPropertStorage = propertyStorage; 444 442 445 443 m_table = static_cast<Table*>(fastZeroedMalloc(Table::allocationSize(newTableSize))); … … 447 445 m_table->sizeMask = newTableSize - 1; 448 446 449 propertyStorage .set(new JSValue*[m_table->size]);447 propertyStorage = new JSValue*[m_table->size]; 450 448 451 449 unsigned lastIndexUsed = 0; … … 461 459 fastFree(oldTable); 462 460 delete [] oldPropertStorage; 463 464 checkConsistency(propertyStorage);465 }466 467 void PropertyMap::resizePropertyStorage(PropertyStorage& propertyStorage, unsigned oldSize)468 {469 ASSERT(m_table);470 471 if (propertyStorage) {472 JSValue** oldPropertStorage = propertyStorage.release();473 propertyStorage.set(new JSValue*[m_table->size]);474 475 // FIXME: this can probalby use memcpy476 for (unsigned i = 0; i < oldSize; ++i)477 propertyStorage[i] = oldPropertStorage[i];478 479 delete [] oldPropertStorage;480 } else481 propertyStorage.set(new JSValue*[m_table->size]);482 461 483 462 checkConsistency(propertyStorage);
Note:
See TracChangeset
for help on using the changeset viewer.