Changeset 115545 in webkit for trunk/Source/JavaScriptCore/heap/PassWeak.h
- Timestamp:
- Apr 27, 2012, 10:57:46 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/heap/PassWeak.h
r115534 r115545 28 28 29 29 #include "JSCell.h" 30 #include "WeakSetInlines.h" 30 31 #include <wtf/Assertions.h> 31 32 #include <wtf/NullPtr.h> … … 58 59 PassWeak(); 59 60 PassWeak(std::nullptr_t); 60 PassWeak( JSGlobalData&,GetType, WeakHandleOwner* = 0, void* context = 0);61 PassWeak(GetType, WeakHandleOwner* = 0, void* context = 0); 61 62 62 63 // It somewhat breaks the type system to allow transfer of ownership out of … … 119 120 } 120 121 121 template<typename T> inline PassWeak<T>::PassWeak( JSGlobalData& globalData,typename PassWeak<T>::GetType getType, WeakHandleOwner* weakOwner, void* context)122 : m_impl(getType ? globalData.heap.weakSet()->allocate(getType, weakOwner, context) : 0)122 template<typename T> inline PassWeak<T>::PassWeak(typename PassWeak<T>::GetType getType, WeakHandleOwner* weakOwner, void* context) 123 : m_impl(getType ? WeakSet::allocate(getType, weakOwner, context) : 0) 123 124 { 124 125 }
Note:
See TracChangeset
for help on using the changeset viewer.