sourcepawn/jit/jit_function.cpp
author Ruben Gonzalez <drifter01620@gmail.com>
Thu May 22 09:49:27 2014 -0400 (2014-05-22)
changeset 4378 568f4497ef4a
parent 4013 6201c1180e0e
permissions -rw-r--r--
Update CS:GO team score gamedata.
     1 // vim: set ts=8 ts=2 sw=2 tw=99 et:
     2 #include "jit_function.h"
     3 #include "sp_vm_engine.h"
     4 #include "jit_x86.h"
     5 
     6 JitFunction::JitFunction(void *entry_addr, cell_t pcode_offs, LoopEdge *edges, uint32_t nedges)
     7   : m_pEntryAddr(entry_addr),
     8     m_PcodeOffs(pcode_offs),
     9     edges_(edges),
    10     nedges_(nedges)
    11 {
    12 }
    13 
    14 JitFunction::~JitFunction()
    15 {
    16   delete [] edges_;
    17   g_Jit.FreeCode(m_pEntryAddr);
    18 }
    19 
    20 void *
    21 JitFunction::GetEntryAddress() const
    22 {
    23   return m_pEntryAddr;
    24 }
    25 
    26 cell_t
    27 JitFunction::GetPCodeAddress() const
    28 {
    29   return m_PcodeOffs;
    30 }
    31