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()
665 static inline zend_result ct_eval_incdec(zval *result, zend_uchar opcode, zval *op1) { in ct_eval_incdec() argument
671 if (opcode == ZEND_PRE_INC in ct_eval_incdec()
672 || opcode == ZEND_POST_INC in ct_eval_incdec()
673 || opcode == ZEND_PRE_INC_OBJ in ct_eval_incdec()
674 || opcode == ZEND_POST_INC_OBJ) { in ct_eval_incdec()
807 dummy_opline.opcode = ZEND_DO_FCALL; in ct_eval_func_call()
864 switch (opline->opcode) { in sccp_visit_instr()
1062 || call->caller_call_opline->opcode != ZEND_DO_ICALL) { in sccp_visit_instr()
1075 if (opline->opcode == ZEND_ADD_ARRAY_ELEMENT) { in sccp_visit_instr()
1226 switch (opline->opcode) { in sccp_visit_instr()
1252 if (ct_eval_binary_op(&zv, opline->opcode, op1, op2) == SUCCESS) { in sccp_visit_instr()
1269 if (opline->opcode == ZEND_ASSIGN_OP) { in sccp_visit_instr()
1276 } else if (opline->opcode == ZEND_ASSIGN_DIM_OP) { in sccp_visit_instr()
1320 } else if (opline->opcode == ZEND_ASSIGN_OBJ_OP) { in sccp_visit_instr()
1378 && ct_eval_incdec(&tmp2, opline->opcode, &tmp1) == SUCCESS) { in sccp_visit_instr()
1382 if (opline->opcode == ZEND_PRE_INC_OBJ || opline->opcode == ZEND_PRE_DEC_OBJ) { in sccp_visit_instr()
1401 if (ct_eval_incdec(&zv, opline->opcode, op1) == SUCCESS) { in sccp_visit_instr()
1414 if (ct_eval_incdec(&zv, opline->opcode, op1) == SUCCESS) { in sccp_visit_instr()
1428 if (zend_optimizer_eval_unary_op(&zv, opline->opcode, op1) == SUCCESS) { in sccp_visit_instr()
1514 if (ct_eval_fetch_dim(&zv, op1, op2, (opline->opcode != ZEND_FETCH_LIST_R)) == SUCCESS) { in sccp_visit_instr()
1658 if (opline->opcode != ZEND_SEND_VAL && opline->opcode != ZEND_SEND_VAR) { in sccp_visit_instr()
1726 … && ctx->scdf.op_array->opcodes[ssa->vars[var_num].definition].opcode == ZEND_VERIFY_RETURN_TYPE) { in value_from_type_and_range()
1734 … && ctx->scdf.op_array->opcodes[ssa->vars[var_num].definition].opcode == ZEND_VERIFY_RETURN_TYPE) { in value_from_type_and_range()
1742 … && ctx->scdf.op_array->opcodes[ssa->vars[var_num].definition].opcode == ZEND_VERIFY_RETURN_TYPE) { in value_from_type_and_range()
1771 switch (opline->opcode) { in sccp_mark_feasible_successors()
1800 switch (opline->opcode) { in sccp_mark_feasible_successors()
1846 bool strict_comparison = opline->opcode == ZEND_MATCH; in sccp_mark_feasible_successors()
1849 (opline->opcode == ZEND_SWITCH_LONG && type == IS_LONG) in sccp_mark_feasible_successors()
1850 || (opline->opcode == ZEND_SWITCH_STRING && type == IS_STRING) in sccp_mark_feasible_successors()
1851 || (opline->opcode == ZEND_MATCH && (type == IS_LONG || type == IS_STRING)); in sccp_mark_feasible_successors()
2071 if (opline->opcode == ZEND_ASSIGN) { in try_remove_definition()
2081 switch (opline->opcode) { in try_remove_definition()
2114 } else if (opline->opcode == ZEND_JMPZ_EX in try_remove_definition()
2115 || opline->opcode == ZEND_JMPNZ_EX in try_remove_definition()
2116 || opline->opcode == ZEND_JMP_SET in try_remove_definition()
2117 || opline->opcode == ZEND_COALESCE in try_remove_definition()
2118 || opline->opcode == ZEND_JMP_NULL in try_remove_definition()
2119 || opline->opcode == ZEND_FE_RESET_R in try_remove_definition()
2120 || opline->opcode == ZEND_FE_RESET_RW in try_remove_definition()
2121 || opline->opcode == ZEND_FE_FETCH_R in try_remove_definition()
2122 || opline->opcode == ZEND_FE_FETCH_RW in try_remove_definition()
2123 || opline->opcode == ZEND_NEW) { in try_remove_definition()
2130 && opline->opcode != ZEND_QM_ASSIGN in try_remove_definition()
2131 && opline->opcode != ZEND_FETCH_CLASS in try_remove_definition()
2132 && opline->opcode != ZEND_ROPE_INIT in try_remove_definition()
2133 && opline->opcode != ZEND_ROPE_ADD in try_remove_definition()
2134 && opline->opcode != ZEND_INIT_ARRAY in try_remove_definition()
2135 && opline->opcode != ZEND_ADD_ARRAY_ELEMENT in try_remove_definition()
2136 && opline->opcode != ZEND_ADD_ARRAY_UNPACK) { in try_remove_definition()
2142 if (opline->opcode == ZEND_DO_ICALL) { in try_remove_definition()
2148 opline->opcode = ZEND_QM_ASSIGN; in try_remove_definition()
2164 if (opline->opcode == ZEND_TYPE_CHECK in try_remove_definition()
2165 || opline->opcode == ZEND_BOOL) { in try_remove_definition()
2170 opline->opcode = ZEND_FREE; in try_remove_definition()
2178 if (opline->opcode == ZEND_DO_ICALL) { in try_remove_definition()
2186 if (opline->opcode == ZEND_ASSIGN) { in try_remove_definition()
2195 switch (opline->opcode) { in try_remove_definition()
2235 } else if (opline->opcode != ZEND_PRE_INC && in try_remove_definition()
2236 opline->opcode != ZEND_PRE_DEC) { in try_remove_definition()
2254 switch (opline->opcode) { in try_remove_definition()
2272 opline->opcode = ZEND_ASSIGN; in try_remove_definition()
2334 if (opline->opcode == ZEND_NOP) { in replace_constant_operands()