|
Ruby
2.7.2p137(2020-10-01revision5445e0435260b449decf2ac16f9d09bae3cafe72)
|
#include <ffi.h>#include <ffi_common.h>#include <stdlib.h>#include <stdint.h>#include <sys/cachectl.h>Go to the source code of this file.
Macros | |
| #define | CODE_ENDIAN(x) ( (((uint32_t) (x)) << 16) | (((uint32_t) (x)) >> 16)) |
Functions | |
| void | ffi_prep_args (char *stack, extended_cif *ecif) |
| ffi_status | ffi_prep_cif_machdep (ffi_cif *cif) |
| void | ffi_call_ARCompact (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) |
| int | ffi_closure_inner_ARCompact (ffi_closure *closure, void *rvalue, ffi_arg *args) |
| void | ffi_closure_ARCompact (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) |
Definition at line 167 of file ffi.c.
References alloca, extended_cif::avalue, extended_cif::cif, FFI_ARCOMPACT, FFI_ASSERT, ffi_call_ARCompact(), ffi_prep_args(), NULL, and extended_cif::rvalue.
| void ffi_call_ARCompact | ( | void(*)(char *, extended_cif *) | , |
| extended_cif * | , | ||
| unsigned | , | ||
| unsigned | , | ||
| unsigned * | , | ||
| void(*)(void) | fn | ||
| ) |
Referenced by ffi_call().
Referenced by ffi_prep_closure_loc().
| unsigned int ffi_prep_args | ( | char * | stack, |
| extended_cif * | ecif | ||
| ) |
Definition at line 46 of file ffi.c.
References ALIGN, extended_cif::avalue, extended_cif::cif, FFI_ASSERT, i, int, memcpy(), extended_cif::rvalue, and unsigned.
Referenced by ffi_call().
| 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 243 of file ffi.c.
References CODE_ENDIAN, FFI_ARCOMPACT, FFI_ASSERT, ffi_closure_ARCompact(), and FFI_TRAMPOLINE_SIZE.