Lines Matching refs:call_stack
157 optimizer_call_info *call_stack; in zend_optimize_func_calls() local
164 call_stack = zend_arena_calloc(&ctx->arena, op_array->last / 2, sizeof(optimizer_call_info)); in zend_optimize_func_calls()
173 call_stack[call].func = zend_optimizer_get_called_func( in zend_optimize_func_calls()
175 call_stack[call].try_inline = opline->opcode != ZEND_NEW; in zend_optimize_func_calls()
179 call_stack[call].opline = opline; in zend_optimize_func_calls()
180 call_stack[call].func_arg_num = (uint32_t)-1; in zend_optimize_func_calls()
188 if (call_stack[call].func && call_stack[call].opline) { in zend_optimize_func_calls()
189 zend_op *fcall = call_stack[call].opline; in zend_optimize_func_calls()
195 fcall->op1.num = zend_vm_calc_used_stack(fcall->extended_value, call_stack[call].func); in zend_optimize_func_calls()
198 opline->opcode = zend_get_call_op(fcall, call_stack[call].func); in zend_optimize_func_calls()
201 fcall->op1.num = zend_vm_calc_used_stack(fcall->extended_value, call_stack[call].func); in zend_optimize_func_calls()
205 opline->opcode = zend_get_call_op(fcall, call_stack[call].func); in zend_optimize_func_calls()
215 && call_stack[call].try_inline) { in zend_optimize_func_calls()
216 zend_try_inline_call(op_array, fcall, opline, call_stack[call].func); in zend_optimize_func_calls()
219 call_stack[call].func = NULL; in zend_optimize_func_calls()
220 call_stack[call].opline = NULL; in zend_optimize_func_calls()
221 call_stack[call].try_inline = 0; in zend_optimize_func_calls()
222 call_stack[call].func_arg_num = (uint32_t)-1; in zend_optimize_func_calls()
228 if (call_stack[call - 1].func) { in zend_optimize_func_calls()
229 ZEND_ASSERT(call_stack[call - 1].func_arg_num != (uint32_t)-1); in zend_optimize_func_calls()
230 if (ARG_SHOULD_BE_SENT_BY_REF(call_stack[call - 1].func, call_stack[call - 1].func_arg_num)) { in zend_optimize_func_calls()
241 call_stack[call - 1].try_inline = 0; in zend_optimize_func_calls()
254 if (call_stack[call - 1].func) { in zend_optimize_func_calls()
255 if (ARG_MUST_BE_SENT_BY_REF(call_stack[call - 1].func, opline->op2.num)) { in zend_optimize_func_calls()
257 call_stack[call - 1].opline = NULL; in zend_optimize_func_calls()
264 if (call_stack[call - 1].func) { in zend_optimize_func_calls()
265 call_stack[call - 1].func_arg_num = opline->op2.num; in zend_optimize_func_calls()
271 if (call_stack[call - 1].func) { in zend_optimize_func_calls()
272 call_stack[call - 1].func_arg_num = (uint32_t)-1; in zend_optimize_func_calls()
273 if (ARG_SHOULD_BE_SENT_BY_REF(call_stack[call - 1].func, opline->op2.num)) { in zend_optimize_func_calls()
281 if (call_stack[call - 1].func) { in zend_optimize_func_calls()
282 if (ARG_MUST_BE_SENT_BY_REF(call_stack[call - 1].func, opline->op2.num)) { in zend_optimize_func_calls()
284 } else if (ARG_MAY_BE_SENT_BY_REF(call_stack[call - 1].func, opline->op2.num)) { in zend_optimize_func_calls()
294 call_stack[call - 1].try_inline = 0; in zend_optimize_func_calls()