Lines Matching refs:sr
302 return (sum(sr.size() for (_, sr) in self.stash_before) -
303 sum(sr.size() for (_, sr) in self.use_stash))
612 for _, sr in xf.stash_before:
613 sh = self.src.RangeSha1(sr)
618 stashed_blocks += sr.size()
619 self.touched_src_ranges = self.touched_src_ranges.union(sr)
620 out.append("stash %s %s\n" % (sh, sr.to_string_raw()))
639 for _, sr in xf.use_stash:
640 unstashed_src_ranges = unstashed_src_ranges.subtract(sr)
641 sh = self.src.RangeSha1(sr)
642 sr = xf.src_ranges.map_within(sr)
643 mapped_stashes.append(sr)
645 src_str_buffer.append("%s:%s" % (sh, sr.to_string_raw()))
649 free_size += sr.size()
821 for stash_raw_id, sr in xf.stash_before:
822 stash_map[stash_raw_id] = (sr, xf)
850 for stash_raw_id, sr in xf.stash_before:
853 sh = self.src.RangeSha1(sr)
855 stashed_blocks_after += sr.size()
862 logger.info("%10d %9s %s", sr.size(), "explicit", use_cmd)
890 for stash_raw_id, sr in cmd.use_stash:
892 assert (stash_raw_id, sr) in def_cmd.stash_before
893 def_cmd.stash_before.remove((stash_raw_id, sr))
901 for _, sr in xf.use_stash:
902 sh = self.src.RangeSha1(sr)
906 stashed_blocks -= sr.size()
1019 for _, sr in xf.use_stash:
1020 x = x.subtract(sr)
1458 used_stash_blocks = sum(sr.size() for _, sr in xf.use_stash)