Changeset 189515 in webkit


Ignore:
Timestamp:
Sep 8, 2015, 4:10:57 PM (10 years ago)
Author:
akling@apple.com
Message:

[JSC] Remove unused Heap::getConservativeRegisterRoots().
<https://webkit.org/b/148974>

Reviewed by Geoffrey Garen.

Spotted this unused stack root gathering helper in Heap. Let's lose it.

  • heap/Heap.cpp:

(JSC::Heap::getConservativeRegisterRoots): Deleted.

  • interpreter/JSStack.cpp:

(JSC::JSStack::gatherConservativeRoots): Deleted.

  • interpreter/JSStack.h:

(JSC::JSStack::gatherConservativeRoots): Deleted.

Location:
trunk/Source/JavaScriptCore
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r189514 r189515  
     12015-09-08  Andreas Kling  <akling@apple.com>
     2
     3        [JSC] Remove unused Heap::getConservativeRegisterRoots().
     4        <https://webkit.org/b/148974>
     5
     6        Reviewed by Geoffrey Garen.
     7
     8        Spotted this unused stack root gathering helper in Heap. Let's lose it.
     9
     10        * heap/Heap.cpp:
     11        (JSC::Heap::getConservativeRegisterRoots): Deleted.
     12        * interpreter/JSStack.cpp:
     13        (JSC::JSStack::gatherConservativeRoots): Deleted.
     14        * interpreter/JSStack.h:
     15        (JSC::JSStack::gatherConservativeRoots): Deleted.
     16
    1172015-09-08  Sukolsak Sakshuwong  <sukolsak@gmail.com>
    218
  • trunk/Source/JavaScriptCore/heap/Heap.cpp

    r189259 r189515  
    511511}
    512512
    513 void Heap::getConservativeRegisterRoots(HashSet<JSCell*>& roots)
    514 {
    515     ASSERT(isValidThreadState(m_vm));
    516     ConservativeRoots stackRoots(&m_objectSpace.blocks(), &m_storageSpace);
    517     stack().gatherConservativeRoots(stackRoots);
    518     size_t stackRootCount = stackRoots.size();
    519     JSCell** registerRoots = stackRoots.roots();
    520     for (size_t i = 0; i < stackRootCount; i++) {
    521         setMarked(registerRoots[i]);
    522         registerRoots[i]->setMarked();
    523         roots.add(registerRoots[i]);
    524     }
    525 }
    526 
    527513void Heap::markRoots(double gcStartTime, void* stackOrigin, void* stackTop, MachineThreads::RegisterState& calleeSavedRegisters)
    528514{
  • trunk/Source/JavaScriptCore/heap/Heap.h

    r188884 r189515  
    198198    void willStartIterating();
    199199    void didFinishIterating();
    200     void getConservativeRegisterRoots(HashSet<JSCell*>& roots);
    201200
    202201    double lastFullGCLength() const { return m_lastFullGCLength; }
  • trunk/Source/JavaScriptCore/interpreter/JSStack.cpp

    r188499 r189515  
    103103}
    104104
    105 void JSStack::gatherConservativeRoots(ConservativeRoots& conservativeRoots)
    106 {
    107     conservativeRoots.add(topOfStack() + 1, highAddress());
    108 }
    109 
    110105void JSStack::gatherConservativeRoots(ConservativeRoots& conservativeRoots, JITStubRoutineSet& jitStubRoutines, CodeBlockSet& codeBlocks)
    111106{
  • trunk/Source/JavaScriptCore/interpreter/JSStack.h

    r188499 r189515  
    8080
    8181#if ENABLE(JIT)
    82         void gatherConservativeRoots(ConservativeRoots&) { }
    8382        void gatherConservativeRoots(ConservativeRoots&, JITStubRoutineSet&, CodeBlockSet&) { }
    8483        void sanitizeStack() { }
     
    8685        ~JSStack();
    8786
    88         void gatherConservativeRoots(ConservativeRoots&);
    8987        void gatherConservativeRoots(ConservativeRoots&, JITStubRoutineSet&, CodeBlockSet&);
    9088        void sanitizeStack();
Note: See TracChangeset for help on using the changeset viewer.