Changeset 27711 in webkit for trunk/JavaScriptCore/kjs
- Timestamp:
- Nov 12, 2007, 12:00:29 AM (18 years ago)
- Location:
- trunk/JavaScriptCore/kjs
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/array_instance.cpp
r27448 r27711 76 76 m_length = initialLength; 77 77 m_vectorLength = initialCapacity; 78 m_storage = static_cast<ArrayStorage*>(fast Calloc(storageSize(initialCapacity), 1));78 m_storage = static_cast<ArrayStorage*>(fastZeroedMalloc(storageSize(initialCapacity))); 79 79 80 80 Collector::reportExtraMemoryCost(initialCapacity * sizeof(JSValue*)); -
trunk/JavaScriptCore/kjs/property_map.cpp
r27678 r27711 510 510 #endif 511 511 512 m_u.table = static_cast<Table*>(fast Calloc(1,Table::allocationSize(newTableSize)));512 m_u.table = static_cast<Table*>(fastZeroedMalloc(Table::allocationSize(newTableSize))); 513 513 m_u.table->size = newTableSize; 514 514 m_u.table->sizeMask = newTableSize - 1; … … 535 535 Table* oldTable = m_u.table; 536 536 537 m_u.table = static_cast<Table*>(fast Calloc(1,Table::allocationSize(newTableSize)));537 m_u.table = static_cast<Table*>(fastZeroedMalloc(Table::allocationSize(newTableSize))); 538 538 m_u.table->size = newTableSize; 539 539 m_u.table->sizeMask = newTableSize - 1;
Note:
See TracChangeset
for help on using the changeset viewer.