Lines Matching refs:CardTable
41 std::unique_ptr<CardTable> card_table_;
45 card_table_.reset(CardTable::Create(heap_begin_, heap_size_)); in CommonSetup()
65 size_t offset = RoundDown(addr - heap_begin_, CardTable::kCardSize); in PseudoRandomCard()
69 for (const uint8_t* addr = HeapBegin(); addr != HeapLimit(); addr += CardTable::kCardSize) { in FillRandom()
85 EXPECT_EQ(card_table_->GetCard(obj), CardTable::kCardClean); in TEST_F()
89 EXPECT_EQ(card_table_->GetCard(obj), CardTable::kCardDirty); in TEST_F()
91 EXPECT_EQ(*card_addr, CardTable::kCardDirty); in TEST_F()
92 *card_addr = CardTable::kCardClean; in TEST_F()
93 EXPECT_EQ(*card_addr, CardTable::kCardClean); in TEST_F()
111 8U * CardTable::kCardSize); in TEST_F()
114 …for (uint8_t* cstart = HeapBegin(); cstart < HeapBegin() + delta; cstart += CardTable::kCardSize) { in TEST_F()
115 start_offset = (start_offset + kObjectAlignment) % CardTable::kCardSize; in TEST_F()
117 for (uint8_t* cend = HeapLimit() - delta; cend < HeapLimit(); cend += CardTable::kCardSize) { in TEST_F()
121 end_offset = (end_offset + kObjectAlignment) % CardTable::kCardSize; in TEST_F()
125 for (uint8_t* cur = start - CardTable::kCardSize; cur >= HeapBegin(); in TEST_F()
126 cur -= CardTable::kCardSize) { in TEST_F()
130 for (uint8_t* cur = end + CardTable::kCardSize; cur < HeapLimit(); in TEST_F()
131 cur += CardTable::kCardSize) { in TEST_F()
136 for (uint8_t* cur = start; cur < AlignUp(end, CardTable::kCardSize); in TEST_F()
137 cur += CardTable::kCardSize) { in TEST_F()