62 unsigned char* SharkMemoryManager::startExceptionTable(const Function* F,
63 uintptr_t& ActualSize) {
64 return mm()->startExceptionTable(F, ActualSize);
65 }
66
67 void SharkMemoryManager::endExceptionTable(const Function* F,
68 unsigned char* TableStart,
69 unsigned char* TableEnd,
70 unsigned char* FrameRegister) {
71 mm()->endExceptionTable(F, TableStart, TableEnd, FrameRegister);
72 }
73
74 void SharkMemoryManager::setMemoryWritable() {
75 mm()->setMemoryWritable();
76 }
77
78 void SharkMemoryManager::setMemoryExecutable() {
79 mm()->setMemoryExecutable();
80 }
81
82 #if SHARK_LLVM_VERSION >= 27
83 void SharkMemoryManager::deallocateExceptionTable(void *ptr) {
84 mm()->deallocateExceptionTable(ptr);
85 }
86
87 void SharkMemoryManager::deallocateFunctionBody(void *ptr) {
88 mm()->deallocateFunctionBody(ptr);
89 }
90 #else
91 void SharkMemoryManager::deallocateMemForFunction(const Function* F) {
92 return mm()->deallocateMemForFunction(F);
93 }
94 #endif
95
96 uint8_t* SharkMemoryManager::allocateGlobal(uintptr_t Size,
97 unsigned int Alignment) {
98 return mm()->allocateGlobal(Size, Alignment);
99 }
100
101 #if SHARK_LLVM_VERSION < 27
102 void* SharkMemoryManager::getDlsymTable() const {
103 return mm()->getDlsymTable();
104 }
105
106 void SharkMemoryManager::SetDlsymTable(void *ptr) {
107 mm()->SetDlsymTable(ptr);
108 }
109 #endif
110
111 void SharkMemoryManager::setPoisonMemory(bool poison) {
112 mm()->setPoisonMemory(poison);
113 }
114
115 unsigned char *SharkMemoryManager::allocateSpace(intptr_t Size,
116 unsigned int Alignment) {
117 return mm()->allocateSpace(Size, Alignment);
118 }
|
62 unsigned char* SharkMemoryManager::startExceptionTable(const Function* F,
63 uintptr_t& ActualSize) {
64 return mm()->startExceptionTable(F, ActualSize);
65 }
66
67 void SharkMemoryManager::endExceptionTable(const Function* F,
68 unsigned char* TableStart,
69 unsigned char* TableEnd,
70 unsigned char* FrameRegister) {
71 mm()->endExceptionTable(F, TableStart, TableEnd, FrameRegister);
72 }
73
74 void SharkMemoryManager::setMemoryWritable() {
75 mm()->setMemoryWritable();
76 }
77
78 void SharkMemoryManager::setMemoryExecutable() {
79 mm()->setMemoryExecutable();
80 }
81
82 void SharkMemoryManager::deallocateExceptionTable(void *ptr) {
83 mm()->deallocateExceptionTable(ptr);
84 }
85
86 void SharkMemoryManager::deallocateFunctionBody(void *ptr) {
87 mm()->deallocateFunctionBody(ptr);
88 }
89
90 uint8_t* SharkMemoryManager::allocateGlobal(uintptr_t Size,
91 unsigned int Alignment) {
92 return mm()->allocateGlobal(Size, Alignment);
93 }
94
95 void* SharkMemoryManager::getPointerToNamedFunction(const std::string &Name, bool AbortOnFailure) {
96 return mm()->getPointerToNamedFunction(Name, AbortOnFailure);
97 }
98
99 uint8_t* SharkMemoryManager::allocateCodeSection(uintptr_t Size, unsigned Alignment, unsigned SectionID) {
100 return mm()->allocateCodeSection(Size, Alignment, SectionID);
101 }
102
103 uint8_t* SharkMemoryManager::allocateDataSection(uintptr_t Size, unsigned Alignment, unsigned SectionID) {
104 return mm()->allocateDataSection(Size, Alignment, SectionID);
105 }
106
107 void SharkMemoryManager::setPoisonMemory(bool poison) {
108 mm()->setPoisonMemory(poison);
109 }
110
111 unsigned char *SharkMemoryManager::allocateSpace(intptr_t Size,
112 unsigned int Alignment) {
113 return mm()->allocateSpace(Size, Alignment);
114 }
|