Ruby 3.0.5p211 (2022-11-24 revision ba5cf0f7c52d4d35cc6a173c89eda98ceffa2dcf)
|
Go to the source code of this file.
Macros | |
#define | NGREGARG 4 |
#define | STRUCT_VALUE_ADDRESS_WITH_ARG 0 |
#define | OFS_INT8 3 |
#define | OFS_INT16 2 |
Functions | |
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, unsigned *, void(*fn)(void)) |
void | ffi_call (ffi_cif *cif, void(*fn)(void), void *rvalue, void **avalue) |
void | ffi_closure_SYSV (void) |
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, void *rvalue, unsigned long *pgr, unsigned long *pfr, unsigned long *pst) |
void ffi_call | ( | ffi_cif * | cif, |
void(*)(void) | fn, | ||
void * | rvalue, | ||
void ** | avalue | ||
) |
Definition at line 412 of file ffi.c.
References alloca, extended_cif::avalue, extended_cif::cif, FFI_ASSERT, ffi_call_SYSV(), ffi_prep_args(), FFI_SYSV, memcpy, NULL, and extended_cif::rvalue.
void ffi_call_SYSV | ( | void(*)(char *, extended_cif *) | , |
extended_cif * | , | ||
unsigned | , | ||
unsigned | , | ||
unsigned * | , | ||
void(*)(void) | fn | ||
) |
int ffi_closure_helper_SYSV | ( | ffi_closure * | closure, |
void * | rvalue, | ||
unsigned long * | pgr, | ||
unsigned long * | pfr, | ||
unsigned long * | pst | ||
) |
Definition at line 514 of file ffi.c.
References alloca, FFI_ASSERT, int(), NFREGARG, NGREGARG, OFS_INT16, OFS_INT8, and STRUCT_VALUE_ADDRESS_WITH_ARG.
void ffi_prep_args | ( | char * | stack, |
extended_cif * | ecif | ||
) |
Definition at line 111 of file ffi.c.
References extended_cif::avalue, extended_cif::cif, FFI_ASSERT, int(), memcpy, NFREGARG, NGREGARG, extended_cif::rvalue, and STRUCT_VALUE_ADDRESS_WITH_ARG.
ffi_status ffi_prep_cif_machdep | ( | ffi_cif * | cif | ) |
ffi_status ffi_prep_closure_loc | ( | ffi_closure * | closure, |
ffi_cif * | cif, | ||
void(*)(ffi_cif *, void *, void **, void *) | fun, | ||
void * | user_data, | ||
void * | codeloc | ||
) |
Definition at line 457 of file ffi.c.
References __ic_invalidate(), ffi_closure_SYSV(), and FFI_SYSV.