Lines Matching refs:CachePage
773 DCHECK((reinterpret_cast<intptr_t>(one) & CachePage::kPageMask) == 0); in ICacheMatch()
774 DCHECK((reinterpret_cast<intptr_t>(two) & CachePage::kPageMask) == 0); in ICacheMatch()
785 intptr_t start_page = (start & ~CachePage::kPageMask); in AllOnOnePage()
786 intptr_t end_page = ((start + size) & ~CachePage::kPageMask); in AllOnOnePage()
801 int64_t intra_line = (start & CachePage::kLineMask); in FlushICache()
804 size = ((size - 1) | CachePage::kLineMask) + 1; in FlushICache()
805 int offset = (start & CachePage::kPageMask); in FlushICache()
807 int bytes_to_flush = CachePage::kPageSize - offset; in FlushICache()
811 DCHECK_EQ((uint64_t)0, start & CachePage::kPageMask); in FlushICache()
820 CachePage* Simulator::GetCachePage(v8::internal::HashMap* i_cache, void* page) { in GetCachePage()
825 CachePage* new_page = new CachePage(); in GetCachePage()
828 return reinterpret_cast<CachePage*>(entry->value); in GetCachePage()
836 DCHECK(size <= CachePage::kPageSize); in FlushOnePage()
838 DCHECK((start & CachePage::kLineMask) == 0); in FlushOnePage()
839 DCHECK((size & CachePage::kLineMask) == 0); in FlushOnePage()
840 void* page = reinterpret_cast<void*>(start & (~CachePage::kPageMask)); in FlushOnePage()
841 int offset = (start & CachePage::kPageMask); in FlushOnePage()
842 CachePage* cache_page = GetCachePage(i_cache, page); in FlushOnePage()
844 memset(valid_bytemap, CachePage::LINE_INVALID, size >> CachePage::kLineShift); in FlushOnePage()
851 void* page = reinterpret_cast<void*>(address & (~CachePage::kPageMask)); in CheckICache()
852 void* line = reinterpret_cast<void*>(address & (~CachePage::kLineMask)); in CheckICache()
853 int offset = (address & CachePage::kPageMask); in CheckICache()
854 CachePage* cache_page = GetCachePage(i_cache, page); in CheckICache()
856 bool cache_hit = (*cache_valid_byte == CachePage::LINE_VALID); in CheckICache()
857 char* cached_line = cache_page->CachedData(offset & ~CachePage::kLineMask); in CheckICache()
865 memcpy(cached_line, line, CachePage::kLineLength); in CheckICache()
866 *cache_valid_byte = CachePage::LINE_VALID; in CheckICache()