Lines Matching refs:call
42 int call = 0; in zend_delete_call_instructions() local
51 if (call == 0) { in zend_delete_call_instructions()
59 call--; in zend_delete_call_instructions()
65 call++; in zend_delete_call_instructions()
69 if (call == 0) { in zend_delete_call_instructions()
154 int call = 0; in zend_optimize_func_calls() local
174 call_stack[call].func = zend_optimizer_get_called_func( in zend_optimize_func_calls()
175 ctx->script, op_array, opline, &call_stack[call].is_prototype); in zend_optimize_func_calls()
176 call_stack[call].try_inline = in zend_optimize_func_calls()
177 !call_stack[call].is_prototype && opline->opcode != ZEND_NEW; in zend_optimize_func_calls()
181 call_stack[call].opline = opline; in zend_optimize_func_calls()
182 call_stack[call].func_arg_num = (uint32_t)-1; in zend_optimize_func_calls()
183 call++; in zend_optimize_func_calls()
190 call--; in zend_optimize_func_calls()
191 if (call_stack[call].func && call_stack[call].opline) { in zend_optimize_func_calls()
192 zend_op *fcall = call_stack[call].opline; in zend_optimize_func_calls()
198 fcall->op1.num = zend_vm_calc_used_stack(fcall->extended_value, call_stack[call].func); in zend_optimize_func_calls()
202 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()
211 opline->opcode = zend_get_call_op(fcall, call_stack[call].func); in zend_optimize_func_calls()
222 && call_stack[call].try_inline in zend_optimize_func_calls()
224 zend_try_inline_call(op_array, fcall, opline, call_stack[call].func); in zend_optimize_func_calls()
227 call_stack[call].func = NULL; in zend_optimize_func_calls()
228 call_stack[call].opline = NULL; in zend_optimize_func_calls()
229 call_stack[call].try_inline = 0; in zend_optimize_func_calls()
230 call_stack[call].func_arg_num = (uint32_t)-1; in zend_optimize_func_calls()
236 if (call_stack[call - 1].func_arg_num != (uint32_t)-1 in zend_optimize_func_calls()
237 && has_known_send_mode(&call_stack[call - 1], call_stack[call - 1].func_arg_num)) { in zend_optimize_func_calls()
238 if (ARG_SHOULD_BE_SENT_BY_REF(call_stack[call - 1].func, call_stack[call - 1].func_arg_num)) { in zend_optimize_func_calls()
242 … && (opline->op1_type == IS_TMP_VAR || call_stack[call - 1].last_check_func_arg_opline == NULL)) { in zend_optimize_func_calls()
244 call_stack[call - 1].last_check_func_arg_opline = NULL; in zend_optimize_func_calls()
257 call_stack[call - 1].try_inline = 0; in zend_optimize_func_calls()
271 call_stack[call - 1].try_inline = 0; in zend_optimize_func_calls()
275 if (has_known_send_mode(&call_stack[call - 1], opline->op2.num)) { in zend_optimize_func_calls()
276 if (!ARG_MUST_BE_SENT_BY_REF(call_stack[call - 1].func, opline->op2.num)) { in zend_optimize_func_calls()
283 call_stack[call - 1].try_inline = 0; in zend_optimize_func_calls()
284 call_stack[call - 1].func_arg_num = (uint32_t)-1; in zend_optimize_func_calls()
288 if (has_known_send_mode(&call_stack[call - 1], opline->op2.num)) { in zend_optimize_func_calls()
289 call_stack[call - 1].func_arg_num = opline->op2.num; in zend_optimize_func_calls()
290 call_stack[call - 1].last_check_func_arg_opline = opline; in zend_optimize_func_calls()
295 if (call_stack[call - 1].last_check_func_arg_opline == NULL) { in zend_optimize_func_calls()
297 call_stack[call - 1].try_inline = 0; in zend_optimize_func_calls()
301 MAKE_NOP(call_stack[call - 1].last_check_func_arg_opline); in zend_optimize_func_calls()
302 call_stack[call - 1].last_check_func_arg_opline = NULL; in zend_optimize_func_calls()
306 call_stack[call - 1].try_inline = 0; in zend_optimize_func_calls()
310 if (has_known_send_mode(&call_stack[call - 1], opline->op2.num)) { in zend_optimize_func_calls()
311 call_stack[call - 1].func_arg_num = (uint32_t)-1; in zend_optimize_func_calls()
312 if (ARG_SHOULD_BE_SENT_BY_REF(call_stack[call - 1].func, opline->op2.num)) { in zend_optimize_func_calls()
321 call_stack[call - 1].try_inline = 0; in zend_optimize_func_calls()
325 if (has_known_send_mode(&call_stack[call - 1], opline->op2.num)) { in zend_optimize_func_calls()
326 if (ARG_MUST_BE_SENT_BY_REF(call_stack[call - 1].func, opline->op2.num)) { in zend_optimize_func_calls()
328 } else if (ARG_MAY_BE_SENT_BY_REF(call_stack[call - 1].func, opline->op2.num)) { in zend_optimize_func_calls()
339 call_stack[call - 1].try_inline = 0; in zend_optimize_func_calls()
346 call_stack[call - 1].try_inline = 0; in zend_optimize_func_calls()