sourcepawn/jit/jit_function.h
author David Anderson <dvander@alliedmods.net>
Sun Oct 26 23:50:54 2008 -0500 (2008-10-26)
changeset 2377 6ee3bbd6fbdf
parent 2226 d10b38524be3
child 4013 6201c1180e0e
permissions -rw-r--r--
Fixed leaking relocation table memory in JIT.
     1 #ifndef _INCLUDE_SOURCEPAWN_JIT2_FUNCTION_H_
     2 #define _INCLUDE_SOURCEPAWN_JIT2_FUNCTION_H_
     3 
     4 #include <sp_vm_types.h>
     5 
     6 class JitFunction
     7 {
     8 public:
     9 	JitFunction(void *entry_addr, cell_t pcode_offs);
    10 	~JitFunction();
    11 public:
    12 	void *GetEntryAddress();
    13 	cell_t GetPCodeAddress();
    14 private:
    15 	void *m_pEntryAddr;
    16 	cell_t m_PcodeOffs;
    17 };
    18 
    19 #endif //_INCLUDE_SOURCEPAWN_JIT2_FUNCTION_H_