Changeset 156489 in webkit for trunk/Source/JavaScriptCore/heap/WeakInlines.h
- Timestamp:
- Sep 26, 2013, 12:48:46 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/heap/WeakInlines.h
r156487 r156489 27 27 #define WeakInlines_h 28 28 29 #include " PassWeak.h"29 #include "JSCell.h" 30 30 #include "WeakSetInlines.h" 31 31 #include <wtf/Assertions.h> … … 152 152 namespace WTF { 153 153 154 template<typename T> struct VectorTraits<JSC::Weak<T> 154 template<typename T> struct VectorTraits<JSC::Weak<T>> : SimpleClassVectorTraits { 155 155 static const bool canCompareWithMemcmp = false; 156 156 }; 157 157 158 template<typename T> struct HashTraits<JSC::Weak<T> > : SimpleClassHashTraits<JSC::Weak<T>> {158 template<typename T> struct HashTraits<JSC::Weak<T>> : SimpleClassHashTraits<JSC::Weak<T>> { 159 159 typedef JSC::Weak<T> StorageType; 160 160 161 161 typedef std::nullptr_t EmptyValueType; 162 162 static EmptyValueType emptyValue() { return nullptr; } 163 164 typedef JSC::PassWeak<T> PassInType;165 static void store(PassInType value, StorageType& storage) { storage = value; }166 167 typedef JSC::PassWeak<T> PassOutType;168 static PassOutType passOut(StorageType& value) { return value.release(); }169 static PassOutType passOut(EmptyValueType) { return PassOutType(); }170 163 171 164 typedef T* PeekType;
Note:
See TracChangeset
for help on using the changeset viewer.