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/Strong.h

    r113141 r113508  
    2929#include <wtf/Assertions.h>
    3030#include "Handle.h"
    31 #include "HandleHeap.h"
     31#include "HandleSet.h"
    3232
    3333namespace JSC {
     
    5757        if (!other.slot())
    5858            return;
    59         setSlot(HandleHeap::heapFor(other.slot())->allocate());
     59        setSlot(HandleSet::heapFor(other.slot())->allocate());
    6060        set(other.get());
    6161    }
     
    6666        if (!other.slot())
    6767            return;
    68         setSlot(HandleHeap::heapFor(other.slot())->allocate());
     68        setSlot(HandleSet::heapFor(other.slot())->allocate());
    6969        set(other.get());
    7070    }
     
    104104        }
    105105
    106         set(*HandleHeap::heapFor(other.slot())->globalData(), other.get());
     106        set(*HandleSet::heapFor(other.slot())->globalData(), other.get());
    107107        return *this;
    108108    }
     
    115115        }
    116116
    117         set(*HandleHeap::heapFor(other.slot())->globalData(), other.get());
     117        set(*HandleSet::heapFor(other.slot())->globalData(), other.get());
    118118        return *this;
    119119    }
     
    123123        if (!slot())
    124124            return;
    125         HandleHeap::heapFor(slot())->deallocate(slot());
     125        HandleSet::heapFor(slot())->deallocate(slot());
    126126        setSlot(0);
    127127    }
     
    134134        ASSERT(slot());
    135135        JSValue value = HandleTypes<T>::toJSValue(externalType);
    136         HandleHeap::heapFor(slot())->writeBarrier(slot(), value);
     136        HandleSet::heapFor(slot())->writeBarrier(slot(), value);
    137137        *slot() = value;
    138138    }
Note: See TracChangeset for help on using the changeset viewer.