Lines Matching refs:CachePage

611   DCHECK((reinterpret_cast<intptr_t>(one) & CachePage::kPageMask) == 0);  in ICacheMatch()
612 DCHECK((reinterpret_cast<intptr_t>(two) & CachePage::kPageMask) == 0); in ICacheMatch()
623 intptr_t start_page = (start & ~CachePage::kPageMask); in AllOnOnePage()
624 intptr_t end_page = ((start + size) & ~CachePage::kPageMask); in AllOnOnePage()
639 int intra_line = (start & CachePage::kLineMask); in FlushICache()
642 size = ((size - 1) | CachePage::kLineMask) + 1; in FlushICache()
643 int offset = (start & CachePage::kPageMask); in FlushICache()
645 int bytes_to_flush = CachePage::kPageSize - offset; in FlushICache()
649 DCHECK_EQ(0, start & CachePage::kPageMask); in FlushICache()
658 CachePage* Simulator::GetCachePage(v8::internal::HashMap* i_cache, void* page) { in GetCachePage()
663 CachePage* new_page = new CachePage(); in GetCachePage()
666 return reinterpret_cast<CachePage*>(entry->value); in GetCachePage()
674 DCHECK(size <= CachePage::kPageSize); in FlushOnePage()
676 DCHECK((start & CachePage::kLineMask) == 0); in FlushOnePage()
677 DCHECK((size & CachePage::kLineMask) == 0); in FlushOnePage()
678 void* page = reinterpret_cast<void*>(start & (~CachePage::kPageMask)); in FlushOnePage()
679 int offset = (start & CachePage::kPageMask); in FlushOnePage()
680 CachePage* cache_page = GetCachePage(i_cache, page); in FlushOnePage()
682 memset(valid_bytemap, CachePage::LINE_INVALID, size >> CachePage::kLineShift); in FlushOnePage()
689 void* page = reinterpret_cast<void*>(address & (~CachePage::kPageMask)); in CheckICache()
690 void* line = reinterpret_cast<void*>(address & (~CachePage::kLineMask)); in CheckICache()
691 int offset = (address & CachePage::kPageMask); in CheckICache()
692 CachePage* cache_page = GetCachePage(i_cache, page); in CheckICache()
694 bool cache_hit = (*cache_valid_byte == CachePage::LINE_VALID); in CheckICache()
695 char* cached_line = cache_page->CachedData(offset & ~CachePage::kLineMask); in CheckICache()
703 memcpy(cached_line, line, CachePage::kLineLength); in CheckICache()
704 *cache_valid_byte = CachePage::LINE_VALID; in CheckICache()