| author | David Anderson <dvander@alliedmods.net> |
| Wed Feb 25 20:07:12 2009 -0500 (2009-02-25) | |
| changeset 2607 | f3b8bbe17f85 |
| parent 2226 | d10b38524be3 |
| child 4013 | 6201c1180e0e |
| permissions | -rw-r--r-- |
1 #include "jit_function.h"
2 #include "sp_vm_engine.h"
3 #include "jit_x86.h"
5 JitFunction::JitFunction(void *entry_addr, cell_t pcode_offs)
6 : m_pEntryAddr(entry_addr), m_PcodeOffs(pcode_offs)
7 {
8 }
10 JitFunction::~JitFunction()
11 {
12 g_Jit.FreeCode(m_pEntryAddr);
13 }
15 void *JitFunction::GetEntryAddress()
16 {
17 return m_pEntryAddr;
18 }
20 cell_t JitFunction::GetPCodeAddress()
21 {
22 return m_PcodeOffs;
23 }