sourcepawn/jit/jit_function.cpp
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--
Added ISDKHooks interface with entity listeners (bug 5602, r=psychonic).
     1 #include "jit_function.h"
     2 #include "sp_vm_engine.h"
     3 #include "jit_x86.h"
     4 
     5 JitFunction::JitFunction(void *entry_addr, cell_t pcode_offs)
     6 : m_pEntryAddr(entry_addr), m_PcodeOffs(pcode_offs)
     7 {
     8 }
     9 
    10 JitFunction::~JitFunction()
    11 {
    12 	g_Jit.FreeCode(m_pEntryAddr);
    13 }
    14 
    15 void *JitFunction::GetEntryAddress()
    16 {
    17 	return m_pEntryAddr;
    18 }
    19 
    20 cell_t JitFunction::GetPCodeAddress()
    21 {
    22 	return m_PcodeOffs;
    23 }