Lines Matching refs:opcode

147 			if ((*call_info)->caller_init_opline->opcode == ZEND_NOP) {  in zend_ssa_remove_nops()
166 ZEND_ASSERT(op_array->opcodes[b->start].opcode == ZEND_FREE in zend_ssa_remove_nops()
167 || op_array->opcodes[b->start].opcode == ZEND_FE_FREE); in zend_ssa_remove_nops()
175 if (EXPECTED(op_array->opcodes[i].opcode != ZEND_NOP)) { in zend_ssa_remove_nops()
192 if (opline->opcode == ZEND_NOP) { in zend_ssa_remove_nops()
327 if (opline->opcode == ZEND_NEW) { in opline_supports_assign_contraction()
332 if (opline->opcode == ZEND_DO_ICALL || opline->opcode == ZEND_DO_UCALL in opline_supports_assign_contraction()
333 || opline->opcode == ZEND_DO_FCALL || opline->opcode == ZEND_DO_FCALL_BY_NAME) { in opline_supports_assign_contraction()
341 if (opline->opcode == ZEND_POST_INC || opline->opcode == ZEND_POST_DEC) { in opline_supports_assign_contraction()
347 if (opline->opcode == ZEND_INIT_ARRAY) { in opline_supports_assign_contraction()
353 if (opline->opcode == ZEND_CAST in opline_supports_assign_contraction()
360 if ((opline->opcode == ZEND_ASSIGN_OP in opline_supports_assign_contraction()
361 || opline->opcode == ZEND_ASSIGN_OBJ in opline_supports_assign_contraction()
362 || opline->opcode == ZEND_ASSIGN_DIM) in opline_supports_assign_contraction()
400 && call_info->caller_call_opline->opcode == ZEND_DO_ICALL in zend_dfa_optimize_calls()
405 && (call_info->caller_call_opline - 1)->opcode == ZEND_SEND_VAL in zend_dfa_optimize_calls()
423 if (send_array->opcode == ZEND_SEND_VAL in zend_dfa_optimize_calls()
426 && (send_needly->opcode == ZEND_SEND_VAL in zend_dfa_optimize_calls()
427 || send_needly->opcode == ZEND_SEND_VAR) in zend_dfa_optimize_calls()
484 call_info->caller_call_opline->opcode = ZEND_IN_ARRAY; in zend_dfa_optimize_calls()
510 && (op_array->opcodes[use].opcode == ZEND_JMPZ in zend_dfa_optimize_calls()
511 || op_array->opcodes[use].opcode == ZEND_JMPNZ)) { in zend_dfa_optimize_calls()
565 if (opline->opcode == ZEND_NOP) { in compress_block()
640 switch (opline->opcode) { in zend_ssa_replace_control_link()
712 if ((op_array->opcodes[pred_block->start + pred_block->len - 1].opcode == ZEND_FE_FETCH_R in zend_ssa_unlink_block()
713 || op_array->opcodes[pred_block->start + pred_block->len - 1].opcode == ZEND_FE_FETCH_RW) in zend_ssa_unlink_block()
776 switch (opline->opcode) { in zend_dfa_optimize_jmps()
794 opline->opcode = ZEND_JMP; in zend_dfa_optimize_jmps()
803 opline->opcode = ZEND_CHECK_VAR; in zend_dfa_optimize_jmps()
810 opline->opcode = ZEND_FREE; in zend_dfa_optimize_jmps()
820 opline->opcode = ZEND_JMP; in zend_dfa_optimize_jmps()
834 opline->opcode = ZEND_CHECK_VAR; in zend_dfa_optimize_jmps()
841 opline->opcode = ZEND_FREE; in zend_dfa_optimize_jmps()
860 opline->opcode = ZEND_JMP; in zend_dfa_optimize_jmps()
867 opline->opcode = ZEND_CHECK_VAR; in zend_dfa_optimize_jmps()
874 opline->opcode = ZEND_FREE; in zend_dfa_optimize_jmps()
882 opline->opcode = ZEND_JMP; in zend_dfa_optimize_jmps()
893 opline->opcode = ZEND_JMPZ; in zend_dfa_optimize_jmps()
899 opline->opcode = ZEND_QM_ASSIGN; in zend_dfa_optimize_jmps()
907 opline->opcode = ZEND_JMPNZ; in zend_dfa_optimize_jmps()
913 opline->opcode = ZEND_QM_ASSIGN; in zend_dfa_optimize_jmps()
921 opline->opcode = ZEND_JMPNZ; in zend_dfa_optimize_jmps()
947 opline->opcode = ZEND_JMP; in zend_dfa_optimize_jmps()
963 opline->opcode = ZEND_JMP; in zend_dfa_optimize_jmps()
986 (opline->opcode == ZEND_SWITCH_LONG && type == IS_LONG) in zend_dfa_optimize_jmps()
987 || (opline->opcode == ZEND_SWITCH_STRING && type == IS_STRING) in zend_dfa_optimize_jmps()
988 || (opline->opcode == ZEND_MATCH && (type == IS_LONG || type == IS_STRING)); in zend_dfa_optimize_jmps()
1008 opline->opcode = ZEND_JMP; in zend_dfa_optimize_jmps()
1060 && op_array->opcodes[use].opcode != ZEND_FREE in zend_dfa_try_to_replace_result()
1061 && op_array->opcodes[use].opcode != ZEND_SEND_VAL in zend_dfa_try_to_replace_result()
1062 && op_array->opcodes[use].opcode != ZEND_SEND_VAL_EX in zend_dfa_try_to_replace_result()
1063 && op_array->opcodes[use].opcode != ZEND_VERIFY_RETURN_TYPE in zend_dfa_try_to_replace_result()
1064 && op_array->opcodes[use].opcode != ZEND_YIELD) { in zend_dfa_try_to_replace_result()
1189 if (opline->opcode == ZEND_ASSIGN in zend_dfa_optimize_op_array()
1202 } else if (opline->opcode == ZEND_QM_ASSIGN in zend_dfa_optimize_op_array()
1215 if (opline->opcode == ZEND_ADD in zend_dfa_optimize_op_array()
1216 || opline->opcode == ZEND_SUB in zend_dfa_optimize_op_array()
1217 || opline->opcode == ZEND_MUL in zend_dfa_optimize_op_array()
1218 || opline->opcode == ZEND_IS_EQUAL in zend_dfa_optimize_op_array()
1219 || opline->opcode == ZEND_IS_NOT_EQUAL in zend_dfa_optimize_op_array()
1220 || opline->opcode == ZEND_IS_SMALLER in zend_dfa_optimize_op_array()
1221 || opline->opcode == ZEND_IS_SMALLER_OR_EQUAL in zend_dfa_optimize_op_array()
1236 if (opline->opcode == ZEND_ADD) { in zend_dfa_optimize_op_array()
1248 opline->opcode = ZEND_QM_ASSIGN; in zend_dfa_optimize_op_array()
1271 if (opline->opcode == ZEND_ADD || opline->opcode == ZEND_SUB) { in zend_dfa_optimize_op_array()
1281 opline->opcode = ZEND_QM_ASSIGN; in zend_dfa_optimize_op_array()
1287 } else if (opline->opcode == ZEND_CONCAT) { in zend_dfa_optimize_op_array()
1290 opline->opcode = ZEND_FAST_CONCAT; in zend_dfa_optimize_op_array()
1292 } else if (opline->opcode == ZEND_VERIFY_RETURN_TYPE in zend_dfa_optimize_op_array()
1323 if (opline->opcode == ZEND_QM_ASSIGN in zend_dfa_optimize_op_array()
1375 if (op_array->opcodes[op_2].opcode == ZEND_SUB in zend_dfa_optimize_op_array()
1384 op_array->opcodes[op_2].opcode = ZEND_PRE_DEC; in zend_dfa_optimize_op_array()
1391 } else if (op_array->opcodes[op_2].opcode == ZEND_ADD in zend_dfa_optimize_op_array()
1400 op_array->opcodes[op_2].opcode = ZEND_PRE_INC; in zend_dfa_optimize_op_array()
1407 } else if (op_array->opcodes[op_2].opcode == ZEND_ADD in zend_dfa_optimize_op_array()
1416 op_array->opcodes[op_2].opcode = ZEND_PRE_INC; in zend_dfa_optimize_op_array()
1440 if (opline->opcode == ZEND_ASSIGN in zend_dfa_optimize_op_array()
1441 || opline->opcode == ZEND_ASSIGN_OP in zend_dfa_optimize_op_array()
1442 || opline->opcode == ZEND_PRE_INC in zend_dfa_optimize_op_array()
1443 || opline->opcode == ZEND_PRE_DEC) { in zend_dfa_optimize_op_array()
1445 } else if (opline->opcode == ZEND_POST_INC) { in zend_dfa_optimize_op_array()
1452 if (use >= 0 && op_array->opcodes[use].opcode == ZEND_IS_SMALLER in zend_dfa_optimize_op_array()
1455 opline->opcode = ZEND_PRE_INC; in zend_dfa_optimize_op_array()
1456 op_array->opcodes[use].opcode = ZEND_IS_SMALLER_OR_EQUAL; in zend_dfa_optimize_op_array()
1459 } else if (opline->opcode == ZEND_POST_DEC) { in zend_dfa_optimize_op_array()
1466 if (use >= 0 && op_array->opcodes[use].opcode == ZEND_IS_SMALLER in zend_dfa_optimize_op_array()
1469 opline->opcode = ZEND_PRE_DEC; in zend_dfa_optimize_op_array()
1470 op_array->opcodes[use].opcode = ZEND_IS_SMALLER_OR_EQUAL; in zend_dfa_optimize_op_array()
1476 if (opline->opcode == ZEND_ASSIGN in zend_dfa_optimize_op_array()
1529 if (op_array->opcodes[op_2].opcode == ZEND_SUB in zend_dfa_optimize_op_array()
1538 op_array->opcodes[op_2].opcode = ZEND_PRE_DEC; in zend_dfa_optimize_op_array()
1545 } else if (op_array->opcodes[op_2].opcode == ZEND_ADD in zend_dfa_optimize_op_array()
1554 op_array->opcodes[op_2].opcode = ZEND_PRE_INC; in zend_dfa_optimize_op_array()
1561 } else if (op_array->opcodes[op_2].opcode == ZEND_ADD in zend_dfa_optimize_op_array()
1570 op_array->opcodes[op_2].opcode = ZEND_PRE_INC; in zend_dfa_optimize_op_array()
1613 opline->opcode = ZEND_QM_ASSIGN; in zend_dfa_optimize_op_array()
1617 } else if (opline->opcode == ZEND_ASSIGN_OP in zend_dfa_optimize_op_array()
1628 opline->opcode = ZEND_PRE_INC; in zend_dfa_optimize_op_array()
1632 } else if (opline->opcode == ZEND_ASSIGN_OP in zend_dfa_optimize_op_array()
1643 opline->opcode = ZEND_PRE_DEC; in zend_dfa_optimize_op_array()
1651 && opline->opcode == ZEND_ASSIGN_OP in zend_dfa_optimize_op_array()
1661 opline->opcode = opline->extended_value; in zend_dfa_optimize_op_array()