Lines Matching refs:Seg
29 MutableArrayRef<char> getWorkingMemory(ProtectionFlags Seg) override { in allocate() argument
30 assert(SegBlocks.count(Seg) && "No allocation for segment"); in allocate()
31 return {static_cast<char *>(SegBlocks[Seg].base()), in allocate()
32 SegBlocks[Seg].allocatedSize()}; in allocate()
34 JITTargetAddress getTargetMemory(ProtectionFlags Seg) override { in allocate() argument
35 assert(SegBlocks.count(Seg) && "No allocation for segment"); in allocate()
36 return pointerToJITTargetAddress(SegBlocks[Seg].base()); in allocate()
89 const auto &Seg = KV.second; in allocate() local
91 if (Seg.getAlignment() > sys::Process::getPageSizeEstimate()) in allocate()
97 TotalSize += Seg.getContentSize(); in allocate()
98 TotalSize += Seg.getZeroFillSize(); in allocate()
112 const auto &Seg = KV.second; in allocate() local
114 uint64_t SegmentSize = alignTo(Seg.getContentSize() + Seg.getZeroFillSize(), in allocate()
124 memset(static_cast<char *>(SegMem.base()) + Seg.getContentSize(), 0, in allocate()
125 Seg.getZeroFillSize()); in allocate()