Changeset 118856 in webkit for trunk/Source/JavaScriptCore/runtime/WeakGCMap.h
- Timestamp:
- May 29, 2012, 4:40:26 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/runtime/WeakGCMap.h
r118483 r118856 70 70 ExternalType get(const KeyType& key) const 71 71 { 72 return HandleTypes<MappedType>::getFromSlot(const_cast<JSValue*>(&m_map.get(key)->jsValue())); 72 WeakImpl* impl = m_map.get(key); 73 if (!impl || impl->state() != WeakImpl::Live) 74 return ExternalType(); 75 return HandleTypes<MappedType>::getFromSlot(const_cast<JSValue*>(&impl->jsValue())); 73 76 } 74 77
Note:
See TracChangeset
for help on using the changeset viewer.