Ignore:
Timestamp:
Jan 26, 2012, 6:30:38 PM (13 years ago)
Author:
[email protected]
Message:

Merge AllocationSpace into MarkedSpace
https://bugs.webkit.org/show_bug.cgi?id=77116

Reviewed by Geoffrey Garen.

Merging AllocationSpace and MarkedSpace in preparation for future refactoring/enhancement to
MarkedSpace allocation.

(BumpSpace):

  • heap/Heap.h:

(JSC::Heap::objectSpace):
(Heap):
():

  • heap/HeapBlock.h:

():

  • heap/MarkedSpace.cpp:

(JSC::MarkedSpace::tryAllocateHelper):
(JSC):
(JSC::MarkedSpace::tryAllocate):
(JSC::MarkedSpace::allocateSlowCase):
(JSC::MarkedSpace::allocateBlock):
(JSC::MarkedSpace::freeBlocks):
(TakeIfUnmarked):
(JSC::TakeIfUnmarked::TakeIfUnmarked):
(JSC::TakeIfUnmarked::operator()):
(JSC::TakeIfUnmarked::returnValue):
(JSC::MarkedSpace::shrink):
(GatherDirtyCells):
(JSC::GatherDirtyCells::returnValue):
(JSC::GatherDirtyCells::GatherDirtyCells):
(JSC::GatherDirtyCells::operator()):
(JSC::MarkedSpace::gatherDirtyCells):

  • heap/MarkedSpace.h:

(MarkedSpace):
(JSC::MarkedSpace::blocks):
(JSC::MarkedSpace::forEachCell):
(JSC):
(JSC::MarkedSpace::allocate):

File:
1 edited

Legend:

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

    r105442 r106078  
    2323#define Heap_h
    2424
    25 #include "AllocationSpace.h"
    2625#include "DFGCodeBlocks.h"
    2726#include "HandleHeap.h"
     
    8786
    8887        JSGlobalData* globalData() const { return m_globalData; }
    89         AllocationSpace& objectSpace() { return m_objectSpace; }
     88        MarkedSpace& objectSpace() { return m_objectSpace; }
    9089        MachineThreads& machineThreads() { return m_machineThreads; }
    9190
     
    137136
    138137    private:
     138        friend class MarkedSpace;
    139139        friend class MarkedBlock;
    140         friend class AllocationSpace;
    141140        friend class BumpSpace;
    142141        friend class SlotVisitor;
     
    192191       
    193192        OperationInProgress m_operationInProgress;
    194         AllocationSpace m_objectSpace;
     193        MarkedSpace m_objectSpace;
    195194        BumpSpace m_storageSpace;
    196195
Note: See TracChangeset for help on using the changeset viewer.