FFI: Implement POSIX/x64 struct-by-value calling conventions.

This commit is contained in:
Mike Pall
2011-01-29 13:04:16 +01:00
parent 6fee0002b9
commit 6fd721ce72
2 changed files with 127 additions and 9 deletions

View File

@@ -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. */