Changeset 62367 in webkit for trunk/JavaScriptCore/runtime/Collector.h
- Timestamp:
- Jul 1, 2010, 11:31:27 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/runtime/Collector.h
r60323 r62367 25 25 #include <stddef.h> 26 26 #include <string.h> 27 #include <wtf/FixedArray.h> 27 28 #include <wtf/HashCountedSet.h> 28 29 #include <wtf/HashSet.h> … … 216 217 217 218 struct CollectorBitmap { 218 uint32_t bits[BITMAP_WORDS];219 FixedArray<uint32_t, BITMAP_WORDS> bits; 219 220 bool get(size_t n) const { return !!(bits[n >> 5] & (1 << (n & 0x1F))); } 220 221 void set(size_t n) { bits[n >> 5] |= (1 << (n & 0x1F)); } 221 222 void clear(size_t n) { bits[n >> 5] &= ~(1 << (n & 0x1F)); } 222 void clearAll() { memset(bits , 0, sizeof(bits)); }223 void clearAll() { memset(bits.data(), 0, sizeof(bits)); } 223 224 ALWAYS_INLINE void advanceToNextPossibleFreeCell(size_t& startCell) 224 225 { … … 249 250 250 251 struct CollectorCell { 251 double memory[CELL_ARRAY_LENGTH];252 FixedArray<double, CELL_ARRAY_LENGTH> memory; 252 253 }; 253 254 254 255 class CollectorBlock { 255 256 public: 256 CollectorCell cells[CELLS_PER_BLOCK];257 FixedArray<CollectorCell, CELLS_PER_BLOCK> cells; 257 258 CollectorBitmap marked; 258 259 Heap* heap;
Note:
See TracChangeset
for help on using the changeset viewer.