/third_party/libffi/testsuite/libffi.call/ |
D | va_1.c | 84 ffi_type* arg_types[15]; in main() local 131 arg_types[0] = &ffi_type_sint; in main() 132 arg_types[1] = &s_type; in main() 133 arg_types[2] = &l_type; in main() 134 arg_types[3] = &s_type; in main() 135 arg_types[4] = &ffi_type_uchar; in main() 136 arg_types[5] = &ffi_type_schar; in main() 137 arg_types[6] = &ffi_type_ushort; in main() 138 arg_types[7] = &ffi_type_sshort; in main() 139 arg_types[8] = &ffi_type_uint; in main() [all …]
|
D | float_va.c | 48 ffi_type *arg_types[5]; in main() local 63 arg_types[0] = &ffi_type_uint; in main() 64 arg_types[1] = &ffi_type_double; in main() 65 arg_types[2] = NULL; in main() 67 &ffi_type_double, arg_types) == FFI_OK); in main() 85 arg_types[0] = &ffi_type_uint; in main() 86 arg_types[1] = &ffi_type_double; in main() 87 arg_types[2] = &ffi_type_double; in main() 88 arg_types[3] = &ffi_type_double; in main() 89 arg_types[4] = NULL; in main() [all …]
|
D | va_struct1.c | 51 ffi_type* arg_types[5]; in main() local 87 arg_types[0] = &ffi_type_sint; in main() 88 arg_types[1] = &s_type; in main() 89 arg_types[2] = &l_type; in main() 90 arg_types[3] = &s_type; in main() 91 arg_types[4] = NULL; in main() 93 CHECK(ffi_prep_cif_var(&cif, FFI_DEFAULT_ABI, 1, 4, &ffi_type_sint, arg_types) == FFI_OK); in main()
|
D | va_struct2.c | 53 ffi_type* arg_types[5]; in main() local 89 arg_types[0] = &ffi_type_sint; in main() 90 arg_types[1] = &s_type; in main() 91 arg_types[2] = &l_type; in main() 92 arg_types[3] = &s_type; in main() 93 arg_types[4] = NULL; in main() 95 CHECK(ffi_prep_cif_var(&cif, FFI_DEFAULT_ABI, 1, 4, &s_type, arg_types) == FFI_OK); in main()
|
D | va_struct3.c | 55 ffi_type* arg_types[5]; in main() local 91 arg_types[0] = &ffi_type_sint; in main() 92 arg_types[1] = &s_type; in main() 93 arg_types[2] = &l_type; in main() 94 arg_types[3] = &s_type; in main() 95 arg_types[4] = NULL; in main() 97 CHECK(ffi_prep_cif_var(&cif, FFI_DEFAULT_ABI, 1, 4, &l_type, arg_types) == FFI_OK); in main()
|
D | err_bad_typedef.c | 14 ffi_type* arg_types[1]; in main() local 18 arg_types[0] = NULL; in main() 23 arg_types) == FFI_BAD_TYPEDEF); in main()
|
/third_party/libffi/testsuite/libffi.closures/ |
D | cls_longdouble.c | 55 ffi_type* arg_types[9]; in main() local 67 arg_types[0] = &ffi_type_longdouble; in main() 68 arg_types[1] = &ffi_type_longdouble; in main() 69 arg_types[2] = &ffi_type_longdouble; in main() 70 arg_types[3] = &ffi_type_longdouble; in main() 71 arg_types[4] = &ffi_type_longdouble; in main() 72 arg_types[5] = &ffi_type_longdouble; in main() 73 arg_types[6] = &ffi_type_longdouble; in main() 74 arg_types[7] = &ffi_type_longdouble; in main() 75 arg_types[8] = NULL; in main() [all …]
|
D | nested_struct11.c | 55 ffi_type* arg_types[8]; in main() local 93 arg_types[0] = &ffi_type_sint32; in main() 94 arg_types[1] = &ffi_type_sint32; in main() 95 arg_types[2] = &ffi_type_sint32; in main() 96 arg_types[3] = &struct_type_c; in main() 97 arg_types[4] = &ffi_type_sint32; in main() 98 arg_types[5] = &ffi_type_sint32; in main() 99 arg_types[6] = &ffi_type_sint32; in main() 100 arg_types[7] = NULL; in main() 111 arg_types) == FFI_OK); in main()
|
D | cls_struct_va1.c | 47 ffi_type* arg_types[5]; in main() local 84 arg_types[0] = &ffi_type_sint; in main() 85 arg_types[1] = &s_type; in main() 86 arg_types[2] = &l_type; in main() 87 arg_types[3] = &s_type; in main() 88 arg_types[4] = NULL; in main() 91 arg_types) == FFI_OK); in main()
|
D | cls_double_va.c | 29 ffi_type* arg_types[3]; in main() local 35 arg_types[0] = &ffi_type_pointer; in main() 36 arg_types[1] = &ffi_type_double; in main() 37 arg_types[2] = NULL; in main() 41 arg_types) == FFI_OK); in main()
|
D | cls_longdouble_va.c | 29 ffi_type* arg_types[3]; in main() local 35 arg_types[0] = &ffi_type_pointer; in main() 36 arg_types[1] = &ffi_type_longdouble; in main() 37 arg_types[2] = NULL; in main() 41 arg_types) == FFI_OK); in main()
|
D | cls_pointer.c | 39 ffi_type* arg_types[3]; in main() local 50 arg_types[0] = &ffi_type_pointer; in main() 51 arg_types[1] = &ffi_type_pointer; in main() 52 arg_types[2] = NULL; in main() 55 arg_types) == FFI_OK); in main()
|
D | err_bad_abi.c | 21 ffi_type* arg_types[1]; in main() local 23 arg_types[0] = NULL; in main() 26 arg_types) == FFI_BAD_ABI); in main() 29 arg_types) == FFI_OK); in main()
|
D | problem1.c | 51 ffi_type* arg_types[3]; in main() local 67 arg_types[0] = &my_ffi_struct_type; in main() 68 arg_types[1] = &my_ffi_struct_type; in main() 69 arg_types[2] = NULL; in main() 72 arg_types) == FFI_OK); in main()
|
/third_party/pcre2/pcre2/src/sljit/ |
D | sljitNativeX86_32.c | 69 sljit_s32 options, sljit_s32 arg_types, sljit_s32 scratches, sljit_s32 saveds, in sljit_emit_enter() argument 76 …CHECK(check_sljit_emit_enter(compiler, options, arg_types, scratches, saveds, fscratches, fsaveds,… in sljit_emit_enter() 77 set_emit_enter(compiler, options, arg_types, scratches, saveds, fscratches, fsaveds, local_size); in sljit_emit_enter() 82 args = get_arg_count(arg_types); in sljit_emit_enter() 248 sljit_s32 options, sljit_s32 arg_types, sljit_s32 scratches, sljit_s32 saveds, in sljit_set_context() argument 252 …CHECK(check_sljit_set_context(compiler, options, arg_types, scratches, saveds, fscratches, fsaveds… in sljit_set_context() 253 set_set_context(compiler, options, arg_types, scratches, saveds, fscratches, fsaveds, local_size); in sljit_set_context() 255 compiler->args = get_arg_count(arg_types); in sljit_set_context() 519 static sljit_s32 c_fast_call_get_stack_size(sljit_s32 arg_types, sljit_s32 *word_arg_count_ptr) in c_fast_call_get_stack_size() argument 524 arg_types >>= SLJIT_DEF_SHIFT; in c_fast_call_get_stack_size() [all …]
|
D | sljitNativeX86_64.c | 128 sljit_s32 options, sljit_s32 arg_types, sljit_s32 scratches, sljit_s32 saveds, in sljit_emit_enter() argument 135 …CHECK(check_sljit_emit_enter(compiler, options, arg_types, scratches, saveds, fscratches, fsaveds,… in sljit_emit_enter() 136 set_emit_enter(compiler, options, arg_types, scratches, saveds, fscratches, fsaveds, local_size); in sljit_emit_enter() 175 args = get_arg_count(arg_types); in sljit_emit_enter() 280 sljit_s32 options, sljit_s32 arg_types, sljit_s32 scratches, sljit_s32 saveds, in sljit_set_context() argument 286 …CHECK(check_sljit_set_context(compiler, options, arg_types, scratches, saveds, fscratches, fsaveds… in sljit_set_context() 287 set_set_context(compiler, options, arg_types, scratches, saveds, fscratches, fsaveds, local_size); in sljit_set_context() 612 static sljit_s32 call_with_args(struct sljit_compiler *compiler, sljit_s32 arg_types, sljit_s32 *sr… in call_with_args() argument 622 arg_types >>= SLJIT_DEF_SHIFT; in call_with_args() 624 while (arg_types) { in call_with_args() [all …]
|
/third_party/libffi/src/mips/ |
D | ffi.c | 108 for (i = 0, p_arg = ecif->cif->arg_types; i < ecif->cif->nargs; i++, p_arg++) in ffi_prep_args() 340 switch ((cif->arg_types)[0]->type) in ffi_prep_cif_machdep_int() 344 cif->flags += (cif->arg_types)[0]->type; in ffi_prep_cif_machdep_int() 357 switch ((cif->arg_types)[1]->type) in ffi_prep_cif_machdep_int() 361 cif->flags += (cif->arg_types)[1]->type << FFI_FLAG_BITS; in ffi_prep_cif_machdep_int() 454 type = (cif->arg_types)[index]->type; in ffi_prep_cif_machdep_int() 476 ((cif->arg_types)[index]->type << (arg_reg * FFI_FLAG_BITS)); in ffi_prep_cif_machdep_int() 501 (cif->arg_types)[index], in ffi_prep_cif_machdep_int() 814 ffi_type **arg_types; in ffi_closure_mips_inner_O32() local 832 arg_types = cif->arg_types; in ffi_closure_mips_inner_O32() [all …]
|
/third_party/python/Modules/_ctypes/libffi_osx/x86/ |
D | x86-ffi64.c | 402 if (examine_argument(cif->arg_types[i], classes, 0, &ngpr, &nsse) == 0 in ffi_prep_cif_machdep() 406 long align = cif->arg_types[i]->alignment; in ffi_prep_cif_machdep() 412 bytes += cif->arg_types[i]->size; in ffi_prep_cif_machdep() 441 ffi_type** arg_types; in ffi_call() local 471 arg_types = cif->arg_types; in ffi_call() 475 size_t size = arg_types[i]->size; in ffi_call() 478 n = examine_argument (arg_types[i], classes, 0, &ngpr, &nsse); in ffi_call() 484 long align = arg_types[i]->alignment; in ffi_call() 507 switch (arg_types[i]->type) { in ffi_call() 630 ffi_type** arg_types; in ffi_closure_unix64_inner() local [all …]
|
/third_party/libffi/testsuite/libffi.complex/ |
D | cls_complex_va.inc | 45 ffi_type* arg_types[4]; 52 arg_types[0] = &ffi_type_pointer; 53 arg_types[1] = &T_FFI_TYPE; 54 arg_types[2] = &T_FFI_TYPE; 55 arg_types[3] = NULL; 59 arg_types) == FFI_OK);
|
/third_party/libffi/src/xtensa/ |
D | ffi.c | 128 for (i = ecif->cif->nargs, ptr = ecif->cif->arg_types; in ffi_prep_args() 254 ffi_type **arg_types; in ffi_closure_SYSV_inner() local 272 arg_types = cif->arg_types; in ffi_closure_SYSV_inner() 277 if (arg_types[i]->alignment == 8 && (areg & 1) != 0) in ffi_closure_SYSV_inner() 284 if (arg_types[i]->type == FFI_TYPE_STRUCT) in ffi_closure_SYSV_inner() 286 int numregs = ((arg_types[i]->size + 3) & ~3) / 4; in ffi_closure_SYSV_inner() 292 areg += (arg_types[i]->size + 3) / 4; in ffi_closure_SYSV_inner()
|
/third_party/libffi/src/microblaze/ |
D | ffi.c | 70 for (i = 0, p_arg = ecif->cif->arg_types; i < ecif->cif->nargs; in ffi_prep_args() 183 ffi_type** arg_types = cif->arg_types; in ffi_closure_call_SYSV() local 218 switch (arg_types[i]->type) in ffi_closure_call_SYSV() 242 if (arg_types[i]->size < WORD_SIZE) in ffi_closure_call_SYSV() 244 memcpy (ptr, ptr + (WORD_SIZE - arg_types[i]->size), arg_types[i]->size); in ffi_closure_call_SYSV() 262 ptr += WORD_FFI_ALIGN(arg_types[i]->size); in ffi_closure_call_SYSV()
|
/third_party/node/src/tracing/ |
D | trace_event.h | 461 const char** arg_names, const uint8_t* arg_types, in AddTraceEventImpl() argument 464 if (num_args > 0 && arg_types[0] == TRACE_VALUE_TYPE_CONVERTABLE) { in AddTraceEventImpl() 468 if (num_args > 1 && arg_types[1] == TRACE_VALUE_TYPE_CONVERTABLE) { in AddTraceEventImpl() 477 bind_id, num_args, arg_names, arg_types, in AddTraceEventImpl() 484 const char** arg_names, const uint8_t* arg_types, in AddTraceEventWithTimestampImpl() argument 487 if (num_args > 0 && arg_types[0] == TRACE_VALUE_TYPE_CONVERTABLE) { in AddTraceEventWithTimestampImpl() 491 if (num_args > 1 && arg_types[1] == TRACE_VALUE_TYPE_CONVERTABLE) { in AddTraceEventWithTimestampImpl() 501 arg_names, arg_types, arg_values, arg_convertables, flags, timestamp); in AddTraceEventWithTimestampImpl() 506 const char** arg_names, const uint8_t* arg_types, in AddMetadataEventImpl() argument 509 if (num_args > 0 && arg_types[0] == TRACE_VALUE_TYPE_CONVERTABLE) { in AddMetadataEventImpl() [all …]
|
/third_party/libffi/src/x86/ |
D | ffi64.c | 530 if (examine_argument (cif->arg_types[i], classes, 0, &ngpr, &nsse) == 0 in ffi_prep_cif_machdep() 534 long align = cif->arg_types[i]->alignment; in ffi_prep_cif_machdep() 540 bytes += cif->arg_types[i]->size; in ffi_prep_cif_machdep() 563 ffi_type **arg_types; in ffi_call_int() local 596 arg_types = cif->arg_types; in ffi_call_int() 600 size_t n, size = arg_types[i]->size; in ffi_call_int() 602 n = examine_argument (arg_types[i], classes, 0, &ngpr, &nsse); in ffi_call_int() 607 long align = arg_types[i]->alignment; in ffi_call_int() 637 switch (arg_types[i]->type) in ffi_call_int() 773 ffi_type **arg_types; in ffi_closure_unix64_inner() local [all …]
|
D | ffi.c | 182 ffi_type *t = cif->arg_types[i]; in ffi_prep_cif_machdep() 265 ffi_type **arg_types; in ffi_call_int() local 325 arg_types = cif->arg_types; in ffi_call_int() 328 ffi_type *ty = arg_types[i]; in ffi_call_int() 428 ffi_type **arg_types; in ffi_closure_inner() local 462 arg_types = cif->arg_types; in ffi_closure_inner() 465 ffi_type *ty = arg_types[i]; in ffi_closure_inner() 634 switch (cif->arg_types[i]->type) in ffi_prep_raw_closure_loc() 674 ffi_type **arg_types; in ffi_raw_call() local 733 arg_types = cif->arg_types; in ffi_raw_call() [all …]
|
/third_party/libffi/src/cris/ |
D | ffi.c | 82 for (i = ecif->cif->nargs, p_arg = ecif->cif->arg_types; in ffi_prep_args() 172 cif->arg_types = atypes; in ffi_prep_cif_core() 184 for (ptr = cif->arg_types, i = cif->nargs; i > 0; i--, ptr++) in ffi_prep_cif_core() 304 ffi_type **arg_types = cif->arg_types; in ffi_prep_closure_inner() local 316 if (arg_types[i]->size <= 4) in ffi_prep_closure_inner() 321 else if (arg_types[i]->size <= 8) in ffi_prep_closure_inner() 328 FFI_ASSERT (arg_types[i]->type == FFI_TYPE_STRUCT); in ffi_prep_closure_inner()
|