Finish implementing function pointers
Allow using function literals with function pointers, allow narrowing classes parameter types, and widening classes in return types, allow pointers to non-static, non-virtual functions, add null checking to function calls
This commit is contained in:
parent
23c21b23c3
commit
e61bd10bbf
8 changed files with 244 additions and 20 deletions
|
|
@ -719,3 +719,8 @@ asmjit::FuncSignature JitCompiler::CreateFuncSignature()
|
|||
signature.init(CallConv::kIdHost, rettype, cachedArgs->Data(), cachedArgs->Size());
|
||||
return signature;
|
||||
}
|
||||
|
||||
void JitCompiler::EmitNULLCHECK()
|
||||
{
|
||||
EmitNullPointerThrow(A, X_READ_NIL);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue