Changeset 87316 in webkit


Ignore:
Timestamp:
May 25, 2011 12:37:18 PM (13 years ago)
Author:
ggaren@apple.com
Message:

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

Reviewed by Geoffrey Garen.

Removed MarkSetProperties because it was unused
https://bugs.webkit.org/show_bug.cgi?id=61418

  • heap/MarkStack.h: (JSC::MarkSet::MarkSet): (JSC::MarkStack::append):
  • runtime/JSActivation.cpp: (JSC::JSActivation::visitChildren):
  • runtime/JSArray.h: (JSC::JSArray::visitChildrenDirect):
  • runtime/JSPropertyNameIterator.cpp: (JSC::JSPropertyNameIterator::visitChildren):
  • runtime/WriteBarrier.h: (JSC::MarkStack::appendValues):
Location:
trunk/Source/JavaScriptCore
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r87308 r87316  
     12011-05-24  Geoffrey Garen  <ggaren@apple.com>
     2
     3        Reviewed by Geoffrey Garen.
     4
     5        Removed MarkSetProperties because it was unused
     6        https://bugs.webkit.org/show_bug.cgi?id=61418
     7
     8        * heap/MarkStack.h:
     9        (JSC::MarkSet::MarkSet):
     10        (JSC::MarkStack::append):
     11        * runtime/JSActivation.cpp:
     12        (JSC::JSActivation::visitChildren):
     13        * runtime/JSArray.h:
     14        (JSC::JSArray::visitChildrenDirect):
     15        * runtime/JSPropertyNameIterator.cpp:
     16        (JSC::JSPropertyNameIterator::visitChildren):
     17        * runtime/WriteBarrier.h:
     18        (JSC::MarkStack::appendValues):
     19
    1202011-05-25  Oliver Hunt  <oliver@apple.com>
    221
  • trunk/Source/JavaScriptCore/heap/MarkStack.h

    r87230 r87316  
    4444    template<typename T> class WriteBarrierBase;
    4545   
    46     enum MarkSetProperties { MayContainNullValues, NoNullValues };
    47    
    4846    struct MarkSet {
    49         MarkSet(JSValue* values, JSValue* end, MarkSetProperties);
     47        MarkSet(JSValue* values, JSValue* end);
    5048
    5149        JSValue* m_values;
    5250        JSValue* m_end;
    53         MarkSetProperties m_properties;
    5451    };
    5552
     
    9188
    9289        template<typename T> inline void append(WriteBarrierBase<T>*);
    93         inline void appendValues(WriteBarrierBase<Unknown>*, size_t count, MarkSetProperties = NoNullValues);
     90        inline void appendValues(WriteBarrierBase<Unknown>*, size_t count);
    9491       
    9592        bool addOpaqueRoot(void*);
     
    156153    }
    157154
    158     inline MarkSet::MarkSet(JSValue* values, JSValue* end, MarkSetProperties properties)
     155    inline MarkSet::MarkSet(JSValue* values, JSValue* end)
    159156            : m_values(values)
    160157            , m_end(end)
    161             , m_properties(properties)
    162158        {
    163159            ASSERT(values);
     
    252248        validateSet(slot, count);
    253249#endif
    254         m_markSets.append(MarkSet(slot, slot + count, NoNullValues));
     250        m_markSets.append(MarkSet(slot, slot + count));
    255251    }
    256252   
  • trunk/Source/JavaScriptCore/runtime/JSActivation.cpp

    r86499 r87316  
    7474
    7575    // Skip the call frame, which sits between the parameters and vars.
    76     visitor.appendValues(registerArray + m_numParametersMinusThis + RegisterFile::CallFrameHeaderSize, m_numCapturedVars, MayContainNullValues);
     76    visitor.appendValues(registerArray + m_numParametersMinusThis + RegisterFile::CallFrameHeaderSize, m_numCapturedVars);
    7777}
    7878
  • trunk/Source/JavaScriptCore/runtime/JSArray.h

    r84556 r87316  
    193193
    194194        unsigned usedVectorLength = std::min(storage->m_length, m_vectorLength);
    195         visitor.appendValues(storage->m_vector, usedVectorLength, MayContainNullValues);
     195        visitor.appendValues(storage->m_vector, usedVectorLength);
    196196
    197197        if (SparseArrayValueMap* map = storage->m_sparseValueMap) {
  • trunk/Source/JavaScriptCore/runtime/JSPropertyNameIterator.cpp

    r86499 r87316  
    100100    ASSERT_GC_OBJECT_INHERITS(this, &s_info);
    101101    ASSERT(structure()->typeInfo().overridesVisitChildren());
    102     visitor.appendValues(m_jsStrings.get(), m_jsStringsSize, MayContainNullValues);
     102    visitor.appendValues(m_jsStrings.get(), m_jsStringsSize);
    103103    if (m_cachedPrototypeChain)
    104104        visitor.append(&m_cachedPrototypeChain);
  • trunk/Source/JavaScriptCore/runtime/WriteBarrier.h

    r86974 r87316  
    235235}
    236236
    237 inline void MarkStack::appendValues(WriteBarrierBase<Unknown>* barriers, size_t count, MarkSetProperties properties)
     237inline void MarkStack::appendValues(WriteBarrierBase<Unknown>* barriers, size_t count)
    238238{
    239239    JSValue* values = barriers->slot();
     
    242242#endif
    243243    if (count)
    244         m_markSets.append(MarkSet(values, values + count, properties));
     244        m_markSets.append(MarkSet(values, values + count));
    245245}
    246246
Note: See TracChangeset for help on using the changeset viewer.