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 moved

Legend:

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

    r113502 r113508  
    2424 */
    2525
    26 #ifndef WeakHeap_h
    27 #define WeakHeap_h
     26#ifndef WeakSet_h
     27#define WeakSet_h
    2828
    2929#include "WeakBlock.h"
     
    3434class WeakImpl;
    3535
    36 class WeakHeap {
     36class WeakSet {
    3737public:
    38     WeakHeap(Heap*);
     38    WeakSet(Heap*);
    3939    void finalizeAll();
    40     ~WeakHeap();
     40    ~WeakSet();
    4141
    4242    WeakImpl* allocate(JSValue, WeakHandleOwner* = 0, void* context = 0);
     
    6161};
    6262
    63 inline WeakHeap::WeakHeap(Heap* heap)
     63inline WeakSet::WeakSet(Heap* heap)
    6464    : m_allocator(0)
    6565    , m_nextAllocator(0)
     
    6868}
    6969
    70 inline WeakImpl* WeakHeap::allocate(JSValue jsValue, WeakHandleOwner* weakHandleOwner, void* context)
     70inline WeakImpl* WeakSet::allocate(JSValue jsValue, WeakHandleOwner* weakHandleOwner, void* context)
    7171{
    7272    WeakBlock::FreeCell* allocator = m_allocator;
     
    7979}
    8080
    81 inline void WeakHeap::deallocate(WeakImpl* weakImpl)
     81inline void WeakSet::deallocate(WeakImpl* weakImpl)
    8282{
    8383    WeakBlock::blockFor(weakImpl)->deallocate(weakImpl);
     
    8686} // namespace JSC
    8787
    88 #endif // WeakHeap_h
     88#endif // WeakSet_h
Note: See TracChangeset for help on using the changeset viewer.