Changeset 65311 in webkit for trunk/JavaScriptCore/runtime
- Timestamp:
- Aug 13, 2010, 3:14:36 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/runtime/JSArray.cpp
r65305 r65311 442 442 } 443 443 444 m_storage = reinterpret_cast <ArrayStorage*>(static_cast<char*>(baseStorage) + m_indexBias * sizeof(JSValue));444 m_storage = reinterpret_cast_ptr<ArrayStorage*>(static_cast<char*>(baseStorage) + m_indexBias * sizeof(JSValue)); 445 445 m_storage->m_allocBase = baseStorage; 446 446 storage = m_storage; … … 592 592 return false; 593 593 594 storage = m_storage = reinterpret_cast <ArrayStorage*>(static_cast<char*>(baseStorage) + m_indexBias * sizeof(JSValue));594 storage = m_storage = reinterpret_cast_ptr<ArrayStorage*>(static_cast<char*>(baseStorage) + m_indexBias * sizeof(JSValue)); 595 595 m_storage->m_allocBase = baseStorage; 596 596 … … 624 624 m_indexBias += newVectorLength - newLength; 625 625 626 m_storage = reinterpret_cast <ArrayStorage*>(static_cast<char*>(newBaseStorage) + m_indexBias * sizeof(JSValue));626 m_storage = reinterpret_cast_ptr<ArrayStorage*>(static_cast<char*>(newBaseStorage) + m_indexBias * sizeof(JSValue)); 627 627 628 628 memcpy(m_storage, storage, storageSize(0)); … … 803 803 char* newBaseStorage = reinterpret_cast<char*>(storage) + count * sizeof(JSValue); 804 804 memmove(newBaseStorage, storage, storageSize(0)); 805 m_storage = reinterpret_cast <ArrayStorage*>(newBaseStorage);805 m_storage = reinterpret_cast_ptr<ArrayStorage*>(newBaseStorage); 806 806 807 807 m_indexBias += count; … … 840 840 char* newBaseStorage = reinterpret_cast<char*>(storage) - count * sizeof(JSValue); 841 841 memmove(newBaseStorage, storage, storageSize(0)); 842 m_storage = reinterpret_cast <ArrayStorage*>(newBaseStorage);842 m_storage = reinterpret_cast_ptr<ArrayStorage*>(newBaseStorage); 843 843 m_vectorLength += count; 844 844 } else if (!increaseVectorPrefixLength(m_vectorLength + count)) {
Note:
See TracChangeset
for help on using the changeset viewer.