ConstantPool: Externalize memory allocation

This commit is contained in:
MerryMage
2017-03-21 18:37:48 +00:00
parent 615fcc621d
commit da434e1a1c
6 changed files with 33 additions and 50 deletions

View File

@ -44,7 +44,7 @@ public:
}
// Call this before you generate any code.
virtual void AllocCodeSpace(size_t size, bool need_low = true)
void AllocCodeSpace(size_t size, bool need_low = true)
{
region_size = size;
total_region_size = size;
@ -54,7 +54,7 @@ public:
// Always clear code space with breakpoints, so that if someone accidentally executes
// uninitialized, it just breaks into the debugger.
virtual void ClearCodeSpace()
void ClearCodeSpace()
{
PoisonMemory();
ResetCodePtr();