Changeset 115545 in webkit for trunk/Source/JavaScriptCore/heap/WeakSet.h
- Timestamp:
- Apr 27, 2012, 10:57:46 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/heap/WeakSet.h
r115538 r115545 40 40 ~WeakSet(); 41 41 42 WeakImpl* allocate(JSValue, WeakHandleOwner* = 0, void* context = 0);42 static WeakImpl* allocate(JSValue, WeakHandleOwner* = 0, void* context = 0); 43 43 static void deallocate(WeakImpl*); 44 44 … … 70 70 } 71 71 72 inline WeakImpl* WeakSet::allocate(JSValue jsValue, WeakHandleOwner* weakHandleOwner, void* context)73 {74 WeakBlock::FreeCell* allocator = m_allocator;75 if (UNLIKELY(!allocator))76 allocator = findAllocator();77 m_allocator = allocator->next;78 79 WeakImpl* weakImpl = WeakBlock::asWeakImpl(allocator);80 return new (NotNull, weakImpl) WeakImpl(jsValue, weakHandleOwner, context);81 }82 83 72 inline void WeakSet::deallocate(WeakImpl* weakImpl) 84 73 {
Note:
See TracChangeset
for help on using the changeset viewer.