- embed and use asmjit to JIT ZScript VM functions
This commit is contained in:
parent
19a5a2fd2b
commit
cbb945d8a7
79 changed files with 50124 additions and 2 deletions
|
|
@ -437,6 +437,8 @@ extern thread_local VMFrameStack GlobalVMStack;
|
|||
|
||||
typedef std::pair<const class PType *, unsigned> FTypeAndOffset;
|
||||
|
||||
typedef int(*JitFuncPtr)(VMFrameStack *stack, VMReturn *ret, int numret);
|
||||
|
||||
class VMScriptFunction : public VMFunction
|
||||
{
|
||||
public:
|
||||
|
|
@ -467,6 +469,9 @@ public:
|
|||
VM_UBYTE NumArgs; // Number of arguments this function takes
|
||||
TArray<FTypeAndOffset> SpecialInits; // list of all contents on the extra stack which require construction and destruction
|
||||
|
||||
bool JitCompiled = false;
|
||||
JitFuncPtr JitFunc = nullptr;
|
||||
|
||||
void InitExtra(void *addr);
|
||||
void DestroyExtra(void *addr);
|
||||
int AllocExtraStack(PType *type);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue