Lines Matching refs:opcode
211 switch (opline->opcode) { in can_replace_op1()
267 return (opline - 1)->opcode != ZEND_ASSIGN_OBJ_REF && in can_replace_op1()
268 (opline - 1)->opcode != ZEND_ASSIGN_STATIC_PROP_REF; in can_replace_op1()
281 switch (opline->opcode) { in can_replace_op2()
666 static inline zend_result ct_eval_incdec(zval *result, uint8_t opcode, zval *op1) { in ct_eval_incdec() argument
677 if (opcode == ZEND_PRE_INC in ct_eval_incdec()
678 || opcode == ZEND_POST_INC in ct_eval_incdec()
679 || opcode == ZEND_PRE_INC_OBJ in ct_eval_incdec()
680 || opcode == ZEND_POST_INC_OBJ) { in ct_eval_incdec()
814 dummy_opline.opcode = ZEND_DO_FCALL; in ct_eval_func_call_ex()
880 switch (opline->opcode) { in sccp_visit_instr()
1078 || call->caller_call_opline->opcode != ZEND_DO_ICALL) { in sccp_visit_instr()
1091 if (opline->opcode == ZEND_ADD_ARRAY_ELEMENT) { in sccp_visit_instr()
1242 switch (opline->opcode) { in sccp_visit_instr()
1268 if (ct_eval_binary_op(&zv, opline->opcode, op1, op2) == SUCCESS) { in sccp_visit_instr()
1285 if (opline->opcode == ZEND_ASSIGN_OP) { in sccp_visit_instr()
1292 } else if (opline->opcode == ZEND_ASSIGN_DIM_OP) { in sccp_visit_instr()
1336 } else if (opline->opcode == ZEND_ASSIGN_OBJ_OP) { in sccp_visit_instr()
1394 if (ct_eval_incdec(&tmp2, opline->opcode, &tmp1) == SUCCESS) { in sccp_visit_instr()
1397 if (opline->opcode == ZEND_PRE_INC_OBJ || opline->opcode == ZEND_PRE_DEC_OBJ) { in sccp_visit_instr()
1418 if (ct_eval_incdec(&zv, opline->opcode, op1) == SUCCESS) { in sccp_visit_instr()
1431 if (ct_eval_incdec(&zv, opline->opcode, op1) == SUCCESS) { in sccp_visit_instr()
1445 if (zend_optimizer_eval_unary_op(&zv, opline->opcode, op1) == SUCCESS) { in sccp_visit_instr()
1531 if (ct_eval_fetch_dim(&zv, op1, op2, (opline->opcode != ZEND_FETCH_LIST_R)) == SUCCESS) { in sccp_visit_instr()
1675 if (opline->opcode != ZEND_SEND_VAL && opline->opcode != ZEND_SEND_VAR) { in sccp_visit_instr()
1727 uint32_t num_args = ZEND_FLF_NUM_ARGS(opline->opcode); in sccp_visit_instr()
1788 … && ctx->scdf.op_array->opcodes[ssa->vars[var_num].definition].opcode == ZEND_VERIFY_RETURN_TYPE) { in value_from_type_and_range()
1796 … && ctx->scdf.op_array->opcodes[ssa->vars[var_num].definition].opcode == ZEND_VERIFY_RETURN_TYPE) { in value_from_type_and_range()
1804 … && ctx->scdf.op_array->opcodes[ssa->vars[var_num].definition].opcode == ZEND_VERIFY_RETURN_TYPE) { in value_from_type_and_range()
1833 switch (opline->opcode) { in sccp_mark_feasible_successors()
1863 switch (opline->opcode) { in sccp_mark_feasible_successors()
1909 bool strict_comparison = opline->opcode == ZEND_MATCH; in sccp_mark_feasible_successors()
1912 (opline->opcode == ZEND_SWITCH_LONG && type == IS_LONG) in sccp_mark_feasible_successors()
1913 || (opline->opcode == ZEND_SWITCH_STRING && type == IS_STRING) in sccp_mark_feasible_successors()
1914 || (opline->opcode == ZEND_MATCH && (type == IS_LONG || type == IS_STRING)); in sccp_mark_feasible_successors()
2134 if (opline->opcode == ZEND_ASSIGN) { in try_remove_definition()
2144 switch (opline->opcode) { in try_remove_definition()
2177 } else if (opline->opcode == ZEND_JMPZ_EX in try_remove_definition()
2178 || opline->opcode == ZEND_JMPNZ_EX in try_remove_definition()
2179 || opline->opcode == ZEND_JMP_SET in try_remove_definition()
2180 || opline->opcode == ZEND_COALESCE in try_remove_definition()
2181 || opline->opcode == ZEND_JMP_NULL in try_remove_definition()
2182 || opline->opcode == ZEND_FE_RESET_R in try_remove_definition()
2183 || opline->opcode == ZEND_FE_RESET_RW in try_remove_definition()
2184 || opline->opcode == ZEND_FE_FETCH_R in try_remove_definition()
2185 || opline->opcode == ZEND_FE_FETCH_RW in try_remove_definition()
2186 || opline->opcode == ZEND_NEW) { in try_remove_definition()
2193 && opline->opcode != ZEND_QM_ASSIGN in try_remove_definition()
2194 && opline->opcode != ZEND_FETCH_CLASS in try_remove_definition()
2195 && opline->opcode != ZEND_ROPE_INIT in try_remove_definition()
2196 && opline->opcode != ZEND_ROPE_ADD in try_remove_definition()
2197 && opline->opcode != ZEND_INIT_ARRAY in try_remove_definition()
2198 && opline->opcode != ZEND_ADD_ARRAY_ELEMENT in try_remove_definition()
2199 && opline->opcode != ZEND_ADD_ARRAY_UNPACK) { in try_remove_definition()
2205 if (opline->opcode == ZEND_DO_ICALL) { in try_remove_definition()
2208 bool has_op_data = opline->opcode == ZEND_FRAMELESS_ICALL_3; in try_remove_definition()
2217 opline->opcode = ZEND_QM_ASSIGN; in try_remove_definition()
2233 if (opline->opcode == ZEND_TYPE_CHECK in try_remove_definition()
2234 || opline->opcode == ZEND_BOOL) { in try_remove_definition()
2239 opline->opcode = ZEND_FREE; in try_remove_definition()
2247 if (opline->opcode == ZEND_DO_ICALL) { in try_remove_definition()
2250 bool has_op_data = opline->opcode == ZEND_FRAMELESS_ICALL_3; in try_remove_definition()
2260 if (opline->opcode == ZEND_ASSIGN) { in try_remove_definition()
2269 switch (opline->opcode) { in try_remove_definition()
2309 } else if (opline->opcode != ZEND_PRE_INC && in try_remove_definition()
2310 opline->opcode != ZEND_PRE_DEC) { in try_remove_definition()
2328 switch (opline->opcode) { in try_remove_definition()
2346 opline->opcode = ZEND_ASSIGN; in try_remove_definition()
2408 if (opline->opcode == ZEND_NOP) { in replace_constant_operands()