Changeset 87450 in webkit


Ignore:
Timestamp:
May 26, 2011 4:47:40 PM (13 years ago)
Author:
ggaren@apple.com
Message:

2011-05-26 Geoffrey Garen <ggaren@apple.com>

Reviewed by Oliver Hunt.

Renamed heapRootMarker to heapRootVisitor to match its class name
https://bugs.webkit.org/show_bug.cgi?id=61584

  • heap/Heap.cpp: (JSC::Heap::markProtectedObjects): (JSC::Heap::markTempSortVectors): (JSC::Heap::markRoots):
Location:
trunk/Source/JavaScriptCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r87448 r87450  
     12011-05-26  Geoffrey Garen  <ggaren@apple.com>
     2
     3        Reviewed by Oliver Hunt.
     4
     5        Renamed heapRootMarker to heapRootVisitor to match its class name
     6        https://bugs.webkit.org/show_bug.cgi?id=61584
     7
     8        * heap/Heap.cpp:
     9        (JSC::Heap::markProtectedObjects):
     10        (JSC::Heap::markTempSortVectors):
     11        (JSC::Heap::markRoots):
     12
    1132011-05-26  Geoffrey Garen  <ggaren@apple.com>
    214
  • trunk/Source/JavaScriptCore/heap/Heap.cpp

    r87448 r87450  
    176176}
    177177
    178 void Heap::markProtectedObjects(HeapRootVisitor& heapRootMarker)
     178void Heap::markProtectedObjects(HeapRootVisitor& heapRootVisitor)
    179179{
    180180    ProtectCountSet::iterator end = m_protectedValues.end();
    181181    for (ProtectCountSet::iterator it = m_protectedValues.begin(); it != end; ++it)
    182         heapRootMarker.mark(&it->first);
     182        heapRootVisitor.mark(&it->first);
    183183}
    184184
     
    194194}
    195195   
    196 void Heap::markTempSortVectors(HeapRootVisitor& heapRootMarker)
     196void Heap::markTempSortVectors(HeapRootVisitor& heapRootVisitor)
    197197{
    198198    typedef Vector<Vector<ValueStringPair>* > VectorOfValueStringVectors;
     
    205205        for (Vector<ValueStringPair>::iterator vectorIt = tempSortingVector->begin(); vectorIt != vectorEnd; ++vectorIt) {
    206206            if (vectorIt->first)
    207                 heapRootMarker.mark(&vectorIt->first);
     207                heapRootVisitor.mark(&vectorIt->first);
    208208        }
    209209    }
     
    225225
    226226    MarkStack& visitor = m_markStack;
    227     HeapRootVisitor heapRootMarker(visitor);
     227    HeapRootVisitor heapRootVisitor(visitor);
    228228
    229229    // We gather conservative roots before clearing mark bits because conservative
     
    243243    visitor.drain();
    244244
    245     markProtectedObjects(heapRootMarker);
     245    markProtectedObjects(heapRootVisitor);
    246246    visitor.drain();
    247247   
    248     markTempSortVectors(heapRootMarker);
     248    markTempSortVectors(heapRootVisitor);
    249249    visitor.drain();
    250250
    251251    if (m_markListSet && m_markListSet->size())
    252         MarkedArgumentBuffer::markLists(heapRootMarker, *m_markListSet);
     252        MarkedArgumentBuffer::markLists(heapRootVisitor, *m_markListSet);
    253253    if (m_globalData->exception)
    254         heapRootMarker.mark(&m_globalData->exception);
    255     visitor.drain();
    256 
    257     m_handleHeap.markStrongHandles(heapRootMarker);
    258     visitor.drain();
    259 
    260     m_handleStack.mark(heapRootMarker);
     254        heapRootVisitor.mark(&m_globalData->exception);
     255    visitor.drain();
     256
     257    m_handleHeap.markStrongHandles(heapRootVisitor);
     258    visitor.drain();
     259
     260    m_handleStack.mark(heapRootVisitor);
    261261    visitor.drain();
    262262
     
    266266    do {
    267267        lastOpaqueRootCount = visitor.opaqueRootCount();
    268         m_handleHeap.markWeakHandles(heapRootMarker);
     268        m_handleHeap.markWeakHandles(heapRootVisitor);
    269269        visitor.drain();
    270270    // If the set of opaque roots has grown, more weak handles may have become reachable.
Note: See TracChangeset for help on using the changeset viewer.