2012-12-19 09:30:18 +00:00
|
|
|
/****************************************************************************
|
|
|
|
* *
|
2015-11-10 05:21:49 +00:00
|
|
|
* Project64 - A Nintendo 64 emulator. *
|
2012-12-19 09:30:18 +00:00
|
|
|
* http://www.pj64-emu.com/ *
|
|
|
|
* Copyright (C) 2012 Project64. All rights reserved. *
|
|
|
|
* *
|
|
|
|
* License: *
|
|
|
|
* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html *
|
|
|
|
* *
|
|
|
|
****************************************************************************/
|
|
|
|
#pragma once
|
2015-12-06 09:59:58 +00:00
|
|
|
#include "FunctionInfo.h"
|
2012-12-19 09:30:18 +00:00
|
|
|
|
2008-09-18 03:15:49 +00:00
|
|
|
class CFunctionMap
|
|
|
|
{
|
2010-05-25 09:15:19 +00:00
|
|
|
protected:
|
2015-11-09 20:07:54 +00:00
|
|
|
typedef CCompiledFunc * PCCompiledFunc;
|
|
|
|
typedef PCCompiledFunc * PCCompiledFunc_TABLE;
|
2010-05-25 09:15:19 +00:00
|
|
|
|
2015-11-09 20:07:54 +00:00
|
|
|
CFunctionMap();
|
|
|
|
~CFunctionMap();
|
2010-05-25 09:15:19 +00:00
|
|
|
|
2015-11-09 20:07:54 +00:00
|
|
|
bool AllocateMemory();
|
|
|
|
void Reset(bool bAllocate);
|
2010-06-12 02:02:06 +00:00
|
|
|
|
2010-06-16 07:31:47 +00:00
|
|
|
public:
|
2015-11-09 20:07:54 +00:00
|
|
|
PCCompiledFunc_TABLE * FunctionTable() const { return m_FunctionTable; }
|
|
|
|
PCCompiledFunc * JumpTable() const { return m_JumpTable; }
|
2010-06-12 02:02:06 +00:00
|
|
|
|
|
|
|
private:
|
2015-11-09 20:07:54 +00:00
|
|
|
void CleanBuffers();
|
2010-05-25 09:15:19 +00:00
|
|
|
|
2015-11-09 20:07:54 +00:00
|
|
|
PCCompiledFunc * m_JumpTable;
|
|
|
|
PCCompiledFunc_TABLE * m_FunctionTable;
|
2008-09-18 03:15:49 +00:00
|
|
|
};
|