Lines Matching refs:arg_values
2464 …_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
2478 *(float*)arg_values[n] = (float)dval; in zend_ffi_pass_arg()
2483 *(double*)arg_values[n] = dval; in zend_ffi_pass_arg()
2489 *(long double*)arg_values[n] = (long double)dval; in zend_ffi_pass_arg()
2495 *(uint8_t*)arg_values[n] = (uint8_t)lval; in zend_ffi_pass_arg()
2500 *(int8_t*)arg_values[n] = (int8_t)lval; in zend_ffi_pass_arg()
2505 *(uint16_t*)arg_values[n] = (uint16_t)lval; in zend_ffi_pass_arg()
2510 *(int16_t*)arg_values[n] = (int16_t)lval; in zend_ffi_pass_arg()
2515 *(uint32_t*)arg_values[n] = (uint32_t)lval; in zend_ffi_pass_arg()
2520 *(int32_t*)arg_values[n] = (int32_t)lval; in zend_ffi_pass_arg()
2525 *(uint64_t*)arg_values[n] = (uint64_t)lval; in zend_ffi_pass_arg()
2530 *(int64_t*)arg_values[n] = (int64_t)lval; in zend_ffi_pass_arg()
2535 *(void**)arg_values[n] = NULL; in zend_ffi_pass_arg()
2540 *(void**)arg_values[n] = Z_STRVAL_P(arg); in zend_ffi_pass_arg()
2551 *(void**)arg_values[n] = *(void**)cdata->ptr; in zend_ffi_pass_arg()
2553 *(void**)arg_values[n] = cdata->ptr; in zend_ffi_pass_arg()
2562 *(void**)arg_values[n] = callback; in zend_ffi_pass_arg()
2573 *(uint8_t*)arg_values[n] = zend_is_true(arg); in zend_ffi_pass_arg()
2578 *(char*)arg_values[n] = ZSTR_VAL(str)[0]; in zend_ffi_pass_arg()
2593 arg_values[n] = cdata->ptr; in zend_ffi_pass_arg()
2607 static int zend_ffi_pass_var_arg(zval *arg, ffi_type **pass_type, void **arg_values, uint32_t n, ze… in zend_ffi_pass_var_arg() argument
2613 *(void**)arg_values[n] = NULL; in zend_ffi_pass_var_arg()
2617 *(uint8_t*)arg_values[n] = 0; in zend_ffi_pass_var_arg()
2621 *(uint8_t*)arg_values[n] = 1; in zend_ffi_pass_var_arg()
2626 *(int32_t*)arg_values[n] = Z_LVAL_P(arg); in zend_ffi_pass_var_arg()
2629 *(int64_t*)arg_values[n] = Z_LVAL_P(arg); in zend_ffi_pass_var_arg()
2634 *(double*)arg_values[n] = Z_DVAL_P(arg); in zend_ffi_pass_var_arg()
2638 *(char**)arg_values[n] = Z_STRVAL_P(arg); in zend_ffi_pass_var_arg()
2645 return zend_ffi_pass_arg(arg, type, pass_type, arg_values, n, execute_data); in zend_ffi_pass_var_arg()
2663 void **arg_values = NULL; in ZEND_FUNCTION() local
2681 arg_values = do_alloca( in ZEND_FUNCTION()
2687 … arg_values[n] = ((char*)arg_values) + (sizeof(void*) * EX_NUM_ARGS()) + (ZEND_FFI_SIZEOF_ARG * n); in ZEND_FUNCTION()
2688 …if (zend_ffi_pass_arg(EX_VAR_NUM(n), arg_type, &arg_types[n], arg_values, n, execute_data) != SUCC… in ZEND_FUNCTION()
2690 free_alloca(arg_values, arg_values_use_heap); in ZEND_FUNCTION()
2697 … arg_values[n] = ((char*)arg_values) + (sizeof(void*) * EX_NUM_ARGS()) + (ZEND_FFI_SIZEOF_ARG * n); in ZEND_FUNCTION()
2698 … if (zend_ffi_pass_var_arg(EX_VAR_NUM(n), &arg_types[n], arg_values, n, execute_data) != SUCCESS) { in ZEND_FUNCTION()
2700 free_alloca(arg_values, arg_values_use_heap); in ZEND_FUNCTION()
2709 free_alloca(arg_values, arg_values_use_heap); in ZEND_FUNCTION()
2715 free_alloca(arg_values, arg_values_use_heap); in ZEND_FUNCTION()
2726 arg_values = do_alloca( in ZEND_FUNCTION()
2732 … arg_values[n] = ((char*)arg_values) + (sizeof(void*) * EX_NUM_ARGS()) + (ZEND_FFI_SIZEOF_ARG * n); in ZEND_FUNCTION()
2733 …if (zend_ffi_pass_arg(EX_VAR_NUM(n), arg_type, &arg_types[n], arg_values, n, execute_data) != SUCC… in ZEND_FUNCTION()
2735 free_alloca(arg_values, arg_values_use_heap); in ZEND_FUNCTION()
2746 free_alloca(arg_values, arg_values_use_heap); in ZEND_FUNCTION()
2752 free_alloca(arg_values, arg_values_use_heap); in ZEND_FUNCTION()
2758 ffi_call(&cif, addr, ret, arg_values); in ZEND_FUNCTION()
2771 free_alloca(arg_values, arg_values_use_heap); in ZEND_FUNCTION()