2010-05-30 01:54:42 +00:00
|
|
|
class CRecompMemory :
|
|
|
|
protected CX86Ops
|
2010-05-25 09:15:19 +00:00
|
|
|
{
|
|
|
|
protected:
|
|
|
|
CRecompMemory();
|
|
|
|
~CRecompMemory();
|
|
|
|
|
|
|
|
bool AllocateMemory ( void );
|
2010-05-30 01:54:42 +00:00
|
|
|
void CheckRecompMem ( void );
|
2010-06-12 02:02:06 +00:00
|
|
|
void Reset ( void );
|
2010-05-30 01:54:42 +00:00
|
|
|
|
|
|
|
inline BYTE * RecompPos ( void ) const { return m_RecompPos; }
|
2010-05-25 09:15:19 +00:00
|
|
|
|
2010-05-30 01:54:42 +00:00
|
|
|
private:
|
2010-05-25 09:15:19 +00:00
|
|
|
BYTE * m_RecompCode;
|
|
|
|
DWORD m_RecompSize;
|
|
|
|
|
|
|
|
enum { MaxCompileBufferSize = 0x03C00000 };
|
|
|
|
enum { InitialCompileBufferSize = 0x00500000 };
|
|
|
|
enum { IncreaseCompileBufferSize = 0x00100000 };
|
|
|
|
};
|