Lines Matching refs:MemMgr
284 JITMemoryManager *MemMgr; member in __anon51408e480111::JITEmitter
373 MemMgr = JMM ? JMM : JITMemoryManager::CreateDefaultMemManager(); in JITEmitter()
375 MemMgr->AllocateGOT(); in JITEmitter()
384 delete MemMgr; in ~JITEmitter()
782 MemMgr->setMemoryWritable(); in startFunction()
789 BufferBegin = CurBufferPtr = MemMgr->startFunctionBody(F.getFunction(), in startFunction()
816 MemMgr->endFunctionBody(F.getFunction(), BufferBegin, CurBufferPtr); in finishFunction()
873 if (MR.isGOTRelative() && MemMgr->isManagingGOT()) { in finishFunction()
876 if (((void**)MemMgr->getGOTBase())[idx] != ResultPtr) { in finishFunction()
878 << " pointing at " << ((void**)MemMgr->getGOTBase())[idx] in finishFunction()
880 ((void**)MemMgr->getGOTBase())[idx] = ResultPtr; in finishFunction()
887 Relocations.size(), MemMgr->getGOTBase()); in finishFunction()
891 if (MemMgr->isManagingGOT()) { in finishFunction()
893 if (((void**)MemMgr->getGOTBase())[idx] != (void*)BufferBegin) { in finishFunction()
895 << " pointing at " << ((void**)MemMgr->getGOTBase())[idx] in finishFunction()
897 ((void**)MemMgr->getGOTBase())[idx] = (void*)BufferBegin; in finishFunction()
903 MemMgr->endFunctionBody(F.getFunction(), BufferBegin, CurBufferPtr); in finishFunction()
935 MemMgr->setMemoryExecutable(); in finishFunction()
975 BufferBegin = CurBufferPtr = MemMgr->startExceptionTable(F.getFunction(), in finishFunction()
988 MemMgr->deallocateExceptionTable(BufferBegin); in finishFunction()
990 MemMgr->endExceptionTable(F.getFunction(), BufferBegin, CurBufferPtr, in finishFunction()
1029 MemMgr->deallocateFunctionBody(Emitted->second.FunctionBody); in deallocateMemForFunction()
1030 MemMgr->deallocateExceptionTable(Emitted->second.ExceptionTable); in deallocateMemForFunction()
1049 BufferBegin = CurBufferPtr = MemMgr->allocateSpace(Size, Alignment); in allocateSpace()
1056 return MemMgr->allocateGlobal(Size, Alignment); in allocateGlobal()
1186 BufferBegin = CurBufferPtr = MemMgr->allocateStub(GV, StubSize, Alignment); in startGVStub()
1210 uint8_t *IndGV = MemMgr->allocateStub(GV, Size, Alignment); in allocIndirectGV()