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()
723 static inline int ct_eval_incdec(zval *result, zend_uchar opcode, zval *op1) { in ct_eval_incdec() argument
729 if (opcode == ZEND_PRE_INC in ct_eval_incdec()
730 || opcode == ZEND_POST_INC in ct_eval_incdec()
731 || opcode == ZEND_PRE_INC_OBJ in ct_eval_incdec()
732 || opcode == ZEND_POST_INC_OBJ) { in ct_eval_incdec()
940 dummy_opline.opcode = ZEND_DO_FCALL; in ct_eval_func_call()
997 switch (opline->opcode) { in sccp_visit_instr()
1211 || call->caller_call_opline->opcode != ZEND_DO_ICALL) { in sccp_visit_instr()
1224 if (opline->opcode == ZEND_ADD_ARRAY_ELEMENT) { in sccp_visit_instr()
1375 switch (opline->opcode) { in sccp_visit_instr()
1401 if (ct_eval_binary_op(&zv, opline->opcode, op1, op2) == SUCCESS) { in sccp_visit_instr()
1418 if (opline->opcode == ZEND_ASSIGN_OP) { in sccp_visit_instr()
1425 } else if (opline->opcode == ZEND_ASSIGN_DIM_OP) { in sccp_visit_instr()
1469 } else if (opline->opcode == ZEND_ASSIGN_OBJ_OP) { in sccp_visit_instr()
1527 && ct_eval_incdec(&tmp2, opline->opcode, &tmp1) == SUCCESS) { in sccp_visit_instr()
1531 if (opline->opcode == ZEND_PRE_INC_OBJ || opline->opcode == ZEND_PRE_DEC_OBJ) { in sccp_visit_instr()
1550 if (ct_eval_incdec(&zv, opline->opcode, op1) == SUCCESS) { in sccp_visit_instr()
1563 if (ct_eval_incdec(&zv, opline->opcode, op1) == SUCCESS) { in sccp_visit_instr()
1577 if (zend_optimizer_eval_unary_op(&zv, opline->opcode, op1) == SUCCESS) { in sccp_visit_instr()
1663 if (ct_eval_fetch_dim(&zv, op1, op2, (opline->opcode != ZEND_FETCH_LIST_R)) == SUCCESS) { in sccp_visit_instr()
1813 if (opline->opcode != ZEND_SEND_VAL && opline->opcode != ZEND_SEND_VAR) { in sccp_visit_instr()
1875 switch (opline->opcode) { in sccp_mark_feasible_successors()
1900 switch (opline->opcode) { in sccp_mark_feasible_successors()
1947 bool strict_comparison = opline->opcode == ZEND_MATCH; in sccp_mark_feasible_successors()
1950 (opline->opcode == ZEND_SWITCH_LONG && type == IS_LONG) in sccp_mark_feasible_successors()
1951 || (opline->opcode == ZEND_SWITCH_STRING && type == IS_STRING) in sccp_mark_feasible_successors()
1952 || (opline->opcode == ZEND_MATCH && (type == IS_LONG || type == IS_STRING)); in sccp_mark_feasible_successors()
2210 if (opline->opcode == ZEND_ASSIGN) { in try_remove_definition()
2220 switch (opline->opcode) { in try_remove_definition()
2253 } else if (opline->opcode == ZEND_JMPZ_EX in try_remove_definition()
2254 || opline->opcode == ZEND_JMPNZ_EX in try_remove_definition()
2255 || opline->opcode == ZEND_JMP_SET in try_remove_definition()
2256 || opline->opcode == ZEND_COALESCE in try_remove_definition()
2257 || opline->opcode == ZEND_JMP_NULL in try_remove_definition()
2258 || opline->opcode == ZEND_FE_RESET_R in try_remove_definition()
2259 || opline->opcode == ZEND_FE_RESET_RW in try_remove_definition()
2260 || opline->opcode == ZEND_FE_FETCH_R in try_remove_definition()
2261 || opline->opcode == ZEND_FE_FETCH_RW in try_remove_definition()
2262 || opline->opcode == ZEND_NEW) { in try_remove_definition()
2269 && opline->opcode != ZEND_QM_ASSIGN in try_remove_definition()
2270 && opline->opcode != ZEND_ROPE_INIT in try_remove_definition()
2271 && opline->opcode != ZEND_ROPE_ADD in try_remove_definition()
2272 && opline->opcode != ZEND_INIT_ARRAY in try_remove_definition()
2273 && opline->opcode != ZEND_ADD_ARRAY_ELEMENT in try_remove_definition()
2274 && opline->opcode != ZEND_ADD_ARRAY_UNPACK) { in try_remove_definition()
2280 if (opline->opcode == ZEND_DO_ICALL) { in try_remove_definition()
2286 opline->opcode = ZEND_QM_ASSIGN; in try_remove_definition()
2302 if (opline->opcode == ZEND_TYPE_CHECK in try_remove_definition()
2303 || opline->opcode == ZEND_BOOL) { in try_remove_definition()
2308 opline->opcode = ZEND_FREE; in try_remove_definition()
2316 if (opline->opcode == ZEND_DO_ICALL) { in try_remove_definition()
2324 if (opline->opcode == ZEND_ASSIGN) { in try_remove_definition()
2333 switch (opline->opcode) { in try_remove_definition()
2373 } else if (opline->opcode != ZEND_PRE_INC && in try_remove_definition()
2374 opline->opcode != ZEND_PRE_DEC) { in try_remove_definition()
2392 switch (opline->opcode) { in try_remove_definition()
2410 opline->opcode = ZEND_ASSIGN; in try_remove_definition()
2472 if (opline->opcode == ZEND_NOP) { in replace_constant_operands()