2016-01-27 09:11:59 +00:00
|
|
|
#pragma once
|
2016-06-27 10:54:53 +00:00
|
|
|
#include <Project64-core/N64System/Recompiler/x86/x86ops.h>
|
2016-01-27 09:11:59 +00:00
|
|
|
|
2016-06-28 11:22:30 +00:00
|
|
|
class CRecompMemory
|
2016-01-27 09:11:59 +00:00
|
|
|
{
|
|
|
|
protected:
|
|
|
|
CRecompMemory();
|
|
|
|
~CRecompMemory();
|
|
|
|
|
|
|
|
bool AllocateMemory();
|
|
|
|
void CheckRecompMem();
|
|
|
|
void Reset();
|
|
|
|
void ShowMemUsed();
|
|
|
|
|
2016-06-28 11:22:30 +00:00
|
|
|
public:
|
|
|
|
uint8_t** RecompPos() { return &m_RecompPos; }
|
2016-01-27 09:11:59 +00:00
|
|
|
|
|
|
|
private:
|
2021-04-13 00:07:11 +00:00
|
|
|
CRecompMemory(const CRecompMemory&);
|
|
|
|
CRecompMemory& operator=(const CRecompMemory&);
|
2016-01-27 09:11:59 +00:00
|
|
|
|
|
|
|
uint8_t * m_RecompCode;
|
|
|
|
uint32_t m_RecompSize;
|
2016-06-28 11:22:30 +00:00
|
|
|
uint8_t * m_RecompPos;
|
2016-01-27 09:11:59 +00:00
|
|
|
|
|
|
|
enum { MaxCompileBufferSize = 0x03C00000 };
|
|
|
|
enum { InitialCompileBufferSize = 0x00500000 };
|
|
|
|
enum { IncreaseCompileBufferSize = 0x00100000 };
|
|
|
|
};
|