Lines Matching refs:arg_values
2548 …_pass_arg(zval *arg, zend_ffi_type *type, ffi_type **pass_type, void **arg_values, uint32_t n, zen… in zend_ffi_pass_arg() argument
2562 *(float*)arg_values[n] = (float)dval; in zend_ffi_pass_arg()
2567 *(double*)arg_values[n] = dval; in zend_ffi_pass_arg()
2573 *(long double*)arg_values[n] = (long double)dval; in zend_ffi_pass_arg()
2579 *(uint8_t*)arg_values[n] = (uint8_t)lval; in zend_ffi_pass_arg()
2584 *(int8_t*)arg_values[n] = (int8_t)lval; in zend_ffi_pass_arg()
2589 *(uint16_t*)arg_values[n] = (uint16_t)lval; in zend_ffi_pass_arg()
2594 *(int16_t*)arg_values[n] = (int16_t)lval; in zend_ffi_pass_arg()
2599 *(uint32_t*)arg_values[n] = (uint32_t)lval; in zend_ffi_pass_arg()
2604 *(int32_t*)arg_values[n] = (int32_t)lval; in zend_ffi_pass_arg()
2609 *(uint64_t*)arg_values[n] = (uint64_t)lval; in zend_ffi_pass_arg()
2614 *(int64_t*)arg_values[n] = (int64_t)lval; in zend_ffi_pass_arg()
2619 *(void**)arg_values[n] = NULL; in zend_ffi_pass_arg()
2624 *(void**)arg_values[n] = Z_STRVAL_P(arg); in zend_ffi_pass_arg()
2635 *(void**)arg_values[n] = *(void**)cdata->ptr; in zend_ffi_pass_arg()
2637 *(void**)arg_values[n] = cdata->ptr; in zend_ffi_pass_arg()
2646 *(void**)arg_values[n] = callback; in zend_ffi_pass_arg()
2657 *(uint8_t*)arg_values[n] = zend_is_true(arg); in zend_ffi_pass_arg()
2662 *(char*)arg_values[n] = ZSTR_VAL(str)[0]; in zend_ffi_pass_arg()
2677 arg_values[n] = cdata->ptr; in zend_ffi_pass_arg()
2691 static zend_result zend_ffi_pass_var_arg(zval *arg, ffi_type **pass_type, void **arg_values, uint32… in zend_ffi_pass_var_arg() argument
2697 *(void**)arg_values[n] = NULL; in zend_ffi_pass_var_arg()
2701 *(uint8_t*)arg_values[n] = 0; in zend_ffi_pass_var_arg()
2705 *(uint8_t*)arg_values[n] = 1; in zend_ffi_pass_var_arg()
2710 *(int32_t*)arg_values[n] = Z_LVAL_P(arg); in zend_ffi_pass_var_arg()
2713 *(int64_t*)arg_values[n] = Z_LVAL_P(arg); in zend_ffi_pass_var_arg()
2718 *(double*)arg_values[n] = Z_DVAL_P(arg); in zend_ffi_pass_var_arg()
2722 *(char**)arg_values[n] = Z_STRVAL_P(arg); in zend_ffi_pass_var_arg()
2729 return zend_ffi_pass_arg(arg, type, pass_type, arg_values, n, execute_data); in zend_ffi_pass_var_arg()
2747 void **arg_values = NULL; in ZEND_FUNCTION() local
2765 arg_values = do_alloca( in ZEND_FUNCTION()
2771 … arg_values[n] = ((char*)arg_values) + (sizeof(void*) * EX_NUM_ARGS()) + (ZEND_FFI_SIZEOF_ARG * n); in ZEND_FUNCTION()
2772 …if (zend_ffi_pass_arg(EX_VAR_NUM(n), arg_type, &arg_types[n], arg_values, n, execute_data) == FAIL… in ZEND_FUNCTION()
2774 free_alloca(arg_values, arg_values_use_heap); in ZEND_FUNCTION()
2781 … arg_values[n] = ((char*)arg_values) + (sizeof(void*) * EX_NUM_ARGS()) + (ZEND_FFI_SIZEOF_ARG * n); in ZEND_FUNCTION()
2782 … if (zend_ffi_pass_var_arg(EX_VAR_NUM(n), &arg_types[n], arg_values, n, execute_data) == FAILURE) { in ZEND_FUNCTION()
2784 free_alloca(arg_values, arg_values_use_heap); in ZEND_FUNCTION()
2793 free_alloca(arg_values, arg_values_use_heap); in ZEND_FUNCTION()
2799 free_alloca(arg_values, arg_values_use_heap); in ZEND_FUNCTION()
2810 arg_values = do_alloca( in ZEND_FUNCTION()
2816 … arg_values[n] = ((char*)arg_values) + (sizeof(void*) * EX_NUM_ARGS()) + (ZEND_FFI_SIZEOF_ARG * n); in ZEND_FUNCTION()
2817 …if (zend_ffi_pass_arg(EX_VAR_NUM(n), arg_type, &arg_types[n], arg_values, n, execute_data) == FAIL… in ZEND_FUNCTION()
2819 free_alloca(arg_values, arg_values_use_heap); in ZEND_FUNCTION()
2830 free_alloca(arg_values, arg_values_use_heap); in ZEND_FUNCTION()
2836 free_alloca(arg_values, arg_values_use_heap); in ZEND_FUNCTION()
2842 ffi_call(&cif, addr, ret, arg_values); in ZEND_FUNCTION()
2855 free_alloca(arg_values, arg_values_use_heap); in ZEND_FUNCTION()