summaryrefslogtreecommitdiff
path: root/src/lj_ccall.h
diff options
context:
space:
mode:
authorMike Pall <mike>2011-01-29 13:04:16 +0100
committerMike Pall <mike>2011-01-29 13:04:16 +0100
commit6fd721ce7294c0ceba0d0d49a79e59801427ba8d (patch)
tree0c1066dd350e8d2f8f1a0ace0df0f02b0c4f0f59 /src/lj_ccall.h
parent6fee0002b9ea12d4b7f745ee664d6ccb2411af6c (diff)
downloadluajit2-6fd721ce7294c0ceba0d0d49a79e59801427ba8d.tar.gz
FFI: Implement POSIX/x64 struct-by-value calling conventions.
Diffstat (limited to 'src/lj_ccall.h')
-rw-r--r--src/lj_ccall.h1
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 {
uint8_t nsp; /* Number of stack slots. */
uint8_t retref; /* Return value by reference. */
#if LJ_TARGET_X64
+ uint8_t ngpr; /* Number of arguments in GPRs. */
uint8_t nfpr; /* Number of arguments in FPRs. */
#elif LJ_TARGET_X86
uint8_t resx87; /* Result on x87 stack: 1:float, 2:double. */