Changeset 190113 in webkit for trunk/Source/JavaScriptCore/heap/WeakSetInlines.h
- Timestamp:
- Sep 22, 2015, 5:21:31 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/heap/WeakSetInlines.h
r189616 r190113 31 31 namespace JSC { 32 32 33 inline WeakImpl* WeakSet::allocate(JS Cell& cell, WeakHandleOwner* weakHandleOwner, void* context)33 inline WeakImpl* WeakSet::allocate(JSValue jsValue, WeakHandleOwner* weakHandleOwner, void* context) 34 34 { 35 WeakSet& weakSet = MarkedBlock::blockFor( &cell)->weakSet();35 WeakSet& weakSet = MarkedBlock::blockFor(jsValue.asCell())->weakSet(); 36 36 WeakBlock::FreeCell* allocator = weakSet.m_allocator; 37 37 if (UNLIKELY(!allocator)) … … 40 40 41 41 WeakImpl* weakImpl = WeakBlock::asWeakImpl(allocator); 42 return new (NotNull, weakImpl) WeakImpl( cell, weakHandleOwner, context);42 return new (NotNull, weakImpl) WeakImpl(jsValue, weakHandleOwner, context); 43 43 } 44 44 … … 50 50 if (!weakHandleOwner) 51 51 return; 52 weakHandleOwner->finalize( weakImpl->m_cell, weakImpl->context());52 weakHandleOwner->finalize(Handle<Unknown>::wrapSlot(&const_cast<JSValue&>(weakImpl->jsValue())), weakImpl->context()); 53 53 } 54 54
Note:
See TracChangeset
for help on using the changeset viewer.