Lines Matching refs:opcode

132 			if ((*call_info)->caller_init_opline->opcode == ZEND_NOP) {  in zend_ssa_remove_nops()
151 ZEND_ASSERT(op_array->opcodes[b->start].opcode == ZEND_FREE in zend_ssa_remove_nops()
152 || op_array->opcodes[b->start].opcode == ZEND_FE_FREE); in zend_ssa_remove_nops()
160 if (EXPECTED(op_array->opcodes[i].opcode != ZEND_NOP)) { in zend_ssa_remove_nops()
177 if (opline->opcode == ZEND_NOP) { in zend_ssa_remove_nops()
323 if (opline->opcode == ZEND_NEW) { in opline_supports_assign_contraction()
329 switch (opline->opcode) { in opline_supports_assign_contraction()
341 if (opline->opcode == ZEND_DO_ICALL || opline->opcode == ZEND_DO_UCALL in opline_supports_assign_contraction()
342 || opline->opcode == ZEND_DO_FCALL || opline->opcode == ZEND_DO_FCALL_BY_NAME) { in opline_supports_assign_contraction()
350 if (opline->opcode == ZEND_POST_INC || opline->opcode == ZEND_POST_DEC) { in opline_supports_assign_contraction()
356 if (opline->opcode == ZEND_INIT_ARRAY) { in opline_supports_assign_contraction()
362 if (opline->opcode == ZEND_CAST in opline_supports_assign_contraction()
369 if ((opline->opcode == ZEND_ASSIGN_OP in opline_supports_assign_contraction()
370 || opline->opcode == ZEND_ASSIGN_OBJ in opline_supports_assign_contraction()
371 || opline->opcode == ZEND_ASSIGN_DIM in opline_supports_assign_contraction()
372 || opline->opcode == ZEND_ASSIGN_OBJ_OP in opline_supports_assign_contraction()
373 || opline->opcode == ZEND_ASSIGN_DIM_OP) in opline_supports_assign_contraction()
411 && call_info->caller_call_opline->opcode == ZEND_DO_ICALL in zend_dfa_optimize_calls()
416 && (call_info->caller_call_opline - 1)->opcode == ZEND_SEND_VAL in zend_dfa_optimize_calls()
435 if (send_array->opcode == ZEND_SEND_VAL in zend_dfa_optimize_calls()
438 && (send_needly->opcode == ZEND_SEND_VAL in zend_dfa_optimize_calls()
439 || send_needly->opcode == ZEND_SEND_VAR) in zend_dfa_optimize_calls()
496 call_info->caller_call_opline->opcode = ZEND_IN_ARRAY; in zend_dfa_optimize_calls()
522 && (op_array->opcodes[use].opcode == ZEND_JMPZ in zend_dfa_optimize_calls()
523 || op_array->opcodes[use].opcode == ZEND_JMPNZ)) { in zend_dfa_optimize_calls()
577 if (opline->opcode == ZEND_NOP) { in compress_block()
652 switch (opline->opcode) { in zend_ssa_replace_control_link()
721 if ((op_array->opcodes[pred_block->start + pred_block->len - 1].opcode == ZEND_FE_FETCH_R in zend_ssa_unlink_block()
722 || op_array->opcodes[pred_block->start + pred_block->len - 1].opcode == ZEND_FE_FETCH_RW) in zend_ssa_unlink_block()
785 switch (opline->opcode) { in zend_dfa_optimize_jmps()
803 opline->opcode = ZEND_JMP; in zend_dfa_optimize_jmps()
812 opline->opcode = ZEND_CHECK_VAR; in zend_dfa_optimize_jmps()
819 opline->opcode = ZEND_FREE; in zend_dfa_optimize_jmps()
829 opline->opcode = ZEND_JMP; in zend_dfa_optimize_jmps()
843 opline->opcode = ZEND_CHECK_VAR; in zend_dfa_optimize_jmps()
850 opline->opcode = ZEND_FREE; in zend_dfa_optimize_jmps()
859 opline->opcode = ZEND_JMPZ; in zend_dfa_optimize_jmps()
865 opline->opcode = ZEND_BOOL; in zend_dfa_optimize_jmps()
873 opline->opcode = ZEND_JMPNZ; in zend_dfa_optimize_jmps()
879 opline->opcode = ZEND_BOOL; in zend_dfa_optimize_jmps()
887 opline->opcode = ZEND_JMPNZ; in zend_dfa_optimize_jmps()
913 opline->opcode = ZEND_JMP; in zend_dfa_optimize_jmps()
929 opline->opcode = ZEND_JMP; in zend_dfa_optimize_jmps()
952 (opline->opcode == ZEND_SWITCH_LONG && type == IS_LONG) in zend_dfa_optimize_jmps()
953 || (opline->opcode == ZEND_SWITCH_STRING && type == IS_STRING) in zend_dfa_optimize_jmps()
954 || (opline->opcode == ZEND_MATCH && (type == IS_LONG || type == IS_STRING)); in zend_dfa_optimize_jmps()
960 if (!correct_type && opline->opcode != ZEND_MATCH) { in zend_dfa_optimize_jmps()
981 ZEND_ASSERT(opline->opcode == ZEND_MATCH); in zend_dfa_optimize_jmps()
984 opline->opcode = ZEND_JMP; in zend_dfa_optimize_jmps()
1035 && op_array->opcodes[use].opcode != ZEND_FREE in zend_dfa_try_to_replace_result()
1036 && op_array->opcodes[use].opcode != ZEND_SEND_VAL in zend_dfa_try_to_replace_result()
1037 && op_array->opcodes[use].opcode != ZEND_SEND_VAL_EX in zend_dfa_try_to_replace_result()
1038 && op_array->opcodes[use].opcode != ZEND_VERIFY_RETURN_TYPE in zend_dfa_try_to_replace_result()
1039 && op_array->opcodes[use].opcode != ZEND_YIELD) { in zend_dfa_try_to_replace_result()
1164 if (opline->opcode == ZEND_ASSIGN in zend_dfa_optimize_op_array()
1177 } else if (opline->opcode == ZEND_QM_ASSIGN in zend_dfa_optimize_op_array()
1190 if (opline->opcode == ZEND_ADD in zend_dfa_optimize_op_array()
1191 || opline->opcode == ZEND_SUB in zend_dfa_optimize_op_array()
1192 || opline->opcode == ZEND_MUL in zend_dfa_optimize_op_array()
1193 || opline->opcode == ZEND_IS_EQUAL in zend_dfa_optimize_op_array()
1194 || opline->opcode == ZEND_IS_NOT_EQUAL in zend_dfa_optimize_op_array()
1195 || opline->opcode == ZEND_IS_SMALLER in zend_dfa_optimize_op_array()
1196 || opline->opcode == ZEND_IS_SMALLER_OR_EQUAL in zend_dfa_optimize_op_array()
1211 if (opline->opcode == ZEND_ADD) { in zend_dfa_optimize_op_array()
1223 opline->opcode = ZEND_QM_ASSIGN; in zend_dfa_optimize_op_array()
1233 } else if (opline->opcode == ZEND_MUL in zend_dfa_optimize_op_array()
1245 opline->opcode = ZEND_ADD; in zend_dfa_optimize_op_array()
1264 if (opline->opcode == ZEND_ADD || opline->opcode == ZEND_SUB) { in zend_dfa_optimize_op_array()
1274 opline->opcode = ZEND_QM_ASSIGN; in zend_dfa_optimize_op_array()
1278 } else if (opline->opcode == ZEND_MUL in zend_dfa_optimize_op_array()
1290 opline->opcode = ZEND_ADD; in zend_dfa_optimize_op_array()
1298 } else if (opline->opcode == ZEND_CONCAT) { in zend_dfa_optimize_op_array()
1301 opline->opcode = ZEND_FAST_CONCAT; in zend_dfa_optimize_op_array()
1303 } else if (opline->opcode == ZEND_VERIFY_RETURN_TYPE in zend_dfa_optimize_op_array()
1355 if (opline->opcode == ZEND_QM_ASSIGN in zend_dfa_optimize_op_array()
1411 if (op_array->opcodes[op_2].opcode == ZEND_SUB in zend_dfa_optimize_op_array()
1420 op_array->opcodes[op_2].opcode = ZEND_PRE_DEC; in zend_dfa_optimize_op_array()
1427 } else if (op_array->opcodes[op_2].opcode == ZEND_ADD in zend_dfa_optimize_op_array()
1436 op_array->opcodes[op_2].opcode = ZEND_PRE_INC; in zend_dfa_optimize_op_array()
1443 } else if (op_array->opcodes[op_2].opcode == ZEND_ADD in zend_dfa_optimize_op_array()
1452 op_array->opcodes[op_2].opcode = ZEND_PRE_INC; in zend_dfa_optimize_op_array()
1475 if (opline->opcode == ZEND_ASSIGN in zend_dfa_optimize_op_array()
1476 || opline->opcode == ZEND_ASSIGN_OP in zend_dfa_optimize_op_array()
1477 || opline->opcode == ZEND_PRE_INC in zend_dfa_optimize_op_array()
1478 || opline->opcode == ZEND_PRE_DEC) { in zend_dfa_optimize_op_array()
1480 } else if (opline->opcode == ZEND_POST_INC) { in zend_dfa_optimize_op_array()
1487 if (use >= 0 && op_array->opcodes[use].opcode == ZEND_IS_SMALLER in zend_dfa_optimize_op_array()
1490 opline->opcode = ZEND_PRE_INC; in zend_dfa_optimize_op_array()
1491 op_array->opcodes[use].opcode = ZEND_IS_SMALLER_OR_EQUAL; in zend_dfa_optimize_op_array()
1494 } else if (opline->opcode == ZEND_POST_DEC) { in zend_dfa_optimize_op_array()
1501 if (use >= 0 && op_array->opcodes[use].opcode == ZEND_IS_SMALLER in zend_dfa_optimize_op_array()
1504 opline->opcode = ZEND_PRE_DEC; in zend_dfa_optimize_op_array()
1505 op_array->opcodes[use].opcode = ZEND_IS_SMALLER_OR_EQUAL; in zend_dfa_optimize_op_array()
1511 if (opline->opcode == ZEND_ASSIGN in zend_dfa_optimize_op_array()
1565 if (op_array->opcodes[op_2].opcode == ZEND_SUB in zend_dfa_optimize_op_array()
1574 op_array->opcodes[op_2].opcode = ZEND_PRE_DEC; in zend_dfa_optimize_op_array()
1581 } else if (op_array->opcodes[op_2].opcode == ZEND_ADD in zend_dfa_optimize_op_array()
1590 op_array->opcodes[op_2].opcode = ZEND_PRE_INC; in zend_dfa_optimize_op_array()
1597 } else if (op_array->opcodes[op_2].opcode == ZEND_ADD in zend_dfa_optimize_op_array()
1606 op_array->opcodes[op_2].opcode = ZEND_PRE_INC; in zend_dfa_optimize_op_array()
1648 opline->opcode = ZEND_QM_ASSIGN; in zend_dfa_optimize_op_array()
1652 } else if (opline->opcode == ZEND_ASSIGN_OP in zend_dfa_optimize_op_array()
1663 opline->opcode = ZEND_PRE_INC; in zend_dfa_optimize_op_array()
1667 } else if (opline->opcode == ZEND_ASSIGN_OP in zend_dfa_optimize_op_array()
1678 opline->opcode = ZEND_PRE_DEC; in zend_dfa_optimize_op_array()
1686 && opline->opcode == ZEND_ASSIGN_OP in zend_dfa_optimize_op_array()
1696 opline->opcode = opline->extended_value; in zend_dfa_optimize_op_array()