Lines Matching refs:opcode

125 		if (op_array->opcodes[line].opcode == ZEND_OP_DATA) { \
136 op_array->opcodes[line+1].opcode == ZEND_OP_DATA) { \
313 if (op_array->opcodes[use].opcode == ZEND_OP_DATA) { in zend_scc_next()
332 op_array->opcodes[use+1].opcode == ZEND_OP_DATA) { in zend_scc_next()
798 zend_op *opline, zend_ssa_op *ssa_op, zend_uchar opcode, zend_ssa_range *tmp) { in zend_inference_calc_binary_op_range() argument
801 switch (opcode) { in zend_inference_calc_binary_op_range()
1111 switch (opline->opcode) { in zend_inference_calc_range()
1266 switch (opline->opcode) { in zend_inference_propagate_range()
1279 op_array, ssa, opline, ssa_op, opline->opcode, tmp); in zend_inference_propagate_range()
1500 if ((opline-1)->opcode == ZEND_ASSIGN_DIM || in zend_inference_propagate_range()
1501 (opline-1)->opcode == ZEND_ASSIGN_OBJ || in zend_inference_propagate_range()
1502 (opline-1)->opcode == ZEND_ASSIGN_STATIC_PROP || in zend_inference_propagate_range()
1503 (opline-1)->opcode == ZEND_ASSIGN_DIM_OP || in zend_inference_propagate_range()
1504 (opline-1)->opcode == ZEND_ASSIGN_OBJ_OP || in zend_inference_propagate_range()
1505 (opline-1)->opcode == ZEND_ASSIGN_STATIC_PROP_OP) { in zend_inference_propagate_range()
2052 if (op_array->opcodes[use].opcode == ZEND_OP_DATA) { in add_usages()
2064 && op_array->opcodes[use + 1].opcode == ZEND_OP_DATA) { in add_usages()
2085 const char *def_op_name = def_opline ? zend_get_opcode_name(def_opline->opcode) : "PHI"; in emit_type_narrowing_warning()
2257 zend_ssa *ssa, zend_uchar opcode, uint32_t t1, uint32_t t2, int result_var, in binary_op_result_type() argument
2272 switch (opcode) { in binary_op_result_type()
2542 if (opline->opcode == ZEND_OP_DATA) { in _zend_update_type_info()
2556 || ((opline->opcode == ZEND_ASSIGN_DIM_OP in _zend_update_type_info()
2557 || opline->opcode == ZEND_ASSIGN_OBJ_OP in _zend_update_type_info()
2558 || opline->opcode == ZEND_ASSIGN_STATIC_PROP_OP in _zend_update_type_info()
2559 || opline->opcode == ZEND_ASSIGN_DIM in _zend_update_type_info()
2560 || opline->opcode == ZEND_ASSIGN_OBJ) in _zend_update_type_info()
2572 if (opline->opcode == ZEND_ASSIGN_DIM_OP in _zend_update_type_info()
2573 || opline->opcode == ZEND_ASSIGN_OBJ_OP in _zend_update_type_info()
2574 || opline->opcode == ZEND_ASSIGN_STATIC_PROP_OP in _zend_update_type_info()
2575 || opline->opcode == ZEND_ASSIGN_DIM in _zend_update_type_info()
2576 || opline->opcode == ZEND_ASSIGN_OBJ) { in _zend_update_type_info()
2584 switch (opline->opcode) { in _zend_update_type_info()
2597 tmp = binary_op_result_type(ssa, opline->opcode, t1, t2, ssa_op->result_def, optimization_level); in _zend_update_type_info()
2709 if (opline->opcode == ZEND_COPY_TMP || opline->op1_type == IS_CV) { in _zend_update_type_info()
2713 if (opline->opcode == ZEND_COALESCE || opline->opcode == ZEND_JMP_SET) { in _zend_update_type_info()
2716 if (opline->opcode == ZEND_JMP_SET) { in _zend_update_type_info()
2746 if (opline->opcode == ZEND_ASSIGN_OBJ_OP) { in _zend_update_type_info()
2751 } else if (opline->opcode == ZEND_ASSIGN_DIM_OP) { in _zend_update_type_info()
2758 } else if (opline->opcode == ZEND_ASSIGN_STATIC_PROP_OP) { in _zend_update_type_info()
2770 opline->opcode == ZEND_ASSIGN_OP ? ssa_op->op1_def : -1, optimization_level); in _zend_update_type_info()
2778 if (opline->opcode == ZEND_ASSIGN_DIM_OP) { in _zend_update_type_info()
2784 } else if (opline->opcode == ZEND_ASSIGN_OBJ_OP) { in _zend_update_type_info()
2790 } else if (opline->opcode == ZEND_ASSIGN_STATIC_PROP_OP) { in _zend_update_type_info()
2793 if (opline->opcode == ZEND_ASSIGN_OP && ssa_op->result_def >= 0 && (tmp & MAY_BE_RC1)) { in _zend_update_type_info()
2800 if (opline->opcode == ZEND_ASSIGN_DIM_OP) { in _zend_update_type_info()
2819 } else if (opline->opcode == ZEND_ASSIGN_OBJ_OP) { in _zend_update_type_info()
2838 } else if (opline->opcode == ZEND_ASSIGN_STATIC_PROP_OP) { in _zend_update_type_info()
2882 (opline->opcode == ZEND_PRE_DEC && in _zend_update_type_info()
2885 (opline->opcode == ZEND_PRE_INC && in _zend_update_type_info()
2895 if (opline->opcode == ZEND_PRE_INC) { in _zend_update_type_info()
2944 (opline->opcode == ZEND_POST_DEC && in _zend_update_type_info()
2947 (opline->opcode == ZEND_POST_INC && in _zend_update_type_info()
2957 if (opline->opcode == ZEND_POST_INC) { in _zend_update_type_info()
3303 if (opline->opcode == ZEND_RECV_VARIADIC) { in _zend_update_type_info()
3401 if (opline->opcode == ZEND_INIT_ARRAY) { in _zend_update_type_info()
3407 if (opline->opcode == ZEND_INIT_ARRAY && opline->op1_type == IS_UNUSED) { in _zend_update_type_info()
3449 if (opline->opcode == ZEND_FE_RESET_RW) { in _zend_update_type_info()
3457 if (opline->opcode == ZEND_FE_RESET_RW) { in _zend_update_type_info()
3477 if (opline->opcode == ZEND_FE_FETCH_RW) { in _zend_update_type_info()
3487 if (opline->opcode == ZEND_FE_FETCH_RW) { in _zend_update_type_info()
3532 if (opline->opcode == ZEND_FETCH_DIM_W || in _zend_update_type_info()
3533 opline->opcode == ZEND_FETCH_DIM_RW || in _zend_update_type_info()
3534 opline->opcode == ZEND_FETCH_DIM_FUNC_ARG || in _zend_update_type_info()
3535 opline->opcode == ZEND_FETCH_LIST_W) { in _zend_update_type_info()
3537 if (opline->opcode != ZEND_FETCH_DIM_FUNC_ARG) { in _zend_update_type_info()
3544 if (opline->opcode == ZEND_FETCH_DIM_FUNC_ARG) { in _zend_update_type_info()
3586 } else if (opline->opcode == ZEND_FETCH_DIM_UNSET) { in _zend_update_type_info()
3595 && (opline->opcode == ZEND_FETCH_DIM_RW in _zend_update_type_info()
3596 || opline->opcode == ZEND_FETCH_DIM_W in _zend_update_type_info()
3597 || opline->opcode == ZEND_FETCH_DIM_FUNC_ARG in _zend_update_type_info()
3598 || opline->opcode == ZEND_FETCH_LIST_W)) { in _zend_update_type_info()
3605 zend_uchar opcode; in _zend_update_type_info() local
3613 opcode = op_array->opcodes[j].opcode; in _zend_update_type_info()
3620 opcode = ssa_opcodes[j]->opcode; in _zend_update_type_info()
3622 switch (opcode) { in _zend_update_type_info()
3686 if (opline->opcode != ZEND_FETCH_DIM_FUNC_ARG) { in _zend_update_type_info()
3692 || opline->opcode == ZEND_FETCH_DIM_FUNC_ARG in _zend_update_type_info()
3693 || opline->opcode == ZEND_FETCH_DIM_R in _zend_update_type_info()
3694 || opline->opcode == ZEND_FETCH_DIM_IS in _zend_update_type_info()
3695 || opline->opcode == ZEND_FETCH_DIM_UNSET in _zend_update_type_info()
3696 || opline->opcode == ZEND_FETCH_LIST_R) { in _zend_update_type_info()
3706 opline->opcode != ZEND_FETCH_LIST_R ? t1 : ((t1 & ~MAY_BE_STRING) | MAY_BE_NULL), in _zend_update_type_info()
3708 opline->opcode != ZEND_FETCH_DIM_R && opline->opcode != ZEND_FETCH_DIM_IS in _zend_update_type_info()
3709 && opline->opcode != ZEND_FETCH_LIST_R, in _zend_update_type_info()
3711 …if (opline->opcode == ZEND_FETCH_DIM_FUNC_ARG && (t1 & (MAY_BE_TRUE|MAY_BE_LONG|MAY_BE_DOUBLE|MAY_… in _zend_update_type_info()
3714 if (opline->opcode == ZEND_FETCH_DIM_IS && (t1 & MAY_BE_STRING)) { in _zend_update_type_info()
3755 if (opline->opcode != ZEND_FETCH_OBJ_R && opline->opcode != ZEND_FETCH_OBJ_IS) { in _zend_update_type_info()
3776 if (opline->opcode == ZEND_FETCH_OBJ_IS) { in _zend_update_type_info()
3796 if (opline->opcode != ZEND_FETCH_STATIC_PROP_R in _zend_update_type_info()
3797 && opline->opcode != ZEND_FETCH_STATIC_PROP_IS) { in _zend_update_type_info()
3807 if (opline->opcode == ZEND_FETCH_STATIC_PROP_IS) { in _zend_update_type_info()
3945 if (opline->opcode == ZEND_FETCH_R || opline->opcode == ZEND_FETCH_IS) { in _zend_update_type_info()
3956 switch (opline->opcode) { in _zend_update_type_info()
4139 return opline->opcode == ZEND_ADD || opline->opcode == ZEND_SUB in is_narrowable_instr()
4140 || opline->opcode == ZEND_MUL || opline->opcode == ZEND_DIV; in is_narrowable_instr()
4144 return (opline->opcode == ZEND_ADD && Z_LVAL_P(op2) == 0) in is_effective_op1_double_cast()
4145 || (opline->opcode == ZEND_SUB && Z_LVAL_P(op2) == 0) in is_effective_op1_double_cast()
4146 || (opline->opcode == ZEND_MUL && Z_LVAL_P(op2) == 1) in is_effective_op1_double_cast()
4147 || (opline->opcode == ZEND_DIV && Z_LVAL_P(op2) == 1); in is_effective_op1_double_cast()
4152 return (opline->opcode == ZEND_ADD && Z_LVAL_P(op1) == 0) in is_effective_op2_double_cast()
4153 || (opline->opcode == ZEND_SUB && Z_LVAL_P(op1) == 0) in is_effective_op2_double_cast()
4154 || (opline->opcode == ZEND_MUL && Z_LVAL_P(op1) == 1); in is_effective_op2_double_cast()
4252 if (opline->opcode == ZEND_MUL && Z_LVAL(orig_op2) == 0) { in can_convert_to_double()
4260 if (opline->opcode == ZEND_MUL && Z_LVAL(orig_op1) == 0) { in can_convert_to_double()
4268 zend_uchar opcode = opline->opcode; in can_convert_to_double() local
4270 if (opcode == ZEND_ASSIGN_OP) { in can_convert_to_double()
4271 opcode = opline->extended_value; in can_convert_to_double()
4275 if (opcode == ZEND_DIV && zval_get_double(&orig_op2) == 0.0) { in can_convert_to_double()
4279 get_binary_op(opcode)(&orig_result, &orig_op1, &orig_op2); in can_convert_to_double()
4280 get_binary_op(opcode)(&dval_result, &dval_op1, &dval_op2); in can_convert_to_double()
4329 if (opline->opcode == ZEND_ASSIGN && opline->result_type == IS_UNUSED && in zend_type_narrowing()
4372 if (op->opcode == ZEND_DO_UCALL) { in is_recursive_tail_call()
4462 if (opline->opcode == ZEND_RETURN || opline->opcode == ZEND_RETURN_BY_REF) { in zend_func_return_info()
4476 if (opline->opcode == ZEND_RETURN) { in zend_func_return_info()
4631 switch (opline->opcode) { in zend_mark_cv_references()
4643 switch (opline->opcode) { in zend_mark_cv_references()
4669 switch ((opline-1)->opcode) { in zend_mark_cv_references()
4681 switch (opline->opcode) { in zend_mark_cv_references()
4726 if (op_array->opcodes[use].opcode == ZEND_UNSET_CV in zend_mark_cv_references()
4795 switch (opline->opcode) { in zend_may_throw_ex()
4822 switch (opline->opcode) { in zend_may_throw_ex()
4850 switch (opline->opcode) { in zend_may_throw_ex()
4863 switch (opline->opcode) { in zend_may_throw_ex()
4875 switch (opline->opcode) { in zend_may_throw_ex()
4915 if ((opline+1)->opcode == ZEND_BIND_GLOBAL) { in zend_may_throw_ex()