Skip to content
  • oliver@apple.com's avatar
    Rename NewSpace to MarkedSpace · 90283c61
    oliver@apple.com authored
    https://bugs.webkit.org/show_bug.cgi?id=68375
    
    Reviewed by Gavin Barraclough.
    
    Rename NewSpace to a more accurate name, and update all uses.
    This patch doesn't rename the files themselves as that will
    just make the patch appear bigger than it is.
    
    * JavaScriptCore.exp:
    * JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCore.def:
    * heap/Heap.cpp:
    (JSC::CountFunctor::TakeIfEmpty::TakeIfEmpty):
    (JSC::CountFunctor::TakeIfEmpty::operator()):
    (JSC::Heap::Heap):
    (JSC::Heap::reportExtraMemoryCostSlowCase):
    (JSC::Heap::tryAllocate):
    (JSC::Heap::allocateSlowCase):
    (JSC::Heap::collect):
    (JSC::Heap::canonicalizeBlocks):
    (JSC::Heap::resetAllocator):
    (JSC::Heap::isValidAllocation):
    (JSC::Heap::shrink):
    * heap/Heap.h:
    (JSC::Heap::markedSpace):
    (JSC::Heap::sizeClassFor):
    (JSC::Heap::allocate):
    * heap/NewSpace.cpp:
    (JSC::MarkedSpace::MarkedSpace):
    (JSC::MarkedSpace::addBlock):
    (JSC::MarkedSpace::removeBlock):
    (JSC::MarkedSpace::resetAllocator):
    (JSC::MarkedSpace::canonicalizeBlocks):
    * heap/NewSpace.h:
    (JSC::MarkedSpace::waterMark):
    (JSC::MarkedSpace::highWaterMark):
    (JSC::MarkedSpace::setHighWaterMark):
    (JSC::MarkedSpace::sizeClassFor):
    (JSC::MarkedSpace::allocate):
    (JSC::MarkedSpace::forEachBlock):
    (JSC::MarkedSpace::SizeClass::SizeClass):
    (JSC::MarkedSpace::SizeClass::resetAllocator):
    (JSC::MarkedSpace::SizeClass::canonicalizeBlock):
    * jit/JITInlineMethods.h:
    (JSC::JIT::emitAllocateBasicJSObject):
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@95450 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    90283c61