Changeset 89637 in webkit
- Timestamp:
- Jun 23, 2011, 5:16:47 PM (14 years ago)
- Location:
- trunk/Source/JavaScriptCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/ChangeLog
r89630 r89637 1 2011-06-23 Stephanie Lewis <slewis@apple.com> 2 3 Reviewed by Darin Adler. 4 5 https://bugs.webkit.org/show_bug.cgi?id=63298 6 Replace Malloc with FastMalloc to match the rest of wtf. 7 8 * wtf/BlockStack.h: 9 (WTF::::~BlockStack): 10 (WTF::::grow): 11 (WTF::::shrink): 12 1 13 2011-06-23 Oliver Hunt <oliver@apple.com> 2 14 -
trunk/Source/JavaScriptCore/wtf/BlockStack.h
r78634 r89637 28 28 29 29 #include <wtf/Assertions.h> 30 #include <wtf/FastMalloc.h> 30 31 #include <wtf/Vector.h> 31 32 … … 58 59 { 59 60 if (m_spareBlock) 60 f ree(m_spareBlock);61 fastFree(m_spareBlock); 61 62 for (size_t i = 0; i < m_blocks.size(); ++i) 62 f ree(m_blocks[i]);63 fastFree(m_blocks[i]); 63 64 } 64 65 … … 70 71 template <typename T> T* BlockStack<T>::grow() 71 72 { 72 T* block = m_spareBlock ? m_spareBlock : static_cast<T*>( malloc(blockSize));73 T* block = m_spareBlock ? m_spareBlock : static_cast<T*>(fastMalloc(blockSize)); 73 74 m_spareBlock = 0; 74 75 … … 84 85 85 86 while (m_blocks.last() + blockLength != newEnd) { 86 f ree(m_blocks.last());87 fastFree(m_blocks.last()); 87 88 m_blocks.removeLast(); 88 89 }
Note:
See TracChangeset
for help on using the changeset viewer.