- add support in the jit compiler to do direct native calls using the x64 calling convention

This commit is contained in:
Magnus Norddahl 2018-11-23 04:47:18 +01:00
commit 3ba6290419
4 changed files with 234 additions and 274 deletions

View file

@ -464,6 +464,9 @@ public:
// Return value is the number of results.
NativeCallType NativeCall;
// Function pointer to a native function to be called directly by the JIT using the platform calling convention
void *DirectNativeCall = nullptr;
private:
static int NativeScriptCall(VMFunction *func, VMValue *params, int numparams, VMReturn *ret, int numret);
};