Lines Matching refs:CachePage

788   DCHECK((reinterpret_cast<intptr_t>(one) & CachePage::kPageMask) == 0);  in ICacheMatch()
789 DCHECK((reinterpret_cast<intptr_t>(two) & CachePage::kPageMask) == 0); in ICacheMatch()
800 intptr_t start_page = (start & ~CachePage::kPageMask); in AllOnOnePage()
801 intptr_t end_page = ((start + size) & ~CachePage::kPageMask); in AllOnOnePage()
814 int intra_line = (start & CachePage::kLineMask); in FlushICache()
817 size = ((size - 1) | CachePage::kLineMask) + 1; in FlushICache()
818 int offset = (start & CachePage::kPageMask); in FlushICache()
820 int bytes_to_flush = CachePage::kPageSize - offset; in FlushICache()
824 DCHECK_EQ(0, start & CachePage::kPageMask); in FlushICache()
832 CachePage* Simulator::GetCachePage(base::CustomMatcherHashMap* i_cache, in GetCachePage()
837 CachePage* new_page = new CachePage(); in GetCachePage()
840 return reinterpret_cast<CachePage*>(entry->value); in GetCachePage()
847 DCHECK(size <= CachePage::kPageSize); in FlushOnePage()
849 DCHECK((start & CachePage::kLineMask) == 0); in FlushOnePage()
850 DCHECK((size & CachePage::kLineMask) == 0); in FlushOnePage()
851 void* page = reinterpret_cast<void*>(start & (~CachePage::kPageMask)); in FlushOnePage()
852 int offset = (start & CachePage::kPageMask); in FlushOnePage()
853 CachePage* cache_page = GetCachePage(i_cache, page); in FlushOnePage()
855 memset(valid_bytemap, CachePage::LINE_INVALID, size >> CachePage::kLineShift); in FlushOnePage()
861 void* page = reinterpret_cast<void*>(address & (~CachePage::kPageMask)); in CheckICache()
862 void* line = reinterpret_cast<void*>(address & (~CachePage::kLineMask)); in CheckICache()
863 int offset = (address & CachePage::kPageMask); in CheckICache()
864 CachePage* cache_page = GetCachePage(i_cache, page); in CheckICache()
866 bool cache_hit = (*cache_valid_byte == CachePage::LINE_VALID); in CheckICache()
867 char* cached_line = cache_page->CachedData(offset & ~CachePage::kLineMask); in CheckICache()
875 memcpy(cached_line, line, CachePage::kLineLength); in CheckICache()
876 *cache_valid_byte = CachePage::LINE_VALID; in CheckICache()
1010 delete static_cast<CachePage*>(entry->value); in TearDown()