mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-11 07:11:54 +00:00
- minor cleanups in header file
This commit is contained in:
parent
ef170883ef
commit
fad8c9c7b4
2 changed files with 9 additions and 11 deletions
|
@ -92,10 +92,15 @@ JitFuncPtr JitCompile(VMScriptFunction *sfunc)
|
|||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
static const char *OpNames[NUM_OPS] =
|
||||
{
|
||||
#define xx(op, name, mode, alt, kreg, ktype) #op
|
||||
#include "vmops.h"
|
||||
#undef xx
|
||||
};
|
||||
|
||||
void JitCompiler::Codegen()
|
||||
{
|
||||
using namespace asmjit;
|
||||
|
||||
Setup();
|
||||
|
||||
pc = sfunc->Code;
|
||||
|
|
|
@ -24,13 +24,6 @@ extern int VMCalls[10];
|
|||
#define ABCs (pc[0].i24)
|
||||
#define JMPOFS(x) ((x)->i24)
|
||||
|
||||
static const char *OpNames[NUM_OPS] =
|
||||
{
|
||||
#define xx(op, name, mode, alt, kreg, ktype) #op
|
||||
#include "vmops.h"
|
||||
#undef xx
|
||||
};
|
||||
|
||||
class JitCompiler
|
||||
{
|
||||
public:
|
||||
|
@ -46,15 +39,15 @@ private:
|
|||
#include "vmops.h"
|
||||
#undef xx
|
||||
|
||||
void Setup();
|
||||
void EmitOpcode();
|
||||
|
||||
void EmitDoCall(asmjit::X86Gp ptr);
|
||||
void StoreInOuts(int b);
|
||||
void LoadReturns(const VMOP *retval, int numret, bool inout);
|
||||
void FillReturns(const VMOP *retval, int numret);
|
||||
static int DoCall(VMFrameStack *stack, VMFunction *call, int b, int c, VMValue *param, VMReturn *returns, JitExceptionInfo *exceptinfo);
|
||||
|
||||
void Setup();
|
||||
|
||||
template <typename Func>
|
||||
void EmitComparisonOpcode(Func jmpFunc)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue