| author | GoD-Tony <aangione@gmail.com> |
| Sun Aug 04 10:03:40 2013 -0400 (2013-08-04) | |
| changeset 3971 | d2e8100b2814 |
| 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 }