Lines Matching refs:opcode
211 switch (opline->opcode) { in can_replace_op1()
266 return (opline - 1)->opcode != ZEND_ASSIGN_OBJ_REF && in can_replace_op1()
267 (opline - 1)->opcode != ZEND_ASSIGN_STATIC_PROP_REF; in can_replace_op1()
280 switch (opline->opcode) { in can_replace_op2()
300 switch (opline->opcode) { in try_replace_op1()
302 opline->opcode = ZEND_IS_EQUAL; in try_replace_op1()
316 opline->opcode = ZEND_QM_ASSIGN; in try_replace_op1()
344 switch (opline->opcode) { in try_replace_op2()
347 ZEND_ASSERT((opline + 1)->opcode == ZEND_INSTANCEOF); in try_replace_op2()
700 static inline int ct_eval_incdec(zval *result, zend_uchar opcode, zval *op1) { in ct_eval_incdec() argument
702 if (opcode == ZEND_PRE_INC in ct_eval_incdec()
703 || opcode == ZEND_POST_INC in ct_eval_incdec()
704 || opcode == ZEND_PRE_INC_OBJ in ct_eval_incdec()
705 || opcode == ZEND_POST_INC_OBJ) { in ct_eval_incdec()
1074 switch (opline->opcode) { in sccp_visit_instr()
1292 || call->caller_call_opline->opcode != ZEND_DO_ICALL) { in sccp_visit_instr()
1305 if (opline->opcode == ZEND_ADD_ARRAY_ELEMENT) { in sccp_visit_instr()
1456 switch (opline->opcode) { in sccp_visit_instr()
1481 if (ct_eval_binary_op(&zv, opline->opcode, op1, op2) == SUCCESS) { in sccp_visit_instr()
1498 if (opline->opcode == ZEND_ASSIGN_OP) { in sccp_visit_instr()
1505 } else if (opline->opcode == ZEND_ASSIGN_DIM_OP) { in sccp_visit_instr()
1549 } else if (opline->opcode == ZEND_ASSIGN_OBJ_OP) { in sccp_visit_instr()
1607 && ct_eval_incdec(&tmp2, opline->opcode, &tmp1) == SUCCESS) { in sccp_visit_instr()
1611 if (opline->opcode == ZEND_PRE_INC_OBJ in sccp_visit_instr()
1612 || opline->opcode == ZEND_PRE_DEC_OBJ) { in sccp_visit_instr()
1629 if (ct_eval_incdec(&zv, opline->opcode, op1) == SUCCESS) { in sccp_visit_instr()
1642 if (ct_eval_incdec(&zv, opline->opcode, op1) == SUCCESS) { in sccp_visit_instr()
1656 if (zend_optimizer_eval_unary_op(&zv, opline->opcode, op1) == SUCCESS) { in sccp_visit_instr()
1732 if (ct_eval_fetch_dim(&zv, op1, op2, (opline->opcode != ZEND_FETCH_LIST_R)) == SUCCESS) { in sccp_visit_instr()
1866 if (opline->opcode != ZEND_SEND_VAL && opline->opcode != ZEND_SEND_VAR) { in sccp_visit_instr()
1928 switch (opline->opcode) { in sccp_mark_feasible_successors()
1953 switch (opline->opcode) { in sccp_mark_feasible_successors()
2260 if (opline->opcode == ZEND_ASSIGN) { in try_remove_definition()
2270 } else if (opline->opcode == ZEND_JMPZ_EX in try_remove_definition()
2271 || opline->opcode == ZEND_JMPNZ_EX in try_remove_definition()
2272 || opline->opcode == ZEND_JMP_SET in try_remove_definition()
2273 || opline->opcode == ZEND_COALESCE in try_remove_definition()
2274 || opline->opcode == ZEND_FE_RESET_R in try_remove_definition()
2275 || opline->opcode == ZEND_FE_RESET_RW in try_remove_definition()
2276 || opline->opcode == ZEND_FE_FETCH_R in try_remove_definition()
2277 || opline->opcode == ZEND_FE_FETCH_RW in try_remove_definition()
2278 || opline->opcode == ZEND_NEW) { in try_remove_definition()
2285 && opline->opcode != ZEND_QM_ASSIGN in try_remove_definition()
2286 && opline->opcode != ZEND_ROPE_INIT in try_remove_definition()
2287 && opline->opcode != ZEND_ROPE_ADD in try_remove_definition()
2288 && opline->opcode != ZEND_INIT_ARRAY in try_remove_definition()
2289 && opline->opcode != ZEND_ADD_ARRAY_ELEMENT in try_remove_definition()
2290 && opline->opcode != ZEND_ADD_ARRAY_UNPACK) { in try_remove_definition()
2296 if (opline->opcode == ZEND_DO_ICALL) { in try_remove_definition()
2302 opline->opcode = ZEND_QM_ASSIGN; in try_remove_definition()
2311 if (opline->opcode == ZEND_DO_ICALL) { in try_remove_definition()
2313 } else if (opline->opcode == ZEND_TYPE_CHECK in try_remove_definition()
2319 opline->opcode = ZEND_FREE; in try_remove_definition()
2332 switch (opline->opcode) { in try_remove_definition()
2366 } else if (opline->opcode != ZEND_PRE_INC && in try_remove_definition()
2367 opline->opcode != ZEND_PRE_DEC) { in try_remove_definition()
2385 switch (opline->opcode) { in try_remove_definition()
2403 opline->opcode = ZEND_ASSIGN; in try_remove_definition()
2465 if (opline->opcode == ZEND_NOP) { in replace_constant_operands()