Lines Matching refs:CachePage
555 DCHECK((reinterpret_cast<intptr_t>(one) & CachePage::kPageMask) == 0);
556 DCHECK((reinterpret_cast<intptr_t>(two) & CachePage::kPageMask) == 0);
567 intptr_t start_page = (start & ~CachePage::kPageMask);
568 intptr_t end_page = ((start + size) & ~CachePage::kPageMask);
581 int intra_line = (start & CachePage::kLineMask);
584 size = ((size - 1) | CachePage::kLineMask) + 1;
585 int offset = (start & CachePage::kPageMask);
587 int bytes_to_flush = CachePage::kPageSize - offset;
591 DCHECK_EQ(0, start & CachePage::kPageMask);
599 CachePage* Simulator::GetCachePage(base::CustomMatcherHashMap* i_cache,
603 CachePage* new_page = new CachePage();
606 return reinterpret_cast<CachePage*>(entry->value);
613 DCHECK(size <= CachePage::kPageSize);
615 DCHECK((start & CachePage::kLineMask) == 0);
616 DCHECK((size & CachePage::kLineMask) == 0);
617 void* page = reinterpret_cast<void*>(start & (~CachePage::kPageMask));
618 int offset = (start & CachePage::kPageMask);
619 CachePage* cache_page = GetCachePage(i_cache, page);
621 memset(valid_bytemap, CachePage::LINE_INVALID, size >> CachePage::kLineShift);
627 void* page = reinterpret_cast<void*>(address & (~CachePage::kPageMask));
628 void* line = reinterpret_cast<void*>(address & (~CachePage::kLineMask));
629 int offset = (address & CachePage::kPageMask);
630 CachePage* cache_page = GetCachePage(i_cache, page);
632 bool cache_hit = (*cache_valid_byte == CachePage::LINE_VALID);
633 char* cached_line = cache_page->CachedData(offset & ~CachePage::kLineMask);
641 memcpy(cached_line, line, CachePage::kLineLength);
642 *cache_valid_byte = CachePage::LINE_VALID;
795 delete static_cast<CachePage*>(entry->value);