Ignore:
Timestamp:
Apr 6, 2012, 3:35:55 PM (13 years ago)
Author:
[email protected]
Message:

Renamed

WeakHeap => WeakSet
HandleHeap => HandleSet

Reviewed by Sam Weinig.

These sets do have internal allocators, but it's confusing to call them
heaps because they're sub-objects of an object called "heap".

  • heap/HandleHeap.cpp: Removed.
  • heap/HandleHeap.h: Removed.
  • heap/HandleSet.cpp: Copied from JavaScriptCore/heap/HandleHeap.cpp.
  • heap/WeakHeap.cpp: Removed.
  • heap/WeakHeap.h: Removed.
  • heap/WeakSet.cpp: Copied from JavaScriptCore/heap/WeakHeap.cpp.
  • heap/WeakSet.h: Copied from JavaScriptCore/heap/WeakHeap.h.

Plus global rename using grep.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/heap/Weak.h

    r113141 r113508  
    8080
    8181template<typename T> inline Weak<T>::Weak(JSGlobalData& globalData, typename Weak<T>::GetType getType, WeakHandleOwner* weakOwner, void* context)
    82     : m_impl(globalData.heap.weakHeap()->allocate(getType, weakOwner, context))
     82    : m_impl(globalData.heap.weakSet()->allocate(getType, weakOwner, context))
    8383{
    8484}
     
    142142    if (!m_impl)
    143143        return;
    144     WeakHeap::deallocate(m_impl);
     144    WeakSet::deallocate(m_impl);
    145145    m_impl = 0;
    146146}
Note: See TracChangeset for help on using the changeset viewer.