Home
last modified time | relevance | path

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

12

/php-src/Zend/Optimizer/
H A Dzend_func_info.c61 uint32_t t1 = _ssa_op1_info(op_array, ssa, call_info->arg_info[0].opline, in zend_range_info()
62 ssa->ops ? &ssa->ops[call_info->arg_info[0].opline - op_array->opcodes] : NULL); in zend_range_info()
63 uint32_t t2 = _ssa_op1_info(op_array, ssa, call_info->arg_info[1].opline, in zend_range_info()
64 ssa->ops ? &ssa->ops[call_info->arg_info[1].opline - op_array->opcodes] : NULL); in zend_range_info()
69 t3 = _ssa_op1_info(op_array, ssa, call_info->arg_info[2].opline, in zend_range_info()
70 ssa->ops ? &ssa->ops[call_info->arg_info[2].opline - op_array->opcodes] : NULL); 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.h43 zend_send_arg_info arg_info[1]; member
H A Dzend_call_graph.c157 call_info->arg_info[num].opline = opline; in zend_analyze_calls()
282 if (call->arg_info[i].opline) { in zend_build_call_map()
283 map[call->arg_info[i].opline - op_array->opcodes] = call; in zend_build_call_map()
H A Dzend_inference.c1510 if (op_array->arg_info && in zend_inference_propagate_range()
2403 return zend_convert_type(script, arg_info->type, pce); in zend_fetch_arg_info_type()
3307 zend_arg_info *arg_info = &op_array->arg_info[opline->op1.num-1]; in _zend_update_type_info() local
3310 tmp = zend_fetch_arg_info_type(script, arg_info, &ce); in _zend_update_type_info()
3311 if (ZEND_ARG_SEND_MODE(arg_info)) { in _zend_update_type_info()
3964 zend_arg_info *ret_info = op_array->arg_info - 1; in _zend_update_type_info()
4518 zend_arg_info *ret_info = func->common.arg_info - 1; in zend_get_return_info_from_signature_only()
4746 zend_arg_info *arg_info; in zend_mark_cv_references() local
4763 arg_info = &op_array->arg_info[opline->op1.num-1]; in zend_mark_cv_references()
4764 if (!ZEND_ARG_SEND_MODE(arg_info)) { in zend_mark_cv_references()
[all …]
H A Doptimize_func_calls.c103 if (ZEND_ARG_SEND_MODE(&func->op_array.arg_info[i])) { in zend_try_inline_call()
/php-src/Zend/
H A Dzend_API.h78 #define ZEND_FENTRY(zend_name, name, arg_info, flags) { #zend_name, name, arg_info, (uint32_t) (siz… argument
83 #define ZEND_RAW_NAMED_FE(zend_name, name, arg_info) ZEND_RAW_FENTRY(#zend_name, name, arg_info, 0,… argument
85 #define ZEND_NAMED_FE(zend_name, name, arg_info) ZEND_RAW_FENTRY(#zend_name, name, arg_info, 0, NUL… argument
86 #define ZEND_FE(name, arg_info) ZEND_RAW_FENTRY(#name, zif_##name, arg_info, 0, NULL, NULL) argument
88 #define ZEND_FALIAS(name, alias, arg_info) ZEND_RAW_FENTRY(#name, zif_##alias, arg_info, 0, NULL,… argument
90 #define ZEND_NAMED_ME(zend_name, name, arg_info, flags) ZEND_FENTRY(zend_name, name, arg_info, flag… argument
116 …ine ZEND_NS_RAW_NAMED_FE(ns, zend_name, name, arg_info) ZEND_NS_RAW_FENTRY(ns, #zend_name, name,… argument
118 #define ZEND_NS_NAMED_FE(ns, zend_name, name, arg_info) ZEND_NS_RAW_FENTRY(ns, #zend_name, name, ar… argument
119 #define ZEND_NS_FE(ns, name, arg_info) ZEND_NS_RAW_FENTRY(ns, #name, zif_##name, arg_info, 0) argument
120 #define ZEND_NS_DEP_FE(ns, name, arg_info) ZEND_NS_RAW_FENTRY(ns, #name, zif_##name, arg_info, Z… argument
[all …]
H A Dzend_compile.h513 zend_arg_info *arg_info; member
572 zend_internal_arg_info *arg_info; member
601 zend_arg_info *arg_info; /* index -1 represents the return value info, if any */ member
1109 #define ZEND_ARG_SEND_MODE(arg_info) \ argument
1110 ((ZEND_TYPE_FULL_MASK((arg_info)->type) >> _ZEND_SEND_MODE_SHIFT) & 3)
1111 #define ZEND_ARG_IS_VARIADIC(arg_info) \ argument
1112 ((ZEND_TYPE_FULL_MASK((arg_info)->type) & _ZEND_IS_VARIADIC_BIT) != 0)
1113 #define ZEND_ARG_IS_PROMOTED(arg_info) \ argument
1114 ((ZEND_TYPE_FULL_MASK((arg_info)->type) & _ZEND_IS_PROMOTED_BIT) != 0)
1115 #define ZEND_ARG_TYPE_IS_TENTATIVE(arg_info) \ argument
[all …]
H A Dzend_opcode.c70 op_array->arg_info = NULL; in init_op_array()
128 function->arg_info) { in zend_free_internal_arg_info()
132 zend_internal_arg_info *arg_info = function->arg_info - 1; in zend_free_internal_arg_info() local
138 zend_type_release(arg_info[i].type, /* persistent */ 1); in zend_free_internal_arg_info()
140 free(arg_info); in zend_free_internal_arg_info()
615 if (op_array->arg_info) { in destroy_op_array()
617 zend_arg_info *arg_info = op_array->arg_info; in destroy_op_array() local
620 arg_info--; in destroy_op_array()
627 if (arg_info[i].name) { in destroy_op_array()
628 zend_string_release_ex(arg_info[i].name, 0); in destroy_op_array()
[all …]
H A Dzend_closures.c584 struct _zend_arg_info *arg_info = closure->func.common.arg_info; in zend_closure_get_debug_info() local
647 if (arg_info && in zend_closure_get_debug_info()
661 ZEND_ASSERT(arg_info->name && "Argument should have name"); in zend_closure_get_debug_info()
664 ZEND_ARG_SEND_MODE(arg_info) ? "&" : "", in zend_closure_get_debug_info()
665 ZSTR_VAL(arg_info->name)); in zend_closure_get_debug_info()
668 ZEND_ARG_SEND_MODE(arg_info) ? "&" : "", in zend_closure_get_debug_info()
669 ((zend_internal_arg_info*)arg_info)->name); in zend_closure_get_debug_info()
674 arg_info++; in zend_closure_get_debug_info()
880 trampoline.arg_info = trampoline_arg_info; in zend_closure_from_frame()
H A Dzend_inheritance.c813 i < proto_num_args ? &proto->common.arg_info[i] : in zend_do_perform_implementation_check()
816 i < fe_num_args ? &fe->common.arg_info[i] : in zend_do_perform_implementation_check()
861 fe_scope, fe->common.arg_info[-1].type, proto_scope, proto->common.arg_info[-1].type); in zend_do_perform_implementation_check()
879 if (ZEND_TYPE_IS_SET(arg_info->type)) { in zend_append_type_hint()
912 if (fptr->common.arg_info) { in zend_get_function_declaration()
914 zend_arg_info *arg_info = fptr->common.arg_info; in zend_get_function_declaration() local
922 zend_append_type_hint(&str, scope, arg_info, 0); in zend_get_function_declaration()
924 if (ZEND_ARG_SEND_MODE(arg_info)) { in zend_get_function_declaration()
928 if (ZEND_ARG_IS_VARIADIC(arg_info)) { in zend_get_function_declaration()
936 smart_str_appendl(&str, ZSTR_VAL(arg_info->name), ZSTR_LEN(arg_info->name)); in zend_get_function_declaration()
[all …]
H A Dzend_API.c505 zend_arg_info *arg_info = &func->common.arg_info[arg_offset]; in zend_null_arg_deprecated() local
2986 if (ptr->arg_info) { in zend_register_functions()
2988 internal_function->arg_info = (zend_internal_arg_info*)ptr->arg_info+1; in zend_register_functions()
3018 internal_function->arg_info = NULL; in zend_register_functions()
3100 if (reg_function->arg_info && num_args) { in zend_register_functions()
3103 zend_internal_arg_info *arg_info = &reg_function->arg_info[i]; in zend_register_functions() local
3105 if (ZEND_TYPE_IS_SET(arg_info->type)) { in zend_register_functions()
3110 if (!strcmp(arg_info->name, reg_function->arg_info[j].name)) { in zend_register_functions()
3121 if (reg_function->arg_info && in zend_register_functions()
3125 zend_internal_arg_info *arg_info = reg_function->arg_info - 1; in zend_register_functions() local
[all …]
H A Dzend_execute.c1260 cur_arg_info = &zf->common.arg_info[arg_num-1]; in zend_verify_recv_arg_type()
1274 ZEND_ASSERT(ZEND_TYPE_IS_SET(arg_info->type)); in zend_verify_variadic_arg_type()
1276 zend_verify_arg_error(zf, arg_info, arg_num, arg); in zend_verify_variadic_arg_type()
1292 cur_arg_info = &fbc->common.arg_info[i]; in zend_verify_internal_arg_types()
1437 const zend_arg_info *arg_info = &zf->common.arg_info[-1]; in zend_verify_return_error() local
1464 const zend_arg_info *arg_info = &zf->common.arg_info[-1]; in zend_verify_internal_return_error() local
5299 zend_arg_info *arg_info = &fbc->op_array.arg_info[i]; in zend_get_arg_offset_by_name() local
5300 if (zend_string_equals(arg_name, arg_info->name)) { in zend_get_arg_offset_by_name()
5309 zend_internal_arg_info *arg_info = &fbc->internal_function.arg_info[i]; in zend_get_arg_offset_by_name() local
5310 size_t len = strlen(arg_info->name); in zend_get_arg_offset_by_name()
[all …]
H A Dzend_enum.c445 cases_function->arg_info = (zend_internal_arg_info *) (arginfo_class_UnitEnum_cases + 1); in zend_enum_register_funcs()
456 from_function->arg_info = (zend_internal_arg_info *) (arginfo_class_BackedEnum_from + 1); in zend_enum_register_funcs()
466 try_from_function->arg_info = (zend_internal_arg_info *) (arginfo_class_BackedEnum_tryFrom + 1); in zend_enum_register_funcs()
H A Dzend_compile.c3701 zend_arg_info *arg_info = &fn->op_array.arg_info[i]; in zend_get_arg_num() local
3702 if (zend_string_equals(arg_info->name, arg_name)) { in zend_get_arg_num()
3709 zend_internal_arg_info *arg_info = &fn->internal_function.arg_info[i]; in zend_get_arg_num() local
3710 size_t len = strlen(arg_info->name); in zend_get_arg_num()
4686 zend_internal_arg_info *arg_info = (zend_internal_arg_info *)&fbc->common.arg_info[i]; in zend_compile_frameless_icall_ex() local
6930 if (func->common.arg_info) { in zend_set_function_arg_flags()
7602 zend_arg_info *arg_info; in zend_compile_params() local
7647 arg_info = &arg_infos[i]; in zend_compile_params()
7648 arg_info->name = zend_string_copy(name); in zend_compile_params()
7728 ZEND_TYPE_FULL_MASK(arg_info->type) : MAY_BE_ANY; in zend_compile_params()
[all …]
H A Dzend_object_handlers.c1603 static const zend_arg_info arg_info[1] = {{0}}; in zend_get_call_trampoline_func() local
1652 func->arg_info = (zend_arg_info *) arg_info; in zend_get_call_trampoline_func()
1705 static const zend_arg_info arg_info[1] = {{0}}; in zend_get_property_hook_trampoline() local
1727 func->common.arg_info = (zend_arg_info *) arg_info; in zend_get_property_hook_trampoline()
/php-src/ext/opcache/
H A Dzend_persist.c442 zend_arg_info *arg_info = op_array->arg_info; in zend_persist_op_array_ex() local
444 arg_info--; in zend_persist_op_array_ex()
446 arg_info = zend_shared_alloc_get_xlat_entry(arg_info); in zend_persist_op_array_ex()
449 arg_info++; in zend_persist_op_array_ex()
451 op_array->arg_info = arg_info; in zend_persist_op_array_ex()
616 if (op_array->arg_info) { in zend_persist_op_array_ex()
617 zend_arg_info *arg_info = op_array->arg_info; in zend_persist_op_array_ex() local
622 arg_info--; in zend_persist_op_array_ex()
630 if (arg_info[i].name) { in zend_persist_op_array_ex()
636 arg_info++; in zend_persist_op_array_ex()
[all …]
H A Dzend_persist_calc.c264 if (op_array->arg_info) { in zend_persist_op_array_calc_ex()
265 zend_arg_info *arg_info = op_array->arg_info; in zend_persist_op_array_calc_ex() local
273 arg_info--; in zend_persist_op_array_calc_ex()
278 if (arg_info[i].name) { in zend_persist_op_array_calc_ex()
279 ADD_INTERNED_STRING(arg_info[i].name); in zend_persist_op_array_calc_ex()
281 zend_persist_type_calc(&arg_info[i].type); in zend_persist_op_array_calc_ex()
H A Dzend_file_cache.c484 SERIALIZE_PTR(op_array->arg_info);
588 if (op_array->arg_info) {
590 SERIALIZE_PTR(op_array->arg_info);
591 p = op_array->arg_info;
1373 UNSERIALIZE_PTR(op_array->arg_info);
1469 if (op_array->arg_info) {
1471 UNSERIALIZE_PTR(op_array->arg_info);
1472 p = op_array->arg_info;
/php-src/ext/reflection/
H A Dphp_reflection.c720 ? ((zend_internal_arg_info*)arg_info)->name : ZSTR_VAL(arg_info->name)); in _parameter_string()
750 struct _zend_arg_info *arg_info = fptr->common.arg_info; in _function_parameter_string() local
753 if (!arg_info) { in _function_parameter_string()
767 arg_info++; in _function_parameter_string()
1362 reference->arg_info = arg_info; in reflection_parameter_factory()
2148 arg_info= fptr->common.arg_info; in ZEND_METHOD()
2165 arg_info, in ZEND_METHOD()
2172 arg_info++; in ZEND_METHOD()
2494 arg_info = fptr->common.arg_info; in ZEND_METHOD()
2505 if (arg_info[i].name) { in ZEND_METHOD()
[all …]
/php-src/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()
335 f.arg_info = ecalloc(bindptr.lpfuncdesc->cParams, sizeof(zend_arg_info)); in com_method_get()
339 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-src/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-src/ext/pdo/
H A Dpdo_dbh.c1370 if (funcs->arg_info) { in pdo_hash_methods()
1371 zend_internal_function_info *info = (zend_internal_function_info*)funcs->arg_info; in pdo_hash_methods()
1373 func.arg_info = (zend_internal_arg_info*)funcs->arg_info + 1; in pdo_hash_methods()
1383 if (ZEND_ARG_IS_VARIADIC(&funcs->arg_info[funcs->num_args])) { in pdo_hash_methods()
1389 func.arg_info = NULL; in pdo_hash_methods()
/php-src/ext/opcache/jit/
H A Dzend_jit_trace.c461 zend_arg_info *arg_info; in zend_jit_trace_send_type() local
464 arg_info = &op_array->arg_info[arg_num-1]; in zend_jit_trace_send_type()
466 if (ZEND_TYPE_IS_SET(arg_info->type)) { in zend_jit_trace_send_type()
481 const zend_internal_arg_info *arg_info = &func->internal_function.arg_info[arg_num]; in zend_jit_needs_arg_dtor() local
484 && ZEND_TYPE_IS_SET(arg_info->type) in zend_jit_needs_arg_dtor()
1688 zend_arg_info *arg_info = &op_array->arg_info[i]; in zend_jit_trace_build_tssa() local
1692 if (ZEND_ARG_SEND_MODE(arg_info)) { in zend_jit_trace_build_tssa()
2145 zend_arg_info *arg_info; in zend_jit_trace_build_tssa() local
2148 arg_info = &frame->call->func->op_array.arg_info[opline->op2.num - 1]; in zend_jit_trace_build_tssa()
2484 if (op_array->arg_info) { in zend_jit_trace_build_tssa()
[all …]

Completed in 204 milliseconds

12