Changeset 226725 in webkit for trunk/Source/JavaScriptCore/heap/ConservativeRoots.cpp
- Timestamp:
- Jan 10, 2018, 11:41:12 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/heap/ConservativeRoots.cpp
r226667 r226725 73 73 HeapUtil::findGCObjectPointersForMarking( 74 74 m_heap, markingVersion, newlyAllocatedVersion, filter, p, 75 [&] (void* p, HeapCell::Kind cellKind) { 76 if (cellKind == HeapCell::JSCell) 77 markHook.markKnownJSCell(static_cast<JSCell*>(p)); 78 75 [&] (void* p) { 79 76 if (m_size == m_capacity) 80 77 grow(); … … 107 104 public: 108 105 void mark(void*) { } 109 void markKnownJSCell(JSCell*) { }110 106 }; 111 107 … … 114 110 DummyMarkHook dummy; 115 111 genericAddSpan(begin, end, dummy); 112 } 113 114 void ConservativeRoots::add(void* begin, void* end, JITStubRoutineSet& jitStubRoutines) 115 { 116 genericAddSpan(begin, end, jitStubRoutines); 116 117 } 117 118 … … 128 129 { 129 130 m_stubRoutines.mark(address); 130 } 131 132 void markKnownJSCell(JSCell* cell) 133 { 134 if (cell->type() == CodeBlockType) 135 m_codeBlocks.mark(m_codeBlocksLocker, jsCast<CodeBlock*>(cell)); 131 m_codeBlocks.mark(m_codeBlocksLocker, address); 136 132 } 137 133
Note:
See TracChangeset
for help on using the changeset viewer.