Changeset 189515 in webkit
- Timestamp:
- Sep 8, 2015, 4:10:57 PM (10 years ago)
- Location:
- trunk/Source/JavaScriptCore
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/ChangeLog
r189514 r189515 1 2015-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 1 17 2015-09-08 Sukolsak Sakshuwong <sukolsak@gmail.com> 2 18 -
trunk/Source/JavaScriptCore/heap/Heap.cpp
r189259 r189515 511 511 } 512 512 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 527 513 void Heap::markRoots(double gcStartTime, void* stackOrigin, void* stackTop, MachineThreads::RegisterState& calleeSavedRegisters) 528 514 { -
trunk/Source/JavaScriptCore/heap/Heap.h
r188884 r189515 198 198 void willStartIterating(); 199 199 void didFinishIterating(); 200 void getConservativeRegisterRoots(HashSet<JSCell*>& roots);201 200 202 201 double lastFullGCLength() const { return m_lastFullGCLength; } -
trunk/Source/JavaScriptCore/interpreter/JSStack.cpp
r188499 r189515 103 103 } 104 104 105 void JSStack::gatherConservativeRoots(ConservativeRoots& conservativeRoots)106 {107 conservativeRoots.add(topOfStack() + 1, highAddress());108 }109 110 105 void JSStack::gatherConservativeRoots(ConservativeRoots& conservativeRoots, JITStubRoutineSet& jitStubRoutines, CodeBlockSet& codeBlocks) 111 106 { -
trunk/Source/JavaScriptCore/interpreter/JSStack.h
r188499 r189515 80 80 81 81 #if ENABLE(JIT) 82 void gatherConservativeRoots(ConservativeRoots&) { }83 82 void gatherConservativeRoots(ConservativeRoots&, JITStubRoutineSet&, CodeBlockSet&) { } 84 83 void sanitizeStack() { } … … 86 85 ~JSStack(); 87 86 88 void gatherConservativeRoots(ConservativeRoots&);89 87 void gatherConservativeRoots(ConservativeRoots&, JITStubRoutineSet&, CodeBlockSet&); 90 88 void sanitizeStack();
Note:
See TracChangeset
for help on using the changeset viewer.