Changeset 115545 in webkit for trunk/Source/JavaScriptCore/heap/Weak.h
- Timestamp:
- Apr 27, 2012, 10:57:46 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/heap/Weak.h
r115534 r115545 28 28 29 29 #include <wtf/Assertions.h> 30 #include "JSGlobalData.h"31 30 #include "PassWeak.h" 31 #include "WeakSetInlines.h" 32 32 33 33 namespace JSC { … … 41 41 Weak(); 42 42 Weak(std::nullptr_t); 43 Weak( JSGlobalData&,GetType, WeakHandleOwner* = 0, void* context = 0);43 Weak(GetType, WeakHandleOwner* = 0, void* context = 0); 44 44 45 45 enum HashTableDeletedValueTag { HashTableDeletedValue }; … … 79 79 } 80 80 81 template<typename T> inline Weak<T>::Weak( JSGlobalData& globalData,typename Weak<T>::GetType getType, WeakHandleOwner* weakOwner, void* context)82 : m_impl(getType ? globalData.heap.weakSet()->allocate(getType, weakOwner, context) : 0)81 template<typename T> inline Weak<T>::Weak(typename Weak<T>::GetType getType, WeakHandleOwner* weakOwner, void* context) 82 : m_impl(getType ? WeakSet::allocate(getType, weakOwner, context) : 0) 83 83 { 84 84 }
Note:
See TracChangeset
for help on using the changeset viewer.