Searched refs:card_addr (Results 1 – 7 of 7) sorted by relevance
132 for (byte* const card_addr : dirty_cards_) { in UpdateAndMarkReferences()134 uintptr_t start = reinterpret_cast<uintptr_t>(card_table->AddrFromCard(card_addr)); in UpdateAndMarkReferences()142 remove_card_set.insert(card_addr); in UpdateAndMarkReferences()148 for (byte* const card_addr : remove_card_set) { in UpdateAndMarkReferences()149 DCHECK(dirty_cards_.find(card_addr) != dirty_cards_.end()); in UpdateAndMarkReferences()150 dirty_cards_.erase(card_addr); in UpdateAndMarkReferences()157 for (const byte* card_addr : dirty_cards_) { in Dump() local158 auto start = reinterpret_cast<uintptr_t>(card_table->AddrFromCard(card_addr)); in Dump()167 for (const byte* card_addr : dirty_cards_) { in AssertAllDirtyCardsAreWithinSpace() local168 auto start = reinterpret_cast<byte*>(card_table->AddrFromCard(card_addr)); in AssertAllDirtyCardsAreWithinSpace()
200 inline void* CardTable::AddrFromCard(const byte *card_addr) const { in AddrFromCard() argument201 DCHECK(IsValidCard(card_addr)) in AddrFromCard()202 << " card_addr: " << reinterpret_cast<const void*>(card_addr) in AddrFromCard()205 uintptr_t offset = card_addr - biased_begin_; in AddrFromCard()210 byte *card_addr = biased_begin_ + (reinterpret_cast<uintptr_t>(addr) >> kCardShift); in CardFromAddr() local212 DCHECK(IsValidCard(card_addr)) << "addr: " << addr in CardFromAddr()213 << " card_addr: " << reinterpret_cast<void*>(card_addr); in CardFromAddr()214 return card_addr; in CardFromAddr()
121 void* AddrFromCard(const byte *card_addr) const ALWAYS_INLINE;132 bool IsValidCard(const byte* card_addr) const { in IsValidCard() argument135 return card_addr >= begin && card_addr < end; in IsValidCard()
245 for (byte* card_addr : cleared_cards_) { in Dump()246 uintptr_t start = reinterpret_cast<uintptr_t>(card_table->AddrFromCard(card_addr)); in Dump()252 const byte* card_addr = ref_pair.first; in Dump() local253 uintptr_t start = reinterpret_cast<uintptr_t>(card_table->AddrFromCard(card_addr)); in Dump()318 for (const byte* card_addr : cleared_cards_) { in UpdateAndMarkReferences() local319 uintptr_t start = reinterpret_cast<uintptr_t>(card_table->AddrFromCard(card_addr)); in UpdateAndMarkReferences()328 for (const byte* card_addr : cleared_cards_) { in Dump() local329 auto start = reinterpret_cast<uintptr_t>(card_table->AddrFromCard(card_addr)); in Dump()
87 byte* card_addr = card_table_->CardFromAddr(addr); in TEST_F() local88 EXPECT_EQ(*card_addr, gc::accounting::CardTable::kCardDirty); in TEST_F()89 *card_addr = gc::accounting::CardTable::kCardClean; in TEST_F()90 EXPECT_EQ(*card_addr, gc::accounting::CardTable::kCardClean); in TEST_F()
110 byte* card_addr = biased_begin_ + ((uintptr_t)addr >> kCardShift); in CheckAddrIsInCardTable() local117 << " card_addr: " << reinterpret_cast<void*>(card_addr) in CheckAddrIsInCardTable()
2349 byte* card_addr = card_table->CardFromAddr(obj); in VerifyReference() local2351 << offset << "\n card value = " << static_cast<int>(*card_addr); in VerifyReference()2380 void* cover_begin = card_table->AddrFromCard(card_addr); in VerifyReference()2383 LOG(ERROR) << "Card " << reinterpret_cast<void*>(card_addr) << " covers " << cover_begin in VerifyReference()2412 byte* byte_cover_begin = reinterpret_cast<byte*>(card_table->AddrFromCard(card_addr)); in VerifyReference()