mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-16 17:41:19 +00:00
- minor cleanups in header file
This commit is contained in:
parent
9d970a1acb
commit
ff8d21b2ec
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()
|
void JitCompiler::Codegen()
|
||||||
{
|
{
|
||||||
using namespace asmjit;
|
|
||||||
|
|
||||||
Setup();
|
Setup();
|
||||||
|
|
||||||
pc = sfunc->Code;
|
pc = sfunc->Code;
|
||||||
|
|
|
@ -24,13 +24,6 @@ extern int VMCalls[10];
|
||||||
#define ABCs (pc[0].i24)
|
#define ABCs (pc[0].i24)
|
||||||
#define JMPOFS(x) ((x)->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
|
class JitCompiler
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
@ -46,15 +39,15 @@ private:
|
||||||
#include "vmops.h"
|
#include "vmops.h"
|
||||||
#undef xx
|
#undef xx
|
||||||
|
|
||||||
|
void Setup();
|
||||||
void EmitOpcode();
|
void EmitOpcode();
|
||||||
|
|
||||||
void EmitDoCall(asmjit::X86Gp ptr);
|
void EmitDoCall(asmjit::X86Gp ptr);
|
||||||
void StoreInOuts(int b);
|
void StoreInOuts(int b);
|
||||||
void LoadReturns(const VMOP *retval, int numret, bool inout);
|
void LoadReturns(const VMOP *retval, int numret, bool inout);
|
||||||
void FillReturns(const VMOP *retval, int numret);
|
void FillReturns(const VMOP *retval, int numret);
|
||||||
static int DoCall(VMFrameStack *stack, VMFunction *call, int b, int c, VMValue *param, VMReturn *returns, JitExceptionInfo *exceptinfo);
|
static int DoCall(VMFrameStack *stack, VMFunction *call, int b, int c, VMValue *param, VMReturn *returns, JitExceptionInfo *exceptinfo);
|
||||||
|
|
||||||
void Setup();
|
|
||||||
|
|
||||||
template <typename Func>
|
template <typename Func>
|
||||||
void EmitComparisonOpcode(Func jmpFunc)
|
void EmitComparisonOpcode(Func jmpFunc)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue