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()
2051 if (op_array->opcodes[use].opcode == ZEND_OP_DATA) { in add_usages()
2063 && op_array->opcodes[use + 1].opcode == ZEND_OP_DATA) { in add_usages()
2084 const char *def_op_name = def_opline ? zend_get_opcode_name(def_opline->opcode) : "PHI"; in emit_type_narrowing_warning()
2256 zend_ssa *ssa, uint8_t opcode, uint32_t t1, uint32_t t2, int result_var, in binary_op_result_type() argument
2271 switch (opcode) { in binary_op_result_type()
2541 if (opline->opcode == ZEND_OP_DATA) { in _zend_update_type_info()
2555 || ((opline->opcode == ZEND_ASSIGN_DIM_OP in _zend_update_type_info()
2556 || opline->opcode == ZEND_ASSIGN_OBJ_OP in _zend_update_type_info()
2557 || opline->opcode == ZEND_ASSIGN_STATIC_PROP_OP in _zend_update_type_info()
2558 || opline->opcode == ZEND_ASSIGN_DIM in _zend_update_type_info()
2559 || opline->opcode == ZEND_ASSIGN_OBJ) in _zend_update_type_info()
2571 if (opline->opcode == ZEND_ASSIGN_DIM_OP in _zend_update_type_info()
2572 || opline->opcode == ZEND_ASSIGN_OBJ_OP in _zend_update_type_info()
2573 || opline->opcode == ZEND_ASSIGN_STATIC_PROP_OP in _zend_update_type_info()
2574 || opline->opcode == ZEND_ASSIGN_DIM in _zend_update_type_info()
2575 || opline->opcode == ZEND_ASSIGN_OBJ) { in _zend_update_type_info()
2583 switch (opline->opcode) { in _zend_update_type_info()
2596 tmp = binary_op_result_type(ssa, opline->opcode, t1, t2, ssa_op->result_def, optimization_level); in _zend_update_type_info()
2703 if (opline->opcode != ZEND_COPY_TMP || opline->op1_type != IS_VAR) { in _zend_update_type_info()
2711 if (opline->opcode == ZEND_COPY_TMP || opline->op1_type == IS_CV) { in _zend_update_type_info()
2715 if (opline->opcode == ZEND_COALESCE || opline->opcode == ZEND_JMP_SET) { in _zend_update_type_info()
2718 if (opline->opcode == ZEND_JMP_SET) { in _zend_update_type_info()
2748 if (opline->opcode == ZEND_ASSIGN_OBJ_OP) { in _zend_update_type_info()
2753 } else if (opline->opcode == ZEND_ASSIGN_DIM_OP) { in _zend_update_type_info()
2760 } else if (opline->opcode == ZEND_ASSIGN_STATIC_PROP_OP) { in _zend_update_type_info()
2772 opline->opcode == ZEND_ASSIGN_OP ? ssa_op->op1_def : -1, optimization_level); in _zend_update_type_info()
2780 if (opline->opcode == ZEND_ASSIGN_DIM_OP) { in _zend_update_type_info()
2786 } else if (opline->opcode == ZEND_ASSIGN_OBJ_OP) { in _zend_update_type_info()
2792 } else if (opline->opcode == ZEND_ASSIGN_STATIC_PROP_OP) { in _zend_update_type_info()
2795 if (opline->opcode == ZEND_ASSIGN_OP && ssa_op->result_def >= 0 && (tmp & MAY_BE_RC1)) { in _zend_update_type_info()
2802 if (opline->opcode == ZEND_ASSIGN_DIM_OP) { in _zend_update_type_info()
2821 } else if (opline->opcode == ZEND_ASSIGN_OBJ_OP) { in _zend_update_type_info()
2840 } else if (opline->opcode == ZEND_ASSIGN_STATIC_PROP_OP) { in _zend_update_type_info()
2884 (opline->opcode == ZEND_PRE_DEC && in _zend_update_type_info()
2887 (opline->opcode == ZEND_PRE_INC && in _zend_update_type_info()
2897 if (opline->opcode == ZEND_PRE_INC) { in _zend_update_type_info()
2946 (opline->opcode == ZEND_POST_DEC && in _zend_update_type_info()
2949 (opline->opcode == ZEND_POST_INC && in _zend_update_type_info()
2959 if (opline->opcode == ZEND_POST_INC) { in _zend_update_type_info()
3316 if (opline->opcode == ZEND_RECV_VARIADIC) { in _zend_update_type_info()
3430 if (opline->opcode == ZEND_INIT_ARRAY) { in _zend_update_type_info()
3436 if (opline->opcode == ZEND_INIT_ARRAY && opline->op1_type == IS_UNUSED) { in _zend_update_type_info()
3478 if (opline->opcode == ZEND_FE_RESET_RW) { in _zend_update_type_info()
3486 if (opline->opcode == ZEND_FE_RESET_RW) { in _zend_update_type_info()
3506 if (opline->opcode == ZEND_FE_FETCH_RW) { in _zend_update_type_info()
3516 if (opline->opcode == ZEND_FE_FETCH_RW) { in _zend_update_type_info()
3561 if (opline->opcode == ZEND_FETCH_DIM_W || in _zend_update_type_info()
3562 opline->opcode == ZEND_FETCH_DIM_RW || in _zend_update_type_info()
3563 opline->opcode == ZEND_FETCH_DIM_FUNC_ARG || in _zend_update_type_info()
3564 opline->opcode == ZEND_FETCH_LIST_W) { in _zend_update_type_info()
3566 if (opline->opcode != ZEND_FETCH_DIM_FUNC_ARG) { in _zend_update_type_info()
3573 if (opline->opcode == ZEND_FETCH_DIM_FUNC_ARG) { in _zend_update_type_info()
3615 } else if (opline->opcode == ZEND_FETCH_DIM_UNSET) { in _zend_update_type_info()
3624 && (opline->opcode == ZEND_FETCH_DIM_RW in _zend_update_type_info()
3625 || opline->opcode == ZEND_FETCH_DIM_W in _zend_update_type_info()
3626 || opline->opcode == ZEND_FETCH_DIM_FUNC_ARG in _zend_update_type_info()
3627 || opline->opcode == ZEND_FETCH_LIST_W)) { in _zend_update_type_info()
3634 uint8_t opcode; in _zend_update_type_info() local
3642 opcode = op_array->opcodes[j].opcode; in _zend_update_type_info()
3649 opcode = ssa_opcodes[j]->opcode; in _zend_update_type_info()
3651 switch (opcode) { in _zend_update_type_info()
3715 if (opline->opcode != ZEND_FETCH_DIM_FUNC_ARG) { in _zend_update_type_info()
3721 || opline->opcode == ZEND_FETCH_DIM_FUNC_ARG in _zend_update_type_info()
3722 || opline->opcode == ZEND_FETCH_DIM_R in _zend_update_type_info()
3723 || opline->opcode == ZEND_FETCH_DIM_IS in _zend_update_type_info()
3724 || opline->opcode == ZEND_FETCH_DIM_UNSET in _zend_update_type_info()
3725 || opline->opcode == ZEND_FETCH_LIST_R) { in _zend_update_type_info()
3735 opline->opcode != ZEND_FETCH_LIST_R ? t1 : ((t1 & ~MAY_BE_STRING) | MAY_BE_NULL), in _zend_update_type_info()
3737 opline->opcode != ZEND_FETCH_DIM_R && opline->opcode != ZEND_FETCH_DIM_IS in _zend_update_type_info()
3738 && opline->opcode != ZEND_FETCH_LIST_R, in _zend_update_type_info()
3740 …if (opline->opcode == ZEND_FETCH_DIM_FUNC_ARG && (t1 & (MAY_BE_TRUE|MAY_BE_LONG|MAY_BE_DOUBLE|MAY_… in _zend_update_type_info()
3743 if (opline->opcode == ZEND_FETCH_DIM_IS && (t1 & MAY_BE_STRING)) { in _zend_update_type_info()
3784 if (opline->opcode != ZEND_FETCH_OBJ_R && opline->opcode != ZEND_FETCH_OBJ_IS) { in _zend_update_type_info()
3806 if (opline->opcode == ZEND_FETCH_OBJ_IS) { in _zend_update_type_info()
3826 if (opline->opcode != ZEND_FETCH_STATIC_PROP_R in _zend_update_type_info()
3827 && opline->opcode != ZEND_FETCH_STATIC_PROP_IS) { in _zend_update_type_info()
3837 if (opline->opcode == ZEND_FETCH_STATIC_PROP_IS) { in _zend_update_type_info()
3865 if (opline->opcode == ZEND_FRAMELESS_ICALL_3) { in _zend_update_type_info()
4043 switch (opline->opcode) { in _zend_update_type_info()
4055 …lt type inference for opcode %s, line %d\n", zend_get_opcode_name(opline->opcode), opline->lineno); in _zend_update_type_info()
4060 …p1 type inference for opcode %s, line %d\n", zend_get_opcode_name(opline->opcode), opline->lineno); in _zend_update_type_info()
4063 …p2 type inference for opcode %s, line %d\n", zend_get_opcode_name(opline->opcode), opline->lineno); in _zend_update_type_info()
4074 if (opline->opcode == ZEND_FETCH_R || opline->opcode == ZEND_FETCH_IS) { in _zend_update_type_info()
4085 switch (opline->opcode) { in _zend_update_type_info()
4268 return opline->opcode == ZEND_ADD || opline->opcode == ZEND_SUB in is_narrowable_instr()
4269 || opline->opcode == ZEND_MUL || opline->opcode == ZEND_DIV; in is_narrowable_instr()
4273 return (opline->opcode == ZEND_ADD && Z_LVAL_P(op2) == 0) in is_effective_op1_double_cast()
4274 || (opline->opcode == ZEND_SUB && Z_LVAL_P(op2) == 0) in is_effective_op1_double_cast()
4275 || (opline->opcode == ZEND_MUL && Z_LVAL_P(op2) == 1) in is_effective_op1_double_cast()
4276 || (opline->opcode == ZEND_DIV && Z_LVAL_P(op2) == 1); in is_effective_op1_double_cast()
4281 return (opline->opcode == ZEND_ADD && Z_LVAL_P(op1) == 0) in is_effective_op2_double_cast()
4282 || (opline->opcode == ZEND_SUB && Z_LVAL_P(op1) == 0) in is_effective_op2_double_cast()
4283 || (opline->opcode == ZEND_MUL && Z_LVAL_P(op1) == 1); in is_effective_op2_double_cast()
4381 if (opline->opcode == ZEND_MUL && Z_LVAL(orig_op2) == 0) { in can_convert_to_double()
4389 if (opline->opcode == ZEND_MUL && Z_LVAL(orig_op1) == 0) { in can_convert_to_double()
4397 uint8_t opcode = opline->opcode; in can_convert_to_double() local
4399 if (opcode == ZEND_ASSIGN_OP) { in can_convert_to_double()
4400 opcode = opline->extended_value; in can_convert_to_double()
4404 if (opcode == ZEND_DIV && zval_get_double(&orig_op2) == 0.0) { in can_convert_to_double()
4408 get_binary_op(opcode)(&orig_result, &orig_op1, &orig_op2); in can_convert_to_double()
4409 get_binary_op(opcode)(&dval_result, &dval_op1, &dval_op2); in can_convert_to_double()
4458 if (opline->opcode == ZEND_ASSIGN && opline->result_type == IS_UNUSED && in zend_type_narrowing()
4501 if (op->opcode == ZEND_DO_UCALL) { in is_recursive_tail_call()
4591 if (opline->opcode == ZEND_RETURN || opline->opcode == ZEND_RETURN_BY_REF) { in zend_func_return_info()
4605 if (opline->opcode == ZEND_RETURN) { in zend_func_return_info()
4760 switch (opline->opcode) { in zend_mark_cv_references()
4772 switch (opline->opcode) { in zend_mark_cv_references()
4799 switch ((opline-1)->opcode) { in zend_mark_cv_references()
4811 switch (opline->opcode) { in zend_mark_cv_references()
4856 if (op_array->opcodes[use].opcode == ZEND_UNSET_CV in zend_mark_cv_references()
4925 switch (opline->opcode) { in zend_may_throw_ex()
4953 switch (opline->opcode) { in zend_may_throw_ex()
4981 switch (opline->opcode) { in zend_may_throw_ex()
4994 switch (opline->opcode) { in zend_may_throw_ex()
5006 switch (opline->opcode) { in zend_may_throw_ex()
5049 if ((opline+1)->opcode == ZEND_BIND_GLOBAL) { in zend_may_throw_ex()