Lines Matching refs:func
40 zend_function *func; member
95 …zend_try_inline_call(zend_op_array *op_array, zend_op *fcall, zend_op *opline, zend_function *func) in zend_try_inline_call() argument
97 if (func->type == ZEND_USER_FUNCTION in zend_try_inline_call()
98 && !(func->op_array.fn_flags & (ZEND_ACC_ABSTRACT|ZEND_ACC_HAS_TYPE_HINTS)) in zend_try_inline_call()
100 && !(func->op_array.fn_flags & (ZEND_ACC_TRAIT_CLONE)) in zend_try_inline_call()
101 && fcall->extended_value >= func->op_array.required_num_args in zend_try_inline_call()
102 && func->op_array.opcodes[func->op_array.num_args].opcode == ZEND_RETURN) { in zend_try_inline_call()
104 zend_op *ret_opline = func->op_array.opcodes + func->op_array.num_args; in zend_try_inline_call()
107 uint32_t i, num_args = func->op_array.num_args; in zend_try_inline_call()
108 num_args += (func->op_array.fn_flags & ZEND_ACC_VARIADIC) != 0; in zend_try_inline_call()
111 && !(func->op_array.fn_flags & ZEND_ACC_STATIC)) { in zend_try_inline_call()
119 if (ZEND_ARG_SEND_MODE(&func->op_array.arg_info[i])) { in zend_try_inline_call()
124 if (fcall->extended_value < func->op_array.num_args) { in zend_try_inline_call()
129 …if (Z_TYPE_P(CRT_CONSTANT_EX(&func->op_array, &func->op_array.opcodes[i], func->op_array.opcodes[i… in zend_try_inline_call()
133 } while (i < func->op_array.num_args); in zend_try_inline_call()
139 ZVAL_COPY(&zv, CRT_CONSTANT_EX(&func->op_array, ret_opline, ret_opline->op1)); in zend_try_inline_call()
177 call_stack[call].func = zend_optimizer_get_called_func( in zend_optimize_func_calls()
193 if (call_stack[call].func && call_stack[call].opline) { in zend_optimize_func_calls()
200 fcall->op1.num = zend_vm_calc_used_stack(fcall->extended_value, call_stack[call].func); in zend_optimize_func_calls()
203 opline->opcode = zend_get_call_op(fcall, call_stack[call].func); in zend_optimize_func_calls()
206 fcall->op1.num = zend_vm_calc_used_stack(fcall->extended_value, call_stack[call].func); in zend_optimize_func_calls()
210 opline->opcode = zend_get_call_op(fcall, call_stack[call].func); in zend_optimize_func_calls()
221 zend_try_inline_call(op_array, fcall, opline, call_stack[call].func); in zend_optimize_func_calls()
224 call_stack[call].func = NULL; in zend_optimize_func_calls()
233 if (call_stack[call - 1].func in zend_optimize_func_calls()
235 if (ARG_SHOULD_BE_SENT_BY_REF(call_stack[call - 1].func, call_stack[call - 1].func_arg_num)) { in zend_optimize_func_calls()
259 if (call_stack[call - 1].func) { in zend_optimize_func_calls()
265 if (ARG_MUST_BE_SENT_BY_REF(call_stack[call - 1].func, opline->op2.num)) { in zend_optimize_func_calls()
274 if (call_stack[call - 1].func) { in zend_optimize_func_calls()
287 if (call_stack[call - 1].func) { in zend_optimize_func_calls()
294 if (ARG_SHOULD_BE_SENT_BY_REF(call_stack[call - 1].func, opline->op2.num)) { in zend_optimize_func_calls()
302 if (call_stack[call - 1].func) { in zend_optimize_func_calls()
308 if (ARG_MUST_BE_SENT_BY_REF(call_stack[call - 1].func, opline->op2.num)) { in zend_optimize_func_calls()
310 } else if (ARG_MAY_BE_SENT_BY_REF(call_stack[call - 1].func, opline->op2.num)) { in zend_optimize_func_calls()