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()
788 const zend_op *opline, const zend_ssa_op *ssa_op, uint8_t opcode, zend_ssa_range *tmp) { in zend_inference_calc_binary_op_range() argument
791 switch (opcode) { in zend_inference_calc_binary_op_range()
1101 switch (opline->opcode) { in zend_inference_calc_range()
1256 switch (opline->opcode) { in zend_inference_propagate_range()
1269 op_array, ssa, opline, ssa_op, opline->opcode, tmp); in zend_inference_propagate_range()
1490 if ((opline-1)->opcode == ZEND_ASSIGN_DIM || in zend_inference_propagate_range()
1491 (opline-1)->opcode == ZEND_ASSIGN_OBJ || in zend_inference_propagate_range()
1492 (opline-1)->opcode == ZEND_ASSIGN_STATIC_PROP || in zend_inference_propagate_range()
1493 (opline-1)->opcode == ZEND_ASSIGN_DIM_OP || in zend_inference_propagate_range()
1494 (opline-1)->opcode == ZEND_ASSIGN_OBJ_OP || in zend_inference_propagate_range()
1495 (opline-1)->opcode == ZEND_ASSIGN_STATIC_PROP_OP) { in zend_inference_propagate_range()
2047 if (op_array->opcodes[use].opcode == ZEND_OP_DATA) { in add_usages()
2059 && op_array->opcodes[use + 1].opcode == ZEND_OP_DATA) { in add_usages()
2080 const char *def_op_name = def_opline ? zend_get_opcode_name(def_opline->opcode) : "PHI"; in emit_type_narrowing_warning()
2252 zend_ssa *ssa, uint8_t opcode, uint32_t t1, uint32_t t2, int result_var, in binary_op_result_type() argument
2267 switch (opcode) { in binary_op_result_type()
2537 if (opline->opcode == ZEND_OP_DATA) { in _zend_update_type_info()
2551 || ((opline->opcode == ZEND_ASSIGN_DIM_OP in _zend_update_type_info()
2552 || opline->opcode == ZEND_ASSIGN_OBJ_OP in _zend_update_type_info()
2553 || opline->opcode == ZEND_ASSIGN_STATIC_PROP_OP in _zend_update_type_info()
2554 || opline->opcode == ZEND_ASSIGN_DIM in _zend_update_type_info()
2555 || opline->opcode == ZEND_ASSIGN_OBJ) in _zend_update_type_info()
2567 if (opline->opcode == ZEND_ASSIGN_DIM_OP in _zend_update_type_info()
2568 || opline->opcode == ZEND_ASSIGN_OBJ_OP in _zend_update_type_info()
2569 || opline->opcode == ZEND_ASSIGN_STATIC_PROP_OP in _zend_update_type_info()
2570 || opline->opcode == ZEND_ASSIGN_DIM in _zend_update_type_info()
2571 || opline->opcode == ZEND_ASSIGN_OBJ) { in _zend_update_type_info()
2579 switch (opline->opcode) { in _zend_update_type_info()
2592 tmp = binary_op_result_type(ssa, opline->opcode, t1, t2, ssa_op->result_def, optimization_level); in _zend_update_type_info()
2699 if (opline->opcode != ZEND_COPY_TMP || opline->op1_type != IS_VAR) { in _zend_update_type_info()
2707 if (opline->opcode == ZEND_COPY_TMP || opline->op1_type == IS_CV) { in _zend_update_type_info()
2711 if (opline->opcode == ZEND_COALESCE || opline->opcode == ZEND_JMP_SET) { in _zend_update_type_info()
2714 if (opline->opcode == ZEND_JMP_SET) { in _zend_update_type_info()
2744 if (opline->opcode == ZEND_ASSIGN_OBJ_OP) { in _zend_update_type_info()
2749 } else if (opline->opcode == ZEND_ASSIGN_DIM_OP) { in _zend_update_type_info()
2756 } else if (opline->opcode == ZEND_ASSIGN_STATIC_PROP_OP) { in _zend_update_type_info()
2768 opline->opcode == ZEND_ASSIGN_OP ? ssa_op->op1_def : -1, optimization_level); in _zend_update_type_info()
2776 if (opline->opcode == ZEND_ASSIGN_DIM_OP) { in _zend_update_type_info()
2782 } else if (opline->opcode == ZEND_ASSIGN_OBJ_OP) { in _zend_update_type_info()
2788 } else if (opline->opcode == ZEND_ASSIGN_STATIC_PROP_OP) { in _zend_update_type_info()
2791 if (opline->opcode == ZEND_ASSIGN_OP && ssa_op->result_def >= 0 && (tmp & MAY_BE_RC1)) { in _zend_update_type_info()
2798 if (opline->opcode == ZEND_ASSIGN_DIM_OP) { in _zend_update_type_info()
2817 } else if (opline->opcode == ZEND_ASSIGN_OBJ_OP) { in _zend_update_type_info()
2836 } else if (opline->opcode == ZEND_ASSIGN_STATIC_PROP_OP) { in _zend_update_type_info()
2880 (opline->opcode == ZEND_PRE_DEC && in _zend_update_type_info()
2883 (opline->opcode == ZEND_PRE_INC && in _zend_update_type_info()
2893 if (opline->opcode == ZEND_PRE_INC) { in _zend_update_type_info()
2942 (opline->opcode == ZEND_POST_DEC && in _zend_update_type_info()
2945 (opline->opcode == ZEND_POST_INC && in _zend_update_type_info()
2955 if (opline->opcode == ZEND_POST_INC) { in _zend_update_type_info()
3312 if (opline->opcode == ZEND_RECV_VARIADIC) { in _zend_update_type_info()
3426 if (opline->opcode == ZEND_INIT_ARRAY) { in _zend_update_type_info()
3432 if (opline->opcode == ZEND_INIT_ARRAY && opline->op1_type == IS_UNUSED) { in _zend_update_type_info()
3474 if (opline->opcode == ZEND_FE_RESET_RW) { in _zend_update_type_info()
3482 if (opline->opcode == ZEND_FE_RESET_RW) { in _zend_update_type_info()
3502 if (opline->opcode == ZEND_FE_FETCH_RW) { in _zend_update_type_info()
3512 if (opline->opcode == ZEND_FE_FETCH_RW) { in _zend_update_type_info()
3557 if (opline->opcode == ZEND_FETCH_DIM_W || in _zend_update_type_info()
3558 opline->opcode == ZEND_FETCH_DIM_RW || in _zend_update_type_info()
3559 opline->opcode == ZEND_FETCH_DIM_FUNC_ARG || in _zend_update_type_info()
3560 opline->opcode == ZEND_FETCH_LIST_W) { in _zend_update_type_info()
3562 if (opline->opcode != ZEND_FETCH_DIM_FUNC_ARG) { in _zend_update_type_info()
3569 if (opline->opcode == ZEND_FETCH_DIM_FUNC_ARG) { in _zend_update_type_info()
3611 } else if (opline->opcode == ZEND_FETCH_DIM_UNSET) { in _zend_update_type_info()
3620 && (opline->opcode == ZEND_FETCH_DIM_RW in _zend_update_type_info()
3621 || opline->opcode == ZEND_FETCH_DIM_W in _zend_update_type_info()
3622 || opline->opcode == ZEND_FETCH_DIM_FUNC_ARG in _zend_update_type_info()
3623 || opline->opcode == ZEND_FETCH_LIST_W)) { in _zend_update_type_info()
3630 uint8_t opcode; in _zend_update_type_info() local
3638 opcode = op_array->opcodes[j].opcode; in _zend_update_type_info()
3645 opcode = ssa_opcodes[j]->opcode; in _zend_update_type_info()
3647 switch (opcode) { in _zend_update_type_info()
3711 if (opline->opcode != ZEND_FETCH_DIM_FUNC_ARG) { in _zend_update_type_info()
3717 || opline->opcode == ZEND_FETCH_DIM_FUNC_ARG in _zend_update_type_info()
3718 || opline->opcode == ZEND_FETCH_DIM_R in _zend_update_type_info()
3719 || opline->opcode == ZEND_FETCH_DIM_IS in _zend_update_type_info()
3720 || opline->opcode == ZEND_FETCH_DIM_UNSET in _zend_update_type_info()
3721 || opline->opcode == ZEND_FETCH_LIST_R) { in _zend_update_type_info()
3731 opline->opcode != ZEND_FETCH_LIST_R ? t1 : ((t1 & ~MAY_BE_STRING) | MAY_BE_NULL), in _zend_update_type_info()
3733 opline->opcode != ZEND_FETCH_DIM_R && opline->opcode != ZEND_FETCH_DIM_IS in _zend_update_type_info()
3734 && opline->opcode != ZEND_FETCH_LIST_R, in _zend_update_type_info()
3736 …if (opline->opcode == ZEND_FETCH_DIM_FUNC_ARG && (t1 & (MAY_BE_TRUE|MAY_BE_LONG|MAY_BE_DOUBLE|MAY_… in _zend_update_type_info()
3739 if (opline->opcode == ZEND_FETCH_DIM_IS && (t1 & MAY_BE_STRING)) { in _zend_update_type_info()
3780 if (opline->opcode != ZEND_FETCH_OBJ_R && opline->opcode != ZEND_FETCH_OBJ_IS) { in _zend_update_type_info()
3802 if (opline->opcode == ZEND_FETCH_OBJ_IS) { in _zend_update_type_info()
3822 if (opline->opcode != ZEND_FETCH_STATIC_PROP_R in _zend_update_type_info()
3823 && opline->opcode != ZEND_FETCH_STATIC_PROP_IS) { in _zend_update_type_info()
3833 if (opline->opcode == ZEND_FETCH_STATIC_PROP_IS) { in _zend_update_type_info()
3861 if (opline->opcode == ZEND_FRAMELESS_ICALL_3) { in _zend_update_type_info()
4039 switch (opline->opcode) { in _zend_update_type_info()
4051 …lt type inference for opcode %s, line %d\n", zend_get_opcode_name(opline->opcode), opline->lineno); in _zend_update_type_info()
4056 …p1 type inference for opcode %s, line %d\n", zend_get_opcode_name(opline->opcode), opline->lineno); in _zend_update_type_info()
4059 …p2 type inference for opcode %s, line %d\n", zend_get_opcode_name(opline->opcode), opline->lineno); in _zend_update_type_info()
4070 if (opline->opcode == ZEND_FETCH_R || opline->opcode == ZEND_FETCH_IS) { in _zend_update_type_info()
4081 switch (opline->opcode) { in _zend_update_type_info()
4264 return opline->opcode == ZEND_ADD || opline->opcode == ZEND_SUB in is_narrowable_instr()
4265 || opline->opcode == ZEND_MUL || opline->opcode == ZEND_DIV; in is_narrowable_instr()
4269 return (opline->opcode == ZEND_ADD && Z_LVAL_P(op2) == 0) in is_effective_op1_double_cast()
4270 || (opline->opcode == ZEND_SUB && Z_LVAL_P(op2) == 0) in is_effective_op1_double_cast()
4271 || (opline->opcode == ZEND_MUL && Z_LVAL_P(op2) == 1) in is_effective_op1_double_cast()
4272 || (opline->opcode == ZEND_DIV && Z_LVAL_P(op2) == 1); in is_effective_op1_double_cast()
4277 return (opline->opcode == ZEND_ADD && Z_LVAL_P(op1) == 0) in is_effective_op2_double_cast()
4278 || (opline->opcode == ZEND_SUB && Z_LVAL_P(op1) == 0) in is_effective_op2_double_cast()
4279 || (opline->opcode == ZEND_MUL && Z_LVAL_P(op1) == 1); in is_effective_op2_double_cast()
4377 if (opline->opcode == ZEND_MUL && Z_LVAL(orig_op2) == 0) { in can_convert_to_double()
4385 if (opline->opcode == ZEND_MUL && Z_LVAL(orig_op1) == 0) { in can_convert_to_double()
4393 uint8_t opcode = opline->opcode; in can_convert_to_double() local
4395 if (opcode == ZEND_ASSIGN_OP) { in can_convert_to_double()
4396 opcode = opline->extended_value; in can_convert_to_double()
4400 if (opcode == ZEND_DIV && zval_get_double(&orig_op2) == 0.0) { in can_convert_to_double()
4404 get_binary_op(opcode)(&orig_result, &orig_op1, &orig_op2); in can_convert_to_double()
4405 get_binary_op(opcode)(&dval_result, &dval_op1, &dval_op2); in can_convert_to_double()
4454 if (opline->opcode == ZEND_ASSIGN && opline->result_type == IS_UNUSED && in zend_type_narrowing()
4497 if (op->opcode == ZEND_DO_UCALL) { in is_recursive_tail_call()
4587 if (opline->opcode == ZEND_RETURN || opline->opcode == ZEND_RETURN_BY_REF) { in zend_func_return_info()
4601 if (opline->opcode == ZEND_RETURN) { in zend_func_return_info()
4756 switch (opline->opcode) { in zend_mark_cv_references()
4768 switch (opline->opcode) { in zend_mark_cv_references()
4795 switch ((opline-1)->opcode) { in zend_mark_cv_references()
4807 switch (opline->opcode) { in zend_mark_cv_references()
4852 if (op_array->opcodes[use].opcode == ZEND_UNSET_CV in zend_mark_cv_references()
4921 switch (opline->opcode) { in zend_may_throw_ex()
4949 switch (opline->opcode) { in zend_may_throw_ex()
4977 switch (opline->opcode) { in zend_may_throw_ex()
4990 switch (opline->opcode) { in zend_may_throw_ex()
5002 switch (opline->opcode) { in zend_may_throw_ex()
5045 if ((opline+1)->opcode == ZEND_BIND_GLOBAL) { in zend_may_throw_ex()