Changeset 190113 in webkit for trunk/Source/JavaScriptCore/heap/WeakBlock.cpp
- Timestamp:
- Sep 22, 2015, 5:21:31 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/heap/WeakBlock.cpp
r189616 r190113 113 113 continue; 114 114 115 if (m_markedBlock->isMarkedOrNewlyAllocated(weakImpl->m_cell)) 115 const JSValue& jsValue = weakImpl->jsValue(); 116 if (m_markedBlock->isMarkedOrNewlyAllocated(jsValue.asCell())) 116 117 continue; 117 118 … … 120 121 continue; 121 122 122 if (!weakHandleOwner->isReachableFromOpaqueRoots( *weakImpl->m_cell, weakImpl->context(), visitor))123 if (!weakHandleOwner->isReachableFromOpaqueRoots(Handle<Unknown>::wrapSlot(&const_cast<JSValue&>(jsValue)), weakImpl->context(), visitor)) 123 124 continue; 124 125 125 heapRootVisitor.visit(& weakImpl->m_cell);126 heapRootVisitor.visit(&const_cast<JSValue&>(jsValue)); 126 127 } 127 128 } … … 144 145 continue; 145 146 146 if (m_markedBlock->isMarkedOrNewlyAllocated(weakImpl-> cell())) {147 if (m_markedBlock->isMarkedOrNewlyAllocated(weakImpl->jsValue().asCell())) { 147 148 ASSERT(weakImpl->state() == WeakImpl::Live); 148 149 continue;
Note:
See TracChangeset
for help on using the changeset viewer.