Lines Matching refs:Seg
28 MutableArrayRef<char> getWorkingMemory(ProtectionFlags Seg) override { in allocate() argument
29 assert(SegBlocks.count(Seg) && "No allocation for segment"); in allocate()
30 return {static_cast<char *>(SegBlocks[Seg].base()), in allocate()
31 SegBlocks[Seg].allocatedSize()}; in allocate()
33 JITTargetAddress getTargetMemory(ProtectionFlags Seg) override { in allocate() argument
34 assert(SegBlocks.count(Seg) && "No allocation for segment"); in allocate()
35 return pointerToJITTargetAddress(SegBlocks[Seg].base()); in allocate()
88 const auto &Seg = KV.second; in allocate() local
90 if (Seg.getAlignment() > sys::Process::getPageSizeEstimate()) in allocate()
96 TotalSize += Seg.getContentSize(); in allocate()
97 TotalSize += Seg.getZeroFillSize(); in allocate()
111 const auto &Seg = KV.second; in allocate() local
113 uint64_t SegmentSize = alignTo(Seg.getContentSize() + Seg.getZeroFillSize(), in allocate()
121 memset(static_cast<char *>(SegMem.base()) + Seg.getContentSize(), 0, in allocate()
122 Seg.getZeroFillSize()); in allocate()