Lines Matching refs:uint8_t

31 static inline bool byte_cas(uint8_t old_value, uint8_t new_value, uint8_t* address) {  in byte_cas()
33 Atomic<uint8_t>* byte_atomic = reinterpret_cast<Atomic<uint8_t>*>(address); in byte_cas()
53 inline size_t CardTable::Scan(ContinuousSpaceBitmap* bitmap, uint8_t* scan_begin, uint8_t* scan_end, in Scan()
54 const Visitor& visitor, const uint8_t minimum_age) const { in Scan()
55 DCHECK_GE(scan_begin, reinterpret_cast<uint8_t*>(bitmap->HeapBegin())); in Scan()
57 DCHECK_LE(scan_end, reinterpret_cast<uint8_t*>(bitmap->HeapLimit())); in Scan()
58 uint8_t* card_cur = CardFromAddr(scan_begin); in Scan()
59 uint8_t* card_end = CardFromAddr(AlignUp(scan_end, kCardSize)); in Scan()
77 uint8_t* aligned_end = card_end - in Scan()
92 … uintptr_t start = reinterpret_cast<uintptr_t>(AddrFromCard(reinterpret_cast<uint8_t*>(word_cur))); in Scan()
96 if (static_cast<uint8_t>(start_word) >= minimum_age) { in Scan()
97 auto* card = reinterpret_cast<uint8_t*>(word_cur) + i; in Scan()
98 DCHECK(*card == static_cast<uint8_t>(start_word) || *card == kCardDirty) in Scan()
113 card_cur = reinterpret_cast<uint8_t*>(word_end); in Scan()
138 inline void CardTable::ModifyCardsAtomic(uint8_t* scan_begin, uint8_t* scan_end, const Visitor& vis… in ModifyCardsAtomic()
140 uint8_t* card_cur = CardFromAddr(scan_begin); in ModifyCardsAtomic()
141 uint8_t* card_end = CardFromAddr(AlignUp(scan_end, kCardSize)); in ModifyCardsAtomic()
147 uint8_t expected, new_value; in ModifyCardsAtomic()
161 uint8_t expected, new_value; in ModifyCardsAtomic()
177 uint8_t expected_bytes[sizeof(uintptr_t)]; in ModifyCardsAtomic()
181 uint8_t new_bytes[sizeof(uintptr_t)]; in ModifyCardsAtomic()
197 const uint8_t expected_byte = expected_bytes[i]; in ModifyCardsAtomic()
198 const uint8_t new_byte = new_bytes[i]; in ModifyCardsAtomic()
200 modified(reinterpret_cast<uint8_t*>(word_cur) + i, expected_byte, new_byte); in ModifyCardsAtomic()
210 inline void* CardTable::AddrFromCard(const uint8_t *card_addr) const { in AddrFromCard()
219 inline uint8_t* CardTable::CardFromAddr(const void *addr) const { in CardFromAddr()
220 uint8_t *card_addr = biased_begin_ + (reinterpret_cast<uintptr_t>(addr) >> kCardShift); in CardFromAddr()
227 inline bool CardTable::IsValidCard(const uint8_t* card_addr) const { in IsValidCard()
228 uint8_t* begin = mem_map_->Begin() + offset_; in IsValidCard()
229 uint8_t* end = mem_map_->End(); in IsValidCard()
233 inline void CardTable::CheckCardValid(uint8_t* card) const { in CheckCardValid()