Lines Matching refs:call_stack

159 	optimizer_call_info *call_stack;  in zend_optimize_func_calls()  local
166 call_stack = zend_arena_calloc(&ctx->arena, op_array->last / 2, sizeof(optimizer_call_info)); in zend_optimize_func_calls()
177 call_stack[call].func = zend_optimizer_get_called_func( in zend_optimize_func_calls()
178 ctx->script, op_array, opline, &call_stack[call].is_prototype); in zend_optimize_func_calls()
179 call_stack[call].try_inline = in zend_optimize_func_calls()
180 !call_stack[call].is_prototype && opline->opcode != ZEND_NEW; in zend_optimize_func_calls()
184 call_stack[call].opline = opline; in zend_optimize_func_calls()
185 call_stack[call].func_arg_num = (uint32_t)-1; in zend_optimize_func_calls()
193 if (call_stack[call].func && call_stack[call].opline) { in zend_optimize_func_calls()
194 zend_op *fcall = 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()
220 && call_stack[call].try_inline) { 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()
225 call_stack[call].opline = NULL; in zend_optimize_func_calls()
226 call_stack[call].try_inline = 0; in zend_optimize_func_calls()
227 call_stack[call].func_arg_num = (uint32_t)-1; in zend_optimize_func_calls()
233 if (call_stack[call - 1].func in zend_optimize_func_calls()
234 && call_stack[call - 1].func_arg_num != (uint32_t)-1) { 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()
246 call_stack[call - 1].try_inline = 0; in zend_optimize_func_calls()
259 if (call_stack[call - 1].func) { in zend_optimize_func_calls()
261 call_stack[call - 1].try_inline = 0; 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()
267 call_stack[call - 1].opline = NULL; in zend_optimize_func_calls()
274 if (call_stack[call - 1].func) { in zend_optimize_func_calls()
276 call_stack[call - 1].try_inline = 0; in zend_optimize_func_calls()
277 call_stack[call - 1].func_arg_num = (uint32_t)-1; in zend_optimize_func_calls()
281 call_stack[call - 1].func_arg_num = opline->op2.num; in zend_optimize_func_calls()
287 if (call_stack[call - 1].func) { in zend_optimize_func_calls()
289 call_stack[call - 1].try_inline = 0; in zend_optimize_func_calls()
293 call_stack[call - 1].func_arg_num = (uint32_t)-1; 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()
304 call_stack[call - 1].try_inline = 0; 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()
321 call_stack[call - 1].try_inline = 0; in zend_optimize_func_calls()
328 call_stack[call - 1].try_inline = 0; in zend_optimize_func_calls()