Lines Matching refs:CachePage

638   DCHECK((reinterpret_cast<intptr_t>(one) & CachePage::kPageMask) == 0);  in ICacheMatch()
639 DCHECK((reinterpret_cast<intptr_t>(two) & CachePage::kPageMask) == 0); in ICacheMatch()
650 intptr_t start_page = (start & ~CachePage::kPageMask); in AllOnOnePage()
651 intptr_t end_page = ((start + size) & ~CachePage::kPageMask); in AllOnOnePage()
664 int intra_line = (start & CachePage::kLineMask); in FlushICache()
667 size = ((size - 1) | CachePage::kLineMask) + 1; in FlushICache()
668 int offset = (start & CachePage::kPageMask); in FlushICache()
670 int bytes_to_flush = CachePage::kPageSize - offset; in FlushICache()
674 DCHECK_EQ(0, static_cast<int>(start & CachePage::kPageMask)); in FlushICache()
682 CachePage* Simulator::GetCachePage(base::CustomMatcherHashMap* i_cache, in GetCachePage()
686 CachePage* new_page = new CachePage(); in GetCachePage()
689 return reinterpret_cast<CachePage*>(entry->value); in GetCachePage()
696 DCHECK(size <= CachePage::kPageSize); in FlushOnePage()
698 DCHECK((start & CachePage::kLineMask) == 0); in FlushOnePage()
699 DCHECK((size & CachePage::kLineMask) == 0); in FlushOnePage()
700 void* page = reinterpret_cast<void*>(start & (~CachePage::kPageMask)); in FlushOnePage()
701 int offset = (start & CachePage::kPageMask); in FlushOnePage()
702 CachePage* cache_page = GetCachePage(i_cache, page); in FlushOnePage()
704 memset(valid_bytemap, CachePage::LINE_INVALID, size >> CachePage::kLineShift); in FlushOnePage()
710 void* page = reinterpret_cast<void*>(address & (~CachePage::kPageMask)); in CheckICache()
711 void* line = reinterpret_cast<void*>(address & (~CachePage::kLineMask)); in CheckICache()
712 int offset = (address & CachePage::kPageMask); in CheckICache()
713 CachePage* cache_page = GetCachePage(i_cache, page); in CheckICache()
715 bool cache_hit = (*cache_valid_byte == CachePage::LINE_VALID); in CheckICache()
716 char* cached_line = cache_page->CachedData(offset & ~CachePage::kLineMask); in CheckICache()
724 memcpy(cached_line, line, CachePage::kLineLength); in CheckICache()
725 *cache_valid_byte = CachePage::LINE_VALID; in CheckICache()
882 delete static_cast<CachePage*>(entry->value); in TearDown()