Ignore:
Timestamp:
Sep 13, 2012, 1:08:53 PM (13 years ago)
Author:
[email protected]
Message:

Rename forEachCell to forEachLiveCell
https://bugs.webkit.org/show_bug.cgi?id=96685

Reviewed by Oliver Hunt.

forEachCell actually only iterates over live cells. We should rename it to
reflect what it actually does. This is also helpful because we want to add a new
forEachCell that actually does iterate each and every cell in a MarkedBlock
regardless of whether or not it is live.

  • debugger/Debugger.cpp:

(JSC::Debugger::recompileAllJSFunctions):

  • heap/Heap.cpp:

(JSC::Heap::globalObjectCount):
(JSC::Heap::objectTypeCounts):

  • heap/MarkedBlock.h:

(MarkedBlock):
(JSC::MarkedBlock::forEachLiveCell):

  • heap/MarkedSpace.h:

(MarkedSpace):
(JSC::MarkedSpace::forEachLiveCell):

  • runtime/JSGlobalData.cpp:

(JSC::JSGlobalData::releaseExecutableMemory):

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/runtime/JSGlobalData.cpp

    r128400 r128498  
    460460               
    461461        }
    462         heap.objectSpace().forEachCell<StackPreservingRecompiler>(recompiler);
     462        heap.objectSpace().forEachLiveCell<StackPreservingRecompiler>(recompiler);
    463463    }
    464464    m_regExpCache->invalidateCode();
Note: See TracChangeset for help on using the changeset viewer.