Changeset 89637 in webkit


Ignore:
Timestamp:
Jun 23, 2011, 5:16:47 PM (14 years ago)
Author:
Stephanie Lewis
Message:

https://bugs.webkit.org/show_bug.cgi?id=63298
Replace Malloc with FastMalloc to match the rest of wtf.

Reviewed by Darin Adler.

  • wtf/BlockStack.h:

(WTF::::~BlockStack):
(WTF::::grow):
(WTF::::shrink):

Location:
trunk/Source/JavaScriptCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r89630 r89637  
     12011-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
    1132011-06-23  Oliver Hunt  <oliver@apple.com>
    214
  • trunk/Source/JavaScriptCore/wtf/BlockStack.h

    r78634 r89637  
    2828
    2929#include <wtf/Assertions.h>
     30#include <wtf/FastMalloc.h>
    3031#include <wtf/Vector.h>
    3132
     
    5859{
    5960    if (m_spareBlock)
    60         free(m_spareBlock);
     61        fastFree(m_spareBlock);
    6162    for (size_t i = 0; i < m_blocks.size(); ++i)
    62         free(m_blocks[i]);
     63        fastFree(m_blocks[i]);
    6364}
    6465
     
    7071template <typename T> T* BlockStack<T>::grow()
    7172{
    72     T* block = m_spareBlock ? m_spareBlock : static_cast<T*>(malloc(blockSize));
     73    T* block = m_spareBlock ? m_spareBlock : static_cast<T*>(fastMalloc(blockSize));
    7374    m_spareBlock = 0;
    7475
     
    8485
    8586    while (m_blocks.last() + blockLength != newEnd) {
    86         free(m_blocks.last());
     87        fastFree(m_blocks.last());
    8788        m_blocks.removeLast();
    8889    }
Note: See TracChangeset for help on using the changeset viewer.