Lines Matching refs:opcode

213 	switch (opline->opcode) {  in can_replace_op1()
268 return (opline - 1)->opcode != ZEND_ASSIGN_OBJ_REF && in can_replace_op1()
269 (opline - 1)->opcode != ZEND_ASSIGN_STATIC_PROP_REF; in can_replace_op1()
282 switch (opline->opcode) { in can_replace_op2()
302 switch (opline->opcode) { in try_replace_op1()
304 opline->opcode = ZEND_IS_EQUAL; in try_replace_op1()
307 opline->opcode = ZEND_IS_IDENTICAL; in try_replace_op1()
323 opline->opcode = ZEND_QM_ASSIGN; in try_replace_op1()
351 switch (opline->opcode) { in try_replace_op2()
354 ZEND_ASSERT((opline + 1)->opcode == ZEND_INSTANCEOF); in try_replace_op2()
707 static inline int ct_eval_incdec(zval *result, zend_uchar opcode, zval *op1) { in ct_eval_incdec() argument
713 if (opcode == ZEND_PRE_INC in ct_eval_incdec()
714 || opcode == ZEND_POST_INC in ct_eval_incdec()
715 || opcode == ZEND_PRE_INC_OBJ in ct_eval_incdec()
716 || opcode == ZEND_POST_INC_OBJ) { in ct_eval_incdec()
970 dummy_opline.opcode = ZEND_DO_FCALL; in ct_eval_func_call()
1017 switch (opline->opcode) { in sccp_visit_instr()
1231 || call->caller_call_opline->opcode != ZEND_DO_ICALL) { in sccp_visit_instr()
1244 if (opline->opcode == ZEND_ADD_ARRAY_ELEMENT) { in sccp_visit_instr()
1395 switch (opline->opcode) { in sccp_visit_instr()
1421 if (ct_eval_binary_op(&zv, opline->opcode, op1, op2) == SUCCESS) { in sccp_visit_instr()
1438 if (opline->opcode == ZEND_ASSIGN_OP) { in sccp_visit_instr()
1445 } else if (opline->opcode == ZEND_ASSIGN_DIM_OP) { in sccp_visit_instr()
1489 } else if (opline->opcode == ZEND_ASSIGN_OBJ_OP) { in sccp_visit_instr()
1547 && ct_eval_incdec(&tmp2, opline->opcode, &tmp1) == SUCCESS) { in sccp_visit_instr()
1551 if (opline->opcode == ZEND_PRE_INC_OBJ || opline->opcode == ZEND_PRE_DEC_OBJ) { in sccp_visit_instr()
1570 if (ct_eval_incdec(&zv, opline->opcode, op1) == SUCCESS) { in sccp_visit_instr()
1583 if (ct_eval_incdec(&zv, opline->opcode, op1) == SUCCESS) { in sccp_visit_instr()
1597 if (zend_optimizer_eval_unary_op(&zv, opline->opcode, op1) == SUCCESS) { in sccp_visit_instr()
1683 if (ct_eval_fetch_dim(&zv, op1, op2, (opline->opcode != ZEND_FETCH_LIST_R)) == SUCCESS) { in sccp_visit_instr()
1832 if (opline->opcode != ZEND_SEND_VAL && opline->opcode != ZEND_SEND_VAR) { in sccp_visit_instr()
1894 switch (opline->opcode) { in sccp_mark_feasible_successors()
1919 switch (opline->opcode) { in sccp_mark_feasible_successors()
1966 zend_bool strict_comparison = opline->opcode == ZEND_MATCH; in sccp_mark_feasible_successors()
1969 (opline->opcode == ZEND_SWITCH_LONG && type == IS_LONG) in sccp_mark_feasible_successors()
1970 || (opline->opcode == ZEND_SWITCH_STRING && type == IS_STRING) in sccp_mark_feasible_successors()
1971 || (opline->opcode == ZEND_MATCH && (type == IS_LONG || type == IS_STRING)); in sccp_mark_feasible_successors()
2231 if (opline->opcode == ZEND_ASSIGN) { in try_remove_definition()
2239 switch (opline->opcode) { in try_remove_definition()
2272 } else if (opline->opcode == ZEND_JMPZ_EX in try_remove_definition()
2273 || opline->opcode == ZEND_JMPNZ_EX in try_remove_definition()
2274 || opline->opcode == ZEND_JMP_SET in try_remove_definition()
2275 || opline->opcode == ZEND_COALESCE in try_remove_definition()
2276 || opline->opcode == ZEND_JMP_NULL in try_remove_definition()
2277 || opline->opcode == ZEND_FE_RESET_R in try_remove_definition()
2278 || opline->opcode == ZEND_FE_RESET_RW in try_remove_definition()
2279 || opline->opcode == ZEND_FE_FETCH_R in try_remove_definition()
2280 || opline->opcode == ZEND_FE_FETCH_RW in try_remove_definition()
2281 || opline->opcode == ZEND_NEW) { in try_remove_definition()
2288 && opline->opcode != ZEND_QM_ASSIGN in try_remove_definition()
2289 && opline->opcode != ZEND_ROPE_INIT in try_remove_definition()
2290 && opline->opcode != ZEND_ROPE_ADD in try_remove_definition()
2291 && opline->opcode != ZEND_INIT_ARRAY in try_remove_definition()
2292 && opline->opcode != ZEND_ADD_ARRAY_ELEMENT in try_remove_definition()
2293 && opline->opcode != ZEND_ADD_ARRAY_UNPACK) { in try_remove_definition()
2299 if (opline->opcode == ZEND_DO_ICALL) { in try_remove_definition()
2305 opline->opcode = ZEND_QM_ASSIGN; in try_remove_definition()
2321 if (opline->opcode == ZEND_TYPE_CHECK in try_remove_definition()
2322 || opline->opcode == ZEND_BOOL) { in try_remove_definition()
2327 opline->opcode = ZEND_FREE; in try_remove_definition()
2335 if (opline->opcode == ZEND_DO_ICALL) { in try_remove_definition()
2347 switch (opline->opcode) { in try_remove_definition()
2387 } else if (opline->opcode != ZEND_PRE_INC && in try_remove_definition()
2388 opline->opcode != ZEND_PRE_DEC) { in try_remove_definition()
2406 switch (opline->opcode) { in try_remove_definition()
2424 opline->opcode = ZEND_ASSIGN; in try_remove_definition()
2486 if (opline->opcode == ZEND_NOP) { in replace_constant_operands()