- add support in the jit compiler to do direct native calls using the x64 calling convention
This commit is contained in:
parent
a5ee673c91
commit
3ba6290419
4 changed files with 234 additions and 274 deletions
|
|
@ -38,9 +38,7 @@ private:
|
|||
#include "vmops.h"
|
||||
#undef xx
|
||||
|
||||
//static asmjit::FuncSignature CreateFuncSignature(VMScriptFunction *sfunc);
|
||||
//static asmjit::CCFunc *CodegenThunk(asmjit::X86Compiler &cc, VMScriptFunction *sfunc, void *nativefunc);
|
||||
//void SetupNative();
|
||||
static asmjit::FuncSignature CreateFuncSignature(VMFunction *sfunc);
|
||||
|
||||
void Setup();
|
||||
void CreateRegisters();
|
||||
|
|
@ -52,11 +50,11 @@ private:
|
|||
void EmitOpcode();
|
||||
void EmitPopFrame();
|
||||
|
||||
void EmitDoCall(asmjit::X86Gp ptr, VMFunction *target);
|
||||
void EmitScriptCall(asmjit::X86Gp vmfunc, asmjit::X86Gp paramsptr);
|
||||
void EmitNativeCall(VMNativeFunction *target);
|
||||
void EmitVMCall(asmjit::X86Gp ptr);
|
||||
void EmitVtbl(const VMOP *op);
|
||||
|
||||
int StoreCallParams(bool simpleFrameTarget);
|
||||
int StoreCallParams();
|
||||
void LoadInOuts();
|
||||
void LoadReturns(const VMOP *retval, int numret);
|
||||
void FillReturns(const VMOP *retval, int numret);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue