Changeset 295703 in webkit for trunk/Source/JavaScriptCore/heap/GCIncomingRefCountedSetInlines.h
- Timestamp:
- Jun 21, 2022, 4:57:05 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/heap/GCIncomingRefCountedSetInlines.h
r295624 r295703 73 73 m_vector.removeLast(); 74 74 } 75 76 constexpr bool verify = false;77 if constexpr (verify) {78 CheckedSize size;79 for (size_t i = m_vector.size(); i--;) {80 T* object = m_vector[i];81 size += object->gcSizeEstimateInBytes();82 }83 ASSERT(m_bytes == size);84 }85 }86 87 template<typename T>88 void GCIncomingRefCountedSet<T>::reduceSize(size_t bytes)89 {90 ASSERT(m_bytes >= bytes);91 m_bytes -= bytes;92 75 } 93 76
Note:
See TracChangeset
for help on using the changeset viewer.