Lines Matching refs:CachePage
721 DCHECK((reinterpret_cast<intptr_t>(one) & CachePage::kPageMask) == 0); in ICacheMatch()
722 DCHECK((reinterpret_cast<intptr_t>(two) & CachePage::kPageMask) == 0); in ICacheMatch()
733 intptr_t start_page = (start & ~CachePage::kPageMask); in AllOnOnePage()
734 intptr_t end_page = ((start + size) & ~CachePage::kPageMask); in AllOnOnePage()
747 int64_t intra_line = (start & CachePage::kLineMask); in FlushICache()
750 size = ((size - 1) | CachePage::kLineMask) + 1; in FlushICache()
751 int offset = (start & CachePage::kPageMask); in FlushICache()
753 int bytes_to_flush = CachePage::kPageSize - offset; in FlushICache()
757 DCHECK_EQ((int64_t)0, start & CachePage::kPageMask); in FlushICache()
765 CachePage* Simulator::GetCachePage(base::CustomMatcherHashMap* i_cache, in GetCachePage()
769 CachePage* new_page = new CachePage(); in GetCachePage()
772 return reinterpret_cast<CachePage*>(entry->value); in GetCachePage()
779 DCHECK(size <= CachePage::kPageSize); in FlushOnePage()
781 DCHECK((start & CachePage::kLineMask) == 0); in FlushOnePage()
782 DCHECK((size & CachePage::kLineMask) == 0); in FlushOnePage()
783 void* page = reinterpret_cast<void*>(start & (~CachePage::kPageMask)); in FlushOnePage()
784 int offset = (start & CachePage::kPageMask); in FlushOnePage()
785 CachePage* cache_page = GetCachePage(i_cache, page); in FlushOnePage()
787 memset(valid_bytemap, CachePage::LINE_INVALID, size >> CachePage::kLineShift); in FlushOnePage()
793 void* page = reinterpret_cast<void*>(address & (~CachePage::kPageMask)); in CheckICache()
794 void* line = reinterpret_cast<void*>(address & (~CachePage::kLineMask)); in CheckICache()
795 int offset = (address & CachePage::kPageMask); in CheckICache()
796 CachePage* cache_page = GetCachePage(i_cache, page); in CheckICache()
798 bool cache_hit = (*cache_valid_byte == CachePage::LINE_VALID); in CheckICache()
799 char* cached_line = cache_page->CachedData(offset & ~CachePage::kLineMask); in CheckICache()
807 memcpy(cached_line, line, CachePage::kLineLength); in CheckICache()
808 *cache_valid_byte = CachePage::LINE_VALID; in CheckICache()
944 delete static_cast<CachePage*>(entry->value); in TearDown()