Lines Matching full:index
63 void SetGCWords(uint32_t index) // Only used for snapshot to record region index in SetGCWords() argument
65 *reinterpret_cast<GCBitsetWord *>(this) = index; in SetGCWords()
92 Words()[Index(offset)] &= ~Mask(IndexInWord(offset)); in ClearBit()
99 uint32_t startIndex = Index(offsetBegin); in ClearBitRange()
101 uint32_t endIndex = Index(offsetEnd - 1); in ClearBitRange()
117 return Words()[Index(offset)] & Mask(IndexInWord(offset)); in TestBit()
125 uint32_t index = BIT_PER_WORD; in IterateMarkedBits() local
129 index = static_cast<uint32_t>(__builtin_ctz(word)); in IterateMarkedBits()
130 ASSERT(index < BIT_PER_WORD); in IterateMarkedBits()
131 if (!visitor(reinterpret_cast<void *>(begin + (index << TAGGED_TYPE_SIZE_LOG)))) { in IterateMarkedBits()
132 ClearWord<mode>(i, Mask(index)); in IterateMarkedBits()
134 word &= ~(1u << index); in IterateMarkedBits()
145 uint32_t index = BIT_PER_WORD; in IterateMarkedBitsConst() local
149 index = static_cast<uint32_t>(__builtin_ctz(word)); in IterateMarkedBitsConst()
150 ASSERT(index < BIT_PER_WORD); in IterateMarkedBitsConst()
151 visitor(reinterpret_cast<void *>(begin + (index << TAGGED_TYPE_SIZE_LOG))); in IterateMarkedBitsConst()
152 word &= ~(1u << index); in IterateMarkedBitsConst()
168 GCBitsetWord Mask(size_t index) const in Mask() argument
170 return 1 << index; in Mask()
178 size_t Index(uintptr_t offset) const in Index() function
189 bool ClearWord(uint32_t index, uint32_t mask);
192 bool ClearWord<AccessType::NON_ATOMIC>(uint32_t index, uint32_t mask)
194 if ((Words()[index] & mask) == 0) {
197 Words()[index] &= ~mask;
202 bool ClearWord<AccessType::ATOMIC>(uint32_t index, uint32_t mask)
204 auto word = reinterpret_cast<std::atomic<GCBitsetWord> *>(&Words()[index]);
218 size_t index = Index(offset); variable
220 if (Words()[index] & mask) {
223 Words()[index] |= mask;
230 auto word = reinterpret_cast<std::atomic<GCBitsetWord> *>(&Words()[Index(offset)]);