Searched refs:kShadowCnt (Results 1 – 10 of 10) sorted by relevance
588 ^ Mapping::kAppMemXor) * kShadowCnt; in MemToShadowImpl()591 return ((x & ~(kShadowCell - 1)) * kShadowCnt) | Mapping::kShadowBeg; in MemToShadowImpl()593 return ((x & ~(kShadowCell - 1)) * kShadowCnt) + Mapping::kShadowBeg; in MemToShadowImpl()657 return (s / kShadowCnt) ^ Mapping::kAppMemXor; in ShadowToMemImpl()661 return ((s / kShadowCnt) ^ Mapping::kAppMemXor) + Mapping::kMidShadowOff; in ShadowToMemImpl()664 return ((s / kShadowCnt) ^ Mapping::kAppMemXor) | Mapping::kAppMemMsk; in ShadowToMemImpl()667 return (s & ~Mapping::kShadowBeg) / kShadowCnt; in ShadowToMemImpl()669 return (s - Mapping::kShadowBeg) / kShadowCnt; in ShadowToMemImpl()
63 const uptr kShadowCnt = 4; variable72 const uptr kShadowMultiplier = kShadowSize * kShadowCnt / kShadowCell;
343 if (!IsShadowMem((uptr)(shadow_mem + size * kShadowCnt / 8 - 1))) { in MemoryAccessRange()345 shadow_mem + size * kShadowCnt / 8 - 1, addr + size - 1); in MemoryAccessRange()346 DCHECK(IsShadowMem((uptr)(shadow_mem + size * kShadowCnt / 8 - 1))); in MemoryAccessRange()379 shadow_mem += kShadowCnt; in MemoryAccessRange()388 shadow_mem += kShadowCnt; in MemoryAccessRange()
628 StoreShadow(shadow_mem + (cur.epoch() % kShadowCnt), store_word); in MemoryAccessImpl1()660 for (uptr i = 0; i < kShadowCnt; i++) { in ContainsSameAccessSlow()855 CHECK(IsShadowMem((uptr)(p + size * kShadowCnt / kShadowCell - 1))); in MemoryRangeSet()857 for (uptr i = 0; i < size / kShadowCell * kShadowCnt;) { in MemoryRangeSet()859 for (uptr j = 1; j < kShadowCnt; j++) in MemoryRangeSet()866 u64 *end = begin + size / kShadowCell * kShadowCnt; in MemoryRangeSet()871 for (uptr j = 1; j < kShadowCnt; j++) in MemoryRangeSet()882 for (uptr j = 1; j < kShadowCnt; j++) in MemoryRangeSet()
825 ^ Mapping::kAppMemXor) * kShadowCnt; in MemToShadowImpl()828 return ((x & ~(kShadowCell - 1)) * kShadowCnt) | Mapping::kShadowBeg; in MemToShadowImpl()830 return ((x & ~(kShadowCell - 1)) * kShadowCnt) + Mapping::kShadowBeg; in MemToShadowImpl()913 uptr p = (s / kShadowCnt) ^ Mapping::kAppMemXor; in ShadowToMemImpl()918 p = ((s / kShadowCnt) ^ Mapping::kAppMemXor) + in ShadowToMemImpl()924 return ((s / kShadowCnt) ^ Mapping::kAppMemXor) | Mapping::kAppMemMsk; in ShadowToMemImpl()927 return (s & ~Mapping::kShadowBeg) / kShadowCnt; in ShadowToMemImpl()929 return (s - Mapping::kShadowBeg) / kShadowCnt; in ShadowToMemImpl()
77 const uptr kShadowCnt = 4; variable86 const uptr kShadowMultiplier = kShadowSize * kShadowCnt / kShadowCell;
367 if (!IsShadowMem((uptr)(shadow_mem + size * kShadowCnt / 8 - 1))) { in MemoryAccessRange()369 shadow_mem + size * kShadowCnt / 8 - 1, addr + size - 1); in MemoryAccessRange()370 DCHECK(IsShadowMem((uptr)(shadow_mem + size * kShadowCnt / 8 - 1))); in MemoryAccessRange()404 shadow_mem += kShadowCnt; in MemoryAccessRange()413 shadow_mem += kShadowCnt; in MemoryAccessRange()
715 StoreShadow(shadow_mem + (cur.epoch() % kShadowCnt), store_word); in MemoryAccessImpl1()747 for (uptr i = 0; i < kShadowCnt; i++) { in ContainsSameAccessSlow()941 CHECK(IsShadowMem((uptr)(p + size * kShadowCnt / kShadowCell - 1))); in MemoryRangeSet()943 for (uptr i = 0; i < size / kShadowCell * kShadowCnt;) { in MemoryRangeSet()945 for (uptr j = 1; j < kShadowCnt; j++) in MemoryRangeSet()952 u64 *end = begin + size / kShadowCell * kShadowCnt; in MemoryRangeSet()957 for (uptr j = 1; j < kShadowCnt; j++) in MemoryRangeSet()969 for (uptr j = 1; j < kShadowCnt; j++) in MemoryRangeSet()
73 CHECK_EQ(s0 + kShadowSize*kShadowCnt, MemToShadow((uptr)&data[i])); in TEST()75 CHECK_EQ(s0 + 2*kShadowSize*kShadowCnt, MemToShadow((uptr)&data[i])); in TEST()
72 CHECK_EQ(s0 + kShadowSize*kShadowCnt, MemToShadow((uptr)&data[i])); in TEST()74 CHECK_EQ(s0 + 2*kShadowSize*kShadowCnt, MemToShadow((uptr)&data[i])); in TEST()