- 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
|
|
@ -73,6 +73,17 @@ static int Exec(VMFrameStack *stack, const VMOP *pc, VMReturn *ret, int numret)
|
|||
konsta = NULL;
|
||||
}
|
||||
|
||||
if (sfunc && sfunc->Code == pc)
|
||||
{
|
||||
if (!sfunc->JitCompiled)
|
||||
{
|
||||
sfunc->JitFunc = JitCompile(sfunc);
|
||||
sfunc->JitCompiled = true;
|
||||
}
|
||||
if (sfunc->JitFunc)
|
||||
return sfunc->JitFunc(stack, ret, numret);
|
||||
}
|
||||
|
||||
void *ptr;
|
||||
double fb, fc;
|
||||
const double *fbp, *fcp;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue