Lines Matching refs:CachePage
843 DCHECK((reinterpret_cast<intptr_t>(one) & CachePage::kPageMask) == 0); in ICacheMatch()
844 DCHECK((reinterpret_cast<intptr_t>(two) & CachePage::kPageMask) == 0); in ICacheMatch()
855 intptr_t start_page = (start & ~CachePage::kPageMask); in AllOnOnePage()
856 intptr_t end_page = ((start + size) & ~CachePage::kPageMask); in AllOnOnePage()
871 int intra_line = (start & CachePage::kLineMask); in FlushICache()
874 size = ((size - 1) | CachePage::kLineMask) + 1; in FlushICache()
875 int offset = (start & CachePage::kPageMask); in FlushICache()
877 int bytes_to_flush = CachePage::kPageSize - offset; in FlushICache()
881 DCHECK_EQ(0, start & CachePage::kPageMask); in FlushICache()
890 CachePage* Simulator::GetCachePage(v8::internal::HashMap* i_cache, void* page) { in GetCachePage()
895 CachePage* new_page = new CachePage(); in GetCachePage()
898 return reinterpret_cast<CachePage*>(entry->value); in GetCachePage()
906 DCHECK(size <= CachePage::kPageSize); in FlushOnePage()
908 DCHECK((start & CachePage::kLineMask) == 0); in FlushOnePage()
909 DCHECK((size & CachePage::kLineMask) == 0); in FlushOnePage()
910 void* page = reinterpret_cast<void*>(start & (~CachePage::kPageMask)); in FlushOnePage()
911 int offset = (start & CachePage::kPageMask); in FlushOnePage()
912 CachePage* cache_page = GetCachePage(i_cache, page); in FlushOnePage()
914 memset(valid_bytemap, CachePage::LINE_INVALID, size >> CachePage::kLineShift); in FlushOnePage()
921 void* page = reinterpret_cast<void*>(address & (~CachePage::kPageMask)); in CheckICache()
922 void* line = reinterpret_cast<void*>(address & (~CachePage::kLineMask)); in CheckICache()
923 int offset = (address & CachePage::kPageMask); in CheckICache()
924 CachePage* cache_page = GetCachePage(i_cache, page); in CheckICache()
926 bool cache_hit = (*cache_valid_byte == CachePage::LINE_VALID); in CheckICache()
927 char* cached_line = cache_page->CachedData(offset & ~CachePage::kLineMask); in CheckICache()
935 memcpy(cached_line, line, CachePage::kLineLength); in CheckICache()
936 *cache_valid_byte = CachePage::LINE_VALID; in CheckICache()