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