Commit bbcc4e10 by Nicolas Capens Committed by Nicolas Capens

Delete routines on demand.

BUG=15907357 Change-Id: I1aebdaa2aa17a88c7de6b181662fb86617b3dc55 Reviewed-on: https://swiftshader-review.googlesource.com/1145Reviewed-by: 's avatarNicolas Capens <nicolascapens@google.com>
parent d946e0a3
......@@ -15,6 +15,7 @@
#include "llvm/Function.h"
#include "../Common/Memory.hpp"
#include "../Common/Thread.hpp"
#include "../Common/Debug.hpp"
namespace sw
{
......@@ -34,13 +35,12 @@ namespace sw
void RoutineManager::AllocateGOT()
{
// FIXME: ASSERT(false);
UNIMPLEMENTED();
}
uint8_t *RoutineManager::allocateStub(const GlobalValue *function, unsigned stubSize, unsigned alignment)
{
// FIXME: ASSERT(false);
UNIMPLEMENTED();
return 0;
}
......@@ -78,37 +78,42 @@ namespace sw
uint8_t *RoutineManager::startExceptionTable(const llvm::Function* F, uintptr_t &ActualSize)
{
// FIXME: ASSERT(false);
UNIMPLEMENTED();
return 0;
}
void RoutineManager::endExceptionTable(const llvm::Function *F, uint8_t *TableStart, uint8_t *TableEnd, uint8_t* FrameRegister)
{
// FIXME: ASSERT(false);
UNIMPLEMENTED();
}
uint8_t *RoutineManager::getGOTBase() const
{
ASSERT(!HasGOT);
return 0;
}
uint8_t *RoutineManager::allocateSpace(intptr_t Size, unsigned Alignment)
{
UNIMPLEMENTED();
return 0;
}
uint8_t *RoutineManager::allocateGlobal(uintptr_t Size, unsigned Alignment)
{
UNIMPLEMENTED();
return 0;
}
void RoutineManager::deallocateFunctionBody(void *Body)
{
delete routine;
routine = 0;
}
void RoutineManager::deallocateExceptionTable(void *ET)
{
UNIMPLEMENTED();
}
void RoutineManager::setMemoryWritable()
......@@ -122,6 +127,7 @@ namespace sw
void RoutineManager::setPoisonMemory(bool poison)
{
UNIMPLEMENTED();
}
Routine *RoutineManager::acquireRoutine(void *entry)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment