Changeset 77391 in webkit for trunk/Source/JavaScriptCore/runtime/WeakGCMap.h
- Timestamp:
- Feb 2, 2011, 11:21:17 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/runtime/WeakGCMap.h
r77360 r77391 79 79 const_iterator uncheckedEnd() const { return m_map.end(); } 80 80 81 bool isValid(iterator it) const { return Heap::is CellMarked(it->second.get()); }82 bool isValid(const_iterator it) const { return Heap::is CellMarked(it->second.get()); }81 bool isValid(iterator it) const { return Heap::isMarked(it->second.get()); } 82 bool isValid(const_iterator it) const { return Heap::isMarked(it->second.get()); } 83 83 84 84 private: … … 92 92 if (result == HashTraits<MappedType*>::emptyValue()) 93 93 return result; 94 if (!Heap::is CellMarked(result))94 if (!Heap::isMarked(result)) 95 95 return HashTraits<MappedType*>::emptyValue(); 96 96 return result; … … 103 103 if (result == HashTraits<MappedType*>::emptyValue()) 104 104 return result; 105 if (!Heap::is CellMarked(result))105 if (!Heap::isMarked(result)) 106 106 return HashTraits<MappedType*>::emptyValue(); 107 107 return result; … … 111 111 pair<typename WeakGCMap<KeyType, MappedType>::iterator, bool> WeakGCMap<KeyType, MappedType>::set(const KeyType& key, MappedType* value) 112 112 { 113 Heap:: markCell(value); // If value is newly allocated, it's not marked, so mark it now.113 Heap::setMarked(value); // If value is newly allocated, it's not marked, so mark it now. 114 114 pair<iterator, bool> result = m_map.add(key, value); 115 115 if (!result.second) { // pre-existing entry 116 result.second = !Heap::is CellMarked(result.first->second.get());116 result.second = !Heap::isMarked(result.first->second.get()); 117 117 result.first->second = value; 118 118 }
Note:
See TracChangeset
for help on using the changeset viewer.