| author | Nicholas Hastings <skamonkey@gmail.com> |
| Sat Feb 09 14:21:50 2013 -0500 (2013-02-09) | |
| changeset 3776 | eb6b82fb00f3 |
| 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 }