Home
last modified time | relevance | path

Searched refs:arg_info (Results 1 – 25 of 40) sorted by relevance

12

/PHP-8.3/Zend/Optimizer/
H A Dzend_func_info.c59 uint32_t t1 = _ssa_op1_info(op_array, ssa, call_info->arg_info[0].opline, in zend_range_info()
60 &ssa->ops[call_info->arg_info[0].opline - op_array->opcodes]); in zend_range_info()
61 uint32_t t2 = _ssa_op1_info(op_array, ssa, call_info->arg_info[1].opline, in zend_range_info()
62 &ssa->ops[call_info->arg_info[1].opline - op_array->opcodes]); in zend_range_info()
67 t3 = _ssa_op1_info(op_array, ssa, call_info->arg_info[2].opline, in zend_range_info()
68 &ssa->ops[call_info->arg_info[2].opline - op_array->opcodes]); in zend_range_info()
H A Dcompact_literals.c48 zend_arg_info *arg_info; in type_num_classes() local
54 arg_info = &op_array->arg_info[arg_num-1]; in type_num_classes()
56 arg_info = &op_array->arg_info[op_array->num_args]; in type_num_classes()
61 arg_info = op_array->arg_info - 1; in type_num_classes()
64 if (ZEND_TYPE_IS_COMPLEX(arg_info->type)) { in type_num_classes()
65 if (ZEND_TYPE_HAS_LIST(arg_info->type)) { in type_num_classes()
67 if (ZEND_TYPE_IS_INTERSECTION(arg_info->type)) { in type_num_classes()
68 return ZEND_TYPE_LIST(arg_info->type)->num_types; in type_num_classes()
70 ZEND_ASSERT(ZEND_TYPE_IS_UNION(arg_info->type)); in type_num_classes()
74 ZEND_TYPE_LIST_FOREACH(ZEND_TYPE_LIST(arg_info->type), list_type) { in type_num_classes()
H A Dzend_call_graph.c136 call_info->arg_info[num].opline = opline; in zend_analyze_calls()
264 if (call->arg_info[i].opline) { in zend_build_call_map()
265 map[call->arg_info[i].opline - op_array->opcodes] = call; in zend_build_call_map()
H A Dzend_call_graph.h42 zend_send_arg_info arg_info[1]; member
H A Dzend_inference.c1520 if (op_array->arg_info && in zend_inference_propagate_range()
2404 return zend_convert_type(script, arg_info->type, pce); in zend_fetch_arg_info_type()
3301 zend_arg_info *arg_info = &op_array->arg_info[opline->op1.num-1]; in _zend_update_type_info() local
3304 tmp = zend_fetch_arg_info_type(script, arg_info, &ce); in _zend_update_type_info()
3305 if (ZEND_ARG_SEND_MODE(arg_info)) { in _zend_update_type_info()
3898 zend_arg_info *ret_info = op_array->arg_info - 1; in _zend_update_type_info()
4391 zend_arg_info *ret_info = func->common.arg_info - 1; in zend_get_return_info_from_signature_only()
4619 zend_arg_info *arg_info; in zend_mark_cv_references() local
4636 arg_info = &op_array->arg_info[opline->op1.num-1]; in zend_mark_cv_references()
4637 if (!ZEND_ARG_SEND_MODE(arg_info)) { in zend_mark_cv_references()
[all …]
H A Doptimize_func_calls.c102 if (ZEND_ARG_SEND_MODE(&func->op_array.arg_info[i])) { in zend_try_inline_call()
H A Dzend_inference.h229 const zend_script *script, const zend_arg_info *arg_info, zend_class_entry **pce);
/PHP-8.3/Zend/
H A Dzend_API.h76 #define ZEND_FENTRY(zend_name, name, arg_info, flags) { #zend_name, name, arg_info, (uint32_t) (siz… argument
78 …efine ZEND_RAW_FENTRY(zend_name, name, arg_info, flags) { zend_name, name, arg_info, (uint32_t) … argument
81 #define ZEND_RAW_NAMED_FE(zend_name, name, arg_info) ZEND_RAW_FENTRY(#zend_name, name, arg_info, 0) argument
83 #define ZEND_NAMED_FE(zend_name, name, arg_info) ZEND_RAW_FENTRY(#zend_name, name, arg_info, 0) argument
84 #define ZEND_FE(name, arg_info) ZEND_RAW_FENTRY(#name, zif_##name, arg_info, 0) argument
86 #define ZEND_FALIAS(name, alias, arg_info) ZEND_RAW_FENTRY(#name, zif_##alias, arg_info, 0) argument
87 #define ZEND_DEP_FALIAS(name, alias, arg_info) ZEND_RAW_FENTRY(#name, zif_##alias, arg_info, ZEND_… argument
88 #define ZEND_NAMED_ME(zend_name, name, arg_info, flags) ZEND_FENTRY(zend_name, name, arg_info, flag… argument
114 #define ZEND_NS_NAMED_FE(ns, zend_name, name, arg_info) ZEND_NS_RAW_FENTRY(ns, #zend_name, name, ar… argument
115 #define ZEND_NS_FE(ns, name, arg_info) ZEND_NS_RAW_FENTRY(ns, #name, zif_##name, arg_info, 0) argument
[all …]
H A Dzend_compile.h453 zend_arg_info *arg_info; member
508 zend_internal_arg_info *arg_info; member
534 zend_arg_info *arg_info; /* index -1 represents the return value info, if any */ member
1033 #define ZEND_ARG_SEND_MODE(arg_info) \ argument
1034 ((ZEND_TYPE_FULL_MASK((arg_info)->type) >> _ZEND_SEND_MODE_SHIFT) & 3)
1035 #define ZEND_ARG_IS_VARIADIC(arg_info) \ argument
1036 ((ZEND_TYPE_FULL_MASK((arg_info)->type) & _ZEND_IS_VARIADIC_BIT) != 0)
1037 #define ZEND_ARG_IS_PROMOTED(arg_info) \ argument
1038 ((ZEND_TYPE_FULL_MASK((arg_info)->type) & _ZEND_IS_PROMOTED_BIT) != 0)
1039 #define ZEND_ARG_TYPE_IS_TENTATIVE(arg_info) \ argument
[all …]
H A Dzend_opcode.c70 op_array->arg_info = NULL; in init_op_array()
127 function->arg_info) { in zend_free_internal_arg_info()
131 zend_internal_arg_info *arg_info = function->arg_info - 1; in zend_free_internal_arg_info() local
137 zend_type_release(arg_info[i].type, /* persistent */ 1); in zend_free_internal_arg_info()
139 free(arg_info); in zend_free_internal_arg_info()
598 if (op_array->arg_info) { in destroy_op_array()
600 zend_arg_info *arg_info = op_array->arg_info; in destroy_op_array() local
603 arg_info--; in destroy_op_array()
610 if (arg_info[i].name) { in destroy_op_array()
611 zend_string_release_ex(arg_info[i].name, 0); in destroy_op_array()
[all …]
H A Dzend_closures.c582 struct _zend_arg_info *arg_info = closure->func.common.arg_info; in zend_closure_get_debug_info() local
636 if (arg_info && in zend_closure_get_debug_info()
650 ZEND_ASSERT(arg_info->name && "Argument should have name"); in zend_closure_get_debug_info()
653 ZEND_ARG_SEND_MODE(arg_info) ? "&" : "", in zend_closure_get_debug_info()
654 ZSTR_VAL(arg_info->name)); in zend_closure_get_debug_info()
657 ZEND_ARG_SEND_MODE(arg_info) ? "&" : "", in zend_closure_get_debug_info()
658 ((zend_internal_arg_info*)arg_info)->name); in zend_closure_get_debug_info()
663 arg_info++; in zend_closure_get_debug_info()
868 trampoline.arg_info = trampoline_arg_info; in zend_closure_from_frame()
H A Dzend_inheritance.c798 i < proto_num_args ? &proto->common.arg_info[i] : in zend_do_perform_implementation_check()
801 i < fe_num_args ? &fe->common.arg_info[i] : in zend_do_perform_implementation_check()
846 fe_scope, fe->common.arg_info[-1].type, proto_scope, proto->common.arg_info[-1].type); in zend_do_perform_implementation_check()
864 if (ZEND_TYPE_IS_SET(arg_info->type)) { in zend_append_type_hint()
897 if (fptr->common.arg_info) { in zend_get_function_declaration()
899 zend_arg_info *arg_info = fptr->common.arg_info; in zend_get_function_declaration() local
907 zend_append_type_hint(&str, scope, arg_info, 0); in zend_get_function_declaration()
909 if (ZEND_ARG_SEND_MODE(arg_info)) { in zend_get_function_declaration()
913 if (ZEND_ARG_IS_VARIADIC(arg_info)) { in zend_get_function_declaration()
921 smart_str_appendl(&str, ZSTR_VAL(arg_info->name), ZSTR_LEN(arg_info->name)); in zend_get_function_declaration()
[all …]
H A Dzend_API.c479 zend_arg_info *arg_info = &func->common.arg_info[arg_offset]; in zend_null_arg_deprecated() local
2848 if (ptr->arg_info) { in zend_register_functions()
2850 internal_function->arg_info = (zend_internal_arg_info*)ptr->arg_info+1; in zend_register_functions()
2880 internal_function->arg_info = NULL; in zend_register_functions()
2941 if (reg_function->arg_info && num_args) { in zend_register_functions()
2944 zend_internal_arg_info *arg_info = &reg_function->arg_info[i]; in zend_register_functions() local
2946 if (ZEND_TYPE_IS_SET(arg_info->type)) { in zend_register_functions()
2951 if (!strcmp(arg_info->name, reg_function->arg_info[j].name)) { in zend_register_functions()
2962 if (reg_function->arg_info && in zend_register_functions()
2966 zend_internal_arg_info *arg_info = reg_function->arg_info - 1; in zend_register_functions() local
[all …]
H A Dzend_execute.c1219 cur_arg_info = &zf->common.arg_info[arg_num-1]; in zend_verify_recv_arg_type()
1233 ZEND_ASSERT(ZEND_TYPE_IS_SET(arg_info->type)); in zend_verify_variadic_arg_type()
1235 zend_verify_arg_error(zf, arg_info, arg_num, arg); in zend_verify_variadic_arg_type()
1251 cur_arg_info = &fbc->common.arg_info[i]; in zend_verify_internal_arg_types()
1396 const zend_arg_info *arg_info = &zf->common.arg_info[-1]; in zend_verify_return_error() local
1423 const zend_arg_info *arg_info = &zf->common.arg_info[-1]; in zend_verify_internal_return_error() local
5067 zend_arg_info *arg_info = &fbc->op_array.arg_info[i]; in zend_get_arg_offset_by_name() local
5068 if (zend_string_equals(arg_name, arg_info->name)) { in zend_get_arg_offset_by_name()
5076 zend_internal_arg_info *arg_info = &fbc->internal_function.arg_info[i]; in zend_get_arg_offset_by_name() local
5077 size_t len = strlen(arg_info->name); in zend_get_arg_offset_by_name()
[all …]
H A Dzend_enum.c440 cases_function->arg_info = (zend_internal_arg_info *) (arginfo_class_UnitEnum_cases + 1); in zend_enum_register_funcs()
450 from_function->arg_info = (zend_internal_arg_info *) (arginfo_class_BackedEnum_from + 1); in zend_enum_register_funcs()
459 try_from_function->arg_info = (zend_internal_arg_info *) (arginfo_class_BackedEnum_tryFrom + 1); in zend_enum_register_funcs()
H A Dzend_compile.c3614 zend_arg_info *arg_info = &fn->op_array.arg_info[i]; in zend_get_arg_num() local
3615 if (zend_string_equals(arg_info->name, arg_name)) { in zend_get_arg_num()
3621 zend_internal_arg_info *arg_info = &fn->internal_function.arg_info[i]; in zend_get_arg_num() local
3622 size_t len = strlen(arg_info->name); in zend_get_arg_num()
6417 if (func->common.arg_info) { in zend_set_function_arg_flags()
7009 zend_arg_info *arg_info; in zend_compile_params() local
7054 arg_info = &arg_infos[i]; in zend_compile_params()
7055 arg_info->name = zend_string_copy(name); in zend_compile_params()
7056 arg_info->type = (zend_type) ZEND_TYPE_INIT_NONE(0); in zend_compile_params()
7126 ZEND_TYPE_FULL_MASK(arg_info->type) : MAY_BE_ANY; in zend_compile_params()
[all …]
/PHP-8.3/ext/opcache/
H A Dzend_persist.c438 zend_arg_info *arg_info = op_array->arg_info; in zend_persist_op_array_ex() local
440 arg_info--; in zend_persist_op_array_ex()
442 arg_info = zend_shared_alloc_get_xlat_entry(arg_info); in zend_persist_op_array_ex()
445 arg_info++; in zend_persist_op_array_ex()
447 op_array->arg_info = arg_info; in zend_persist_op_array_ex()
611 if (op_array->arg_info) { in zend_persist_op_array_ex()
612 zend_arg_info *arg_info = op_array->arg_info; in zend_persist_op_array_ex() local
617 arg_info--; in zend_persist_op_array_ex()
625 if (arg_info[i].name) { in zend_persist_op_array_ex()
631 arg_info++; in zend_persist_op_array_ex()
[all …]
H A Dzend_persist_calc.c261 if (op_array->arg_info) { in zend_persist_op_array_calc_ex()
262 zend_arg_info *arg_info = op_array->arg_info; in zend_persist_op_array_calc_ex() local
270 arg_info--; in zend_persist_op_array_calc_ex()
275 if (arg_info[i].name) { in zend_persist_op_array_calc_ex()
276 ADD_INTERNED_STRING(arg_info[i].name); in zend_persist_op_array_calc_ex()
278 zend_persist_type_calc(&arg_info[i].type); in zend_persist_op_array_calc_ex()
H A Dzend_file_cache.c478 SERIALIZE_PTR(op_array->arg_info);
580 if (op_array->arg_info) {
582 SERIALIZE_PTR(op_array->arg_info);
583 p = op_array->arg_info;
1338 UNSERIALIZE_PTR(op_array->arg_info);
1432 if (op_array->arg_info) {
1434 UNSERIALIZE_PTR(op_array->arg_info);
1435 p = op_array->arg_info;
/PHP-8.3/ext/reflection/
H A Dphp_reflection.c695 ? ((zend_internal_arg_info*)arg_info)->name : ZSTR_VAL(arg_info->name)); in _parameter_string()
725 struct _zend_arg_info *arg_info = fptr->common.arg_info; in _function_parameter_string() local
728 if (!arg_info) { in _function_parameter_string()
742 arg_info++; in _function_parameter_string()
1314 reference->arg_info = arg_info; in reflection_parameter_factory()
2128 arg_info= fptr->common.arg_info; in ZEND_METHOD()
2145 arg_info, in ZEND_METHOD()
2152 arg_info++; in ZEND_METHOD()
2487 arg_info = fptr->common.arg_info; in ZEND_METHOD()
2498 if (arg_info[i].name) { in ZEND_METHOD()
[all …]
/PHP-8.3/ext/com_dotnet/
H A Dcom_handlers.c243 if (f->arg_info) { in function_dtor()
244 efree(f->arg_info); in function_dtor()
309 f.arg_info = NULL; in com_method_get()
334 f.arg_info = ecalloc(bindptr.lpfuncdesc->cParams, sizeof(zend_arg_info)); in com_method_get()
338 f.arg_info[i].type = (zend_type) ZEND_TYPE_INIT_NONE(_ZEND_ARG_INFO_FLAGS(by_ref, 0, 0)); in com_method_get()
H A Dcom_com.c487 if (f->arg_info) { in php_com_do_invoke_byref()
489 if (ZEND_ARG_SEND_MODE(&f->arg_info[nargs - i - 1])) { in php_com_do_invoke_byref()
498 if (ZEND_ARG_SEND_MODE(&f->arg_info[nargs - i - 1])) { in php_com_do_invoke_byref()
542 if (f && f->arg_info) { in php_com_do_invoke_byref()
545 if (ZEND_ARG_SEND_MODE(&f->arg_info[nargs - i - 1])) { in php_com_do_invoke_byref()
/PHP-8.3/sapi/phpdbg/
H A Dphpdbg_frame.c29 const zend_arg_info *arginfo = func->common.arg_info; in ZEND_EXTERN_MODULE_GLOBALS()
202 arginfo = func->common.arg_info; in phpdbg_dump_prototype()
/PHP-8.3/ext/pdo/
H A Dpdo_dbh.c1278 if (funcs->arg_info) { in pdo_hash_methods()
1279 zend_internal_function_info *info = (zend_internal_function_info*)funcs->arg_info; in pdo_hash_methods()
1281 func.arg_info = (zend_internal_arg_info*)funcs->arg_info + 1; in pdo_hash_methods()
1291 if (ZEND_ARG_IS_VARIADIC(&funcs->arg_info[funcs->num_args])) { in pdo_hash_methods()
1297 func.arg_info = NULL; in pdo_hash_methods()
/PHP-8.3/ext/opcache/jit/
H A Dzend_jit_trace.c495 zend_arg_info *arg_info; in zend_jit_trace_send_type() local
498 arg_info = &op_array->arg_info[arg_num-1]; in zend_jit_trace_send_type()
500 if (ZEND_TYPE_IS_SET(arg_info->type)) { in zend_jit_trace_send_type()
515 const zend_internal_arg_info *arg_info = &func->internal_function.arg_info[arg_num]; in zend_jit_needs_arg_dtor() local
518 && ZEND_TYPE_IS_SET(arg_info->type) in zend_jit_needs_arg_dtor()
1544 zend_arg_info *arg_info = &op_array->arg_info[i]; in zend_jit_trace_build_tssa() local
1548 if (ZEND_ARG_SEND_MODE(arg_info)) { in zend_jit_trace_build_tssa()
2009 zend_arg_info *arg_info; in zend_jit_trace_build_tssa() local
2012 arg_info = &frame->call->func->op_array.arg_info[opline->op2.num - 1]; in zend_jit_trace_build_tssa()
2351 if (op_array->arg_info) { in zend_jit_trace_build_tssa()
[all …]

Completed in 175 milliseconds

12