Changeset 227906 in webkit for trunk/Source/JavaScriptCore/runtime/SparseArrayValueMap.cpp
- Timestamp:
- Jan 31, 2018, 10:57:13 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/runtime/SparseArrayValueMap.cpp
r222473 r227906 78 78 size_t capacity; 79 79 { 80 auto locker = holdLock( *this);80 auto locker = holdLock(cellLock()); 81 81 SparseArrayEntry entry; 82 82 entry.setWithoutWriteBarrier(jsUndefined()); … … 96 96 void SparseArrayValueMap::remove(iterator it) 97 97 { 98 auto locker = holdLock( *this);98 auto locker = holdLock(cellLock()); 99 99 m_map.remove(it); 100 100 } … … 102 102 void SparseArrayValueMap::remove(unsigned i) 103 103 { 104 auto locker = holdLock( *this);104 auto locker = holdLock(cellLock()); 105 105 m_map.remove(i); 106 106 } … … 198 198 { 199 199 Base::visitChildren(thisObject, visitor); 200 200 201 auto locker = holdLock(thisObject->cellLock()); 201 202 SparseArrayValueMap* thisMap = jsCast<SparseArrayValueMap*>(thisObject); 202 auto locker = holdLock(*thisMap);203 203 iterator end = thisMap->m_map.end(); 204 204 for (iterator it = thisMap->m_map.begin(); it != end; ++it)
Note:
See TracChangeset
for help on using the changeset viewer.