- minor cleanups in header file

This commit is contained in:
Magnus Norddahl 2018-09-13 02:38:51 +02:00 committed by drfrag
parent 9d970a1acb
commit ff8d21b2ec
2 changed files with 9 additions and 11 deletions

View file

@ -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;

View file

@ -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)
{