Ignore:
Timestamp:
Jan 22, 2011, 12:11:22 PM (14 years ago)
Author:
[email protected]
Message:

2011-01-22 Geoffrey Garen <[email protected]>

Reviewed by Geoffrey Garen.

Rubber-stamped by Maciej Stachowiak.

A few of Maciej's review suggestions for my last patch.
https://bugs.webkit.org/show_bug.cgi?id=52946

SunSpider reports no change.

  • runtime/ConservativeSet.cpp: Added. (JSC::isPointerAligned): (JSC::ConservativeSet::add):
  • runtime/ConservativeSet.h: Added. (JSC::ConservativeSet::ConservativeSet): (JSC::ConservativeSet::mark): Split ConservativeSet out into its own file, and moved the conservative check into ConservativeSet::add, making ConservativeSet's responsibility clearer.
  • runtime/Heap.cpp: (JSC::Heap::markRoots):
  • runtime/MachineStackMarker.cpp: (JSC::MachineStackMarker::markCurrentThreadConservativelyInternal): (JSC::MachineStackMarker::markOtherThreadConservatively):
  • runtime/MachineStackMarker.h:
  • runtime/MarkStack.h: Updated for changes above.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/runtime/MarkStack.h

    r76425 r76454  
    189189    };
    190190   
    191     class ConservativeSet {
    192     public:
    193         void add(JSCell* cell) { m_vector.append(cell); }
    194         void mark(MarkStack& markStack)
    195         {
    196             for (size_t i = 0; i < m_vector.size(); ++i)
    197                 markStack.append(m_vector[i]);
    198         }
    199 
    200     private:
    201         Vector<JSCell*, 64> m_vector;
    202     };
    203191}
    204192
Note: See TracChangeset for help on using the changeset viewer.