Ruby
2.4.2p198(2017-09-14revision59899)
|
Go to the source code of this file.
Macros | |
#define | NGREGARG 8 |
#define | NFREGARG 12 |
Functions | |
static int | return_type (ffi_type *arg) |
void | ffi_prep_args (char *stack, extended_cif *ecif) |
ffi_status | ffi_prep_cif_machdep (ffi_cif *cif) |
void | ffi_call_SYSV (void(*)(char *, extended_cif *), extended_cif *, unsigned, unsigned, long long, unsigned *, void(*fn)(void)) |
void | ffi_call (ffi_cif *cif, void(*fn)(void), void *rvalue, void **avalue) |
void | ffi_closure_SYSV (void) |
void | __ic_invalidate (void *line) |
ffi_status | ffi_prep_closure_loc (ffi_closure *closure, ffi_cif *cif, void(*fun)(ffi_cif *, void *, void **, void *), void *user_data, void *codeloc) |
int | ffi_closure_helper_SYSV (ffi_closure *closure, UINT64 *rvalue, UINT64 *pgr, UINT64 *pfr, UINT64 *pst) |
#define NFREGARG 12 |
Definition at line 34 of file ffi.c.
Referenced by ffi_closure_helper_SYSV(), ffi_prep_args(), and ffi_prep_cif_machdep().
#define NGREGARG 8 |
Definition at line 33 of file ffi.c.
Referenced by ffi_prep_cif_machdep().
void __ic_invalidate | ( | void * | line | ) |
Referenced by ffi_call(), and ffi_prep_closure_loc().
void ffi_call | ( | ffi_cif * | cif, |
void(*)(void) | fn, | ||
void * | rvalue, | ||
void ** | avalue | ||
) |
Definition at line 251 of file ffi.c.
References __ic_invalidate(), alloca(), extended_cif::avalue, extended_cif::cif, FFI_ASSERT, ffi_call_SYSV(), ffi_closure_SYSV(), ffi_prep_args(), FFI_SYSV, memcpy, NULL, return_type(), and extended_cif::rvalue.
void ffi_call_SYSV | ( | void(*)(char *, extended_cif *) | , |
extended_cif * | , | ||
unsigned | , | ||
unsigned | , | ||
long | long, | ||
unsigned * | , | ||
void(*)(void) | fn | ||
) |
int ffi_closure_helper_SYSV | ( | ffi_closure * | closure, |
UINT64 * | rvalue, | ||
UINT64 * | pgr, | ||
UINT64 * | pfr, | ||
UINT64 * | pst | ||
) |
Definition at line 350 of file ffi.c.
References alloca(), FFI_ASSERT, NFREGARG, and return_type().
void ffi_prep_args | ( | char * | stack, |
extended_cif * | ecif | ||
) |
Definition at line 59 of file ffi.c.
References extended_cif::avalue, extended_cif::cif, FFI_ASSERT, memcpy, return_type(), and extended_cif::rvalue.
ffi_status ffi_prep_cif_machdep | ( | ffi_cif * | cif | ) |
Definition at line 156 of file ffi.c.
References ffi_call_SYSV(), NFREGARG, NGREGARG, return_type(), and size.
ffi_status ffi_prep_closure_loc | ( | ffi_closure * | closure, |
ffi_cif * | cif, | ||
void(*)(ffi_cif *, void *, void **, void *) | fun, | ||
void * | user_data, | ||
void * | codeloc | ||
) |
|
static |
Definition at line 37 of file ffi.c.
Referenced by ffi_call(), ffi_closure_helper_SYSV(), ffi_prep_args(), and ffi_prep_cif_machdep().