Lines Matching refs:call_stack
156 optimizer_call_info *call_stack; in zend_optimize_func_calls() local
163 call_stack = zend_arena_calloc(&ctx->arena, op_array->last / 2, sizeof(optimizer_call_info)); in zend_optimize_func_calls()
172 call_stack[call].func = zend_optimizer_get_called_func( in zend_optimize_func_calls()
174 call_stack[call].try_inline = opline->opcode != ZEND_NEW; in zend_optimize_func_calls()
178 call_stack[call].opline = opline; in zend_optimize_func_calls()
186 if (call_stack[call].func && call_stack[call].opline) { in zend_optimize_func_calls()
187 zend_op *fcall = call_stack[call].opline; in zend_optimize_func_calls()
193 fcall->op1.num = zend_vm_calc_used_stack(fcall->extended_value, call_stack[call].func); in zend_optimize_func_calls()
197 opline->opcode = zend_get_call_op(fcall, call_stack[call].func); 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()
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()
227 if (call_stack[call - 1].func) { in zend_optimize_func_calls()
228 …if (ARG_SHOULD_BE_SENT_BY_REF(call_stack[call - 1].func, (opline->extended_value & ZEND_FETCH_ARG_… in zend_optimize_func_calls()
240 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 if (ARG_SHOULD_BE_SENT_BY_REF(call_stack[call - 1].func, opline->op2.num)) { in zend_optimize_func_calls()
273 if (call_stack[call - 1].func) { in zend_optimize_func_calls()
274 if (ARG_MUST_BE_SENT_BY_REF(call_stack[call - 1].func, opline->op2.num)) { in zend_optimize_func_calls()
276 } else if (ARG_MAY_BE_SENT_BY_REF(call_stack[call - 1].func, opline->op2.num)) { in zend_optimize_func_calls()
286 call_stack[call - 1].try_inline = 0; in zend_optimize_func_calls()