Lines Matching refs:call
42 int call = 0; in zend_delete_call_instructions() local
52 if (call == 0) { in zend_delete_call_instructions()
60 call--; in zend_delete_call_instructions()
66 call++; in zend_delete_call_instructions()
70 if (call == 0) { in zend_delete_call_instructions()
155 int call = 0; in zend_optimize_func_calls() local
176 call_stack[call].func = zend_optimizer_get_called_func( in zend_optimize_func_calls()
177 ctx->script, op_array, opline, &call_stack[call].is_prototype); in zend_optimize_func_calls()
178 call_stack[call].try_inline = in zend_optimize_func_calls()
179 !call_stack[call].is_prototype in zend_optimize_func_calls()
185 call_stack[call].opline = opline; in zend_optimize_func_calls()
186 call_stack[call].func_arg_num = (uint32_t)-1; in zend_optimize_func_calls()
187 call++; in zend_optimize_func_calls()
194 call--; in zend_optimize_func_calls()
195 if (call_stack[call].func && call_stack[call].opline) { in zend_optimize_func_calls()
196 zend_op *fcall = call_stack[call].opline; in zend_optimize_func_calls()
202 fcall->op1.num = zend_vm_calc_used_stack(fcall->extended_value, call_stack[call].func); in zend_optimize_func_calls()
206 opline->opcode = zend_get_call_op(fcall, call_stack[call].func); in zend_optimize_func_calls()
210 fcall->op1.num = zend_vm_calc_used_stack(fcall->extended_value, call_stack[call].func); in zend_optimize_func_calls()
215 opline->opcode = zend_get_call_op(fcall, call_stack[call].func); in zend_optimize_func_calls()
227 && call_stack[call].try_inline in zend_optimize_func_calls()
229 zend_try_inline_call(op_array, fcall, opline, call_stack[call].func); in zend_optimize_func_calls()
232 call_stack[call].func = NULL; in zend_optimize_func_calls()
233 call_stack[call].opline = NULL; in zend_optimize_func_calls()
234 call_stack[call].try_inline = 0; in zend_optimize_func_calls()
235 call_stack[call].func_arg_num = (uint32_t)-1; in zend_optimize_func_calls()
241 if (call_stack[call - 1].func_arg_num != (uint32_t)-1 in zend_optimize_func_calls()
242 && has_known_send_mode(&call_stack[call - 1], call_stack[call - 1].func_arg_num)) { in zend_optimize_func_calls()
243 if (ARG_SHOULD_BE_SENT_BY_REF(call_stack[call - 1].func, call_stack[call - 1].func_arg_num)) { in zend_optimize_func_calls()
247 … && (opline->op1_type == IS_TMP_VAR || call_stack[call - 1].last_check_func_arg_opline == NULL)) { in zend_optimize_func_calls()
249 call_stack[call - 1].last_check_func_arg_opline = NULL; in zend_optimize_func_calls()
262 call_stack[call - 1].try_inline = 0; in zend_optimize_func_calls()
276 call_stack[call - 1].try_inline = 0; in zend_optimize_func_calls()
280 if (has_known_send_mode(&call_stack[call - 1], opline->op2.num)) { in zend_optimize_func_calls()
281 if (!ARG_MUST_BE_SENT_BY_REF(call_stack[call - 1].func, opline->op2.num)) { in zend_optimize_func_calls()
288 call_stack[call - 1].try_inline = 0; in zend_optimize_func_calls()
289 call_stack[call - 1].func_arg_num = (uint32_t)-1; in zend_optimize_func_calls()
293 if (has_known_send_mode(&call_stack[call - 1], opline->op2.num)) { in zend_optimize_func_calls()
294 call_stack[call - 1].func_arg_num = opline->op2.num; in zend_optimize_func_calls()
295 call_stack[call - 1].last_check_func_arg_opline = opline; in zend_optimize_func_calls()
300 if (call_stack[call - 1].last_check_func_arg_opline == NULL) { in zend_optimize_func_calls()
302 call_stack[call - 1].try_inline = 0; in zend_optimize_func_calls()
306 MAKE_NOP(call_stack[call - 1].last_check_func_arg_opline); in zend_optimize_func_calls()
307 call_stack[call - 1].last_check_func_arg_opline = NULL; in zend_optimize_func_calls()
311 call_stack[call - 1].try_inline = 0; in zend_optimize_func_calls()
315 if (has_known_send_mode(&call_stack[call - 1], opline->op2.num)) { in zend_optimize_func_calls()
316 call_stack[call - 1].func_arg_num = (uint32_t)-1; in zend_optimize_func_calls()
317 if (ARG_SHOULD_BE_SENT_BY_REF(call_stack[call - 1].func, opline->op2.num)) { in zend_optimize_func_calls()
326 call_stack[call - 1].try_inline = 0; in zend_optimize_func_calls()
330 if (has_known_send_mode(&call_stack[call - 1], opline->op2.num)) { in zend_optimize_func_calls()
331 if (ARG_MUST_BE_SENT_BY_REF(call_stack[call - 1].func, opline->op2.num)) { in zend_optimize_func_calls()
333 } else if (ARG_MAY_BE_SENT_BY_REF(call_stack[call - 1].func, opline->op2.num)) { in zend_optimize_func_calls()
344 call_stack[call - 1].try_inline = 0; in zend_optimize_func_calls()
351 call_stack[call - 1].try_inline = 0; in zend_optimize_func_calls()