Searched refs:kShadowCell (Results 1 – 5 of 5) sorted by relevance
70 for (unsigned i = 1; i < kShadowCell; i++) in TEST()72 for (unsigned i = kShadowCell; i < 2*kShadowCell; i++) in TEST()74 for (unsigned i = 2*kShadowCell; i < 3*kShadowCell; i++) in TEST()
367 bool unaligned = (addr % kShadowCell) != 0; in MemoryAccessRange()370 for (; addr % kShadowCell && size; addr++, size--) { in MemoryAccessRange()374 cur.SetAddr0AndSizeLog(addr & (kShadowCell - 1), kAccessSizeLog); in MemoryAccessRange()381 for (; size >= kShadowCell; addr += kShadowCell, size -= kShadowCell) { in MemoryAccessRange()395 cur.SetAddr0AndSizeLog(addr & (kShadowCell - 1), kAccessSizeLog); in MemoryAccessRange()
66 const uptr kShadowCell = 8; variable72 const uptr kShadowMultiplier = kShadowSize * kShadowCnt / kShadowCell;
301 CHECK_EQ(p & ~(kShadowCell - 1), ShadowToMem(s)); in CheckShadowMapping()834 uptr offset = addr % kShadowCell; in MemoryRangeSet()836 offset = kShadowCell - offset; in MemoryRangeSet()849 size = (size + (kShadowCell - 1)) & ~(kShadowCell - 1); in MemoryRangeSet()855 CHECK(IsShadowMem((uptr)(p + size * kShadowCnt / kShadowCell - 1))); in MemoryRangeSet()857 for (uptr i = 0; i < size / kShadowCell * kShadowCnt;) { in MemoryRangeSet()866 u64 *end = begin + size / kShadowCell * kShadowCnt; in MemoryRangeSet()
587 return (((x) & ~(Mapping::kAppMemMsk | (kShadowCell - 1))) in MemToShadowImpl()591 return ((x & ~(kShadowCell - 1)) * kShadowCnt) | Mapping::kShadowBeg; in MemToShadowImpl()593 return ((x & ~(kShadowCell - 1)) * kShadowCnt) + Mapping::kShadowBeg; in MemToShadowImpl()