Lines Matching refs:opcode

211 	switch (opline->opcode) {  in can_replace_op1()
288 switch (opline->opcode) { in can_replace_op2()
310 switch (opline->opcode) { in try_replace_op1()
312 opline->opcode = ZEND_IS_EQUAL; in try_replace_op1()
326 opline->opcode = ZEND_QM_ASSIGN; in try_replace_op1()
354 switch (opline->opcode) { in try_replace_op2()
357 ZEND_ASSERT((opline + 1)->opcode == ZEND_INSTANCEOF); in try_replace_op2()
690 static inline int ct_eval_incdec(zval *result, zend_uchar opcode, zval *op1) { in ct_eval_incdec() argument
692 if (opcode == ZEND_PRE_INC in ct_eval_incdec()
693 || opcode == ZEND_POST_INC in ct_eval_incdec()
694 || opcode == ZEND_PRE_INC_OBJ in ct_eval_incdec()
695 || opcode == ZEND_POST_INC_OBJ) { in ct_eval_incdec()
1044 switch (opline->opcode) { in sccp_visit_instr()
1255 || call->caller_call_opline->opcode != ZEND_DO_ICALL) { in sccp_visit_instr()
1268 if (opline->opcode == ZEND_ADD_ARRAY_ELEMENT) { in sccp_visit_instr()
1385 switch (opline->opcode) { in sccp_visit_instr()
1410 if (ct_eval_binary_op(&zv, opline->opcode, op1, op2) == SUCCESS) { in sccp_visit_instr()
1436 …if (ct_eval_binary_op(&zv, zend_compound_assign_to_binary_op(opline->opcode), op1, op2) == SUCCESS… in sccp_visit_instr()
1463 …if (ct_eval_binary_op(&tmp, zend_compound_assign_to_binary_op(opline->opcode), &tmp, data) != SUCC… in sccp_visit_instr()
1508 …if (ct_eval_binary_op(&tmp, zend_compound_assign_to_binary_op(opline->opcode), &tmp, data) != SUCC… in sccp_visit_instr()
1546 && ct_eval_incdec(&tmp2, opline->opcode, &tmp1) == SUCCESS) { in sccp_visit_instr()
1550 if (opline->opcode == ZEND_PRE_INC_OBJ in sccp_visit_instr()
1551 || opline->opcode == ZEND_PRE_DEC_OBJ) { in sccp_visit_instr()
1568 if (ct_eval_incdec(&zv, opline->opcode, op1) == SUCCESS) { in sccp_visit_instr()
1581 if (ct_eval_incdec(&zv, opline->opcode, op1) == SUCCESS) { in sccp_visit_instr()
1595 if (zend_optimizer_eval_unary_op(&zv, opline->opcode, op1) == SUCCESS) { in sccp_visit_instr()
1661 if (ct_eval_fetch_dim(&zv, op1, op2, (opline->opcode != ZEND_FETCH_LIST_R)) == SUCCESS) { in sccp_visit_instr()
1794 if (opline->opcode != ZEND_SEND_VAL && opline->opcode != ZEND_SEND_VAR) { in sccp_visit_instr()
1856 switch (opline->opcode) { in sccp_mark_feasible_successors()
1883 switch (opline->opcode) { in sccp_mark_feasible_successors()
2151 if (opline->opcode == ZEND_ASSIGN) { in try_remove_definition()
2161 } else if (opline->opcode == ZEND_JMPZ_EX in try_remove_definition()
2162 || opline->opcode == ZEND_JMPNZ_EX in try_remove_definition()
2163 || opline->opcode == ZEND_JMP_SET in try_remove_definition()
2164 || opline->opcode == ZEND_COALESCE in try_remove_definition()
2165 || opline->opcode == ZEND_FE_RESET_R in try_remove_definition()
2166 || opline->opcode == ZEND_FE_RESET_RW in try_remove_definition()
2167 || opline->opcode == ZEND_FE_FETCH_R in try_remove_definition()
2168 || opline->opcode == ZEND_FE_FETCH_RW in try_remove_definition()
2169 || opline->opcode == ZEND_NEW) { in try_remove_definition()
2176 && opline->opcode != ZEND_QM_ASSIGN in try_remove_definition()
2177 && opline->opcode != ZEND_ROPE_INIT in try_remove_definition()
2178 && opline->opcode != ZEND_ROPE_ADD in try_remove_definition()
2179 && opline->opcode != ZEND_INIT_ARRAY in try_remove_definition()
2180 && opline->opcode != ZEND_ADD_ARRAY_ELEMENT) { in try_remove_definition()
2187 if (opline->opcode == ZEND_DO_ICALL) { in try_remove_definition()
2193 opline->opcode = ZEND_QM_ASSIGN; in try_remove_definition()
2205 if (opline->opcode == ZEND_DO_ICALL) { in try_remove_definition()
2207 } else if (opline->opcode == ZEND_TYPE_CHECK in try_remove_definition()
2213 opline->opcode = ZEND_FREE; in try_remove_definition()
2226 switch (opline->opcode) { in try_remove_definition()
2271 } else if (opline->opcode != ZEND_PRE_INC && in try_remove_definition()
2272 opline->opcode != ZEND_PRE_DEC) { in try_remove_definition()
2290 switch (opline->opcode) { in try_remove_definition()
2319 opline->opcode = ZEND_ASSIGN; in try_remove_definition()
2381 if (opline->opcode == ZEND_NOP) { in replace_constant_operands()