diff options
author | Mike Pall <mike> | 2011-01-29 13:04:16 +0100 |
---|---|---|
committer | Mike Pall <mike> | 2011-01-29 13:04:16 +0100 |
commit | 6fd721ce7294c0ceba0d0d49a79e59801427ba8d (patch) | |
tree | 0c1066dd350e8d2f8f1a0ace0df0f02b0c4f0f59 /src/lj_ccall.h | |
parent | 6fee0002b9ea12d4b7f745ee664d6ccb2411af6c (diff) | |
download | luajit-6fd721ce7294c0ceba0d0d49a79e59801427ba8d.tar.gz luajit-6fd721ce7294c0ceba0d0d49a79e59801427ba8d.tar.bz2 luajit-6fd721ce7294c0ceba0d0d49a79e59801427ba8d.zip |
FFI: Implement POSIX/x64 struct-by-value calling conventions.
Diffstat (limited to '')
-rw-r--r-- | src/lj_ccall.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lj_ccall.h b/src/lj_ccall.h index 6f9c58e5..83e2403d 100644 --- a/src/lj_ccall.h +++ b/src/lj_ccall.h | |||
@@ -86,6 +86,7 @@ typedef struct CCallState { | |||
86 | uint8_t nsp; /* Number of stack slots. */ | 86 | uint8_t nsp; /* Number of stack slots. */ |
87 | uint8_t retref; /* Return value by reference. */ | 87 | uint8_t retref; /* Return value by reference. */ |
88 | #if LJ_TARGET_X64 | 88 | #if LJ_TARGET_X64 |
89 | uint8_t ngpr; /* Number of arguments in GPRs. */ | ||
89 | uint8_t nfpr; /* Number of arguments in FPRs. */ | 90 | uint8_t nfpr; /* Number of arguments in FPRs. */ |
90 | #elif LJ_TARGET_X86 | 91 | #elif LJ_TARGET_X86 |
91 | uint8_t resx87; /* Result on x87 stack: 1:float, 2:double. */ | 92 | uint8_t resx87; /* Result on x87 stack: 1:float, 2:double. */ |