Lines Matching refs:op2

93 static zend_op *zend_emit_op(znode *result, uint8_t opcode, znode *op1, znode *op2);
2229 static zend_op *zend_emit_op(znode *result, uint8_t opcode, znode *op1, znode *op2) /* {{{ */ in zend_emit_op() argument
2238 if (op2 != NULL) { in zend_emit_op()
2239 SET_NODE(opline->op2, op2); in zend_emit_op()
2249 static zend_op *zend_emit_op_tmp(znode *result, uint8_t opcode, znode *op1, znode *op2) /* {{{ */ in zend_emit_op_tmp() argument
2258 if (op2 != NULL) { in zend_emit_op_tmp()
2259 SET_NODE(opline->op2, op2); in zend_emit_op_tmp()
2348 opline->op2.opline_num = opnum_target; in zend_emit_cond_jump()
2369 opline->op2.opline_num = opnum_target; in zend_update_jump_target()
2382 static inline zend_op *zend_delayed_emit_op(znode *result, uint8_t opcode, znode *op1, znode *op2) … in zend_delayed_emit_op() argument
2392 if (op2 != NULL) { in zend_delayed_emit_op()
2393 SET_NODE(tmp_opline.op2, op2); in zend_delayed_emit_op()
2498 opline->op2.opline_num = get_next_op_number(); in zend_short_circuiting_commit()
2646 opline->op2.num = zend_alloc_cache_slots(zend_type_get_num_classes(return_info->type)); in zend_emit_return_type_check()
2760 ZEND_ASSERT(opline->op2.constant + 1 == c); in zend_handle_numeric_dim()
2761 ZVAL_LONG(CT_CONSTANT(opline->op2), index); in zend_handle_numeric_dim()
2762 Z_EXTRA_P(CT_CONSTANT(opline->op2)) = ZEND_EXTRA_VALUE; in zend_handle_numeric_dim()
3132 convert_to_string(CT_CONSTANT(opline->op2)); in zend_delayed_compile_prop()
3133 zend_string_hash_val(Z_STR_P(CT_CONSTANT(opline->op2))); in zend_delayed_compile_prop()
3178 opline->op2.constant = zend_add_class_name_literal( in zend_compile_static_prop()
3184 SET_NODE(opline->op2, &class_node); in zend_compile_static_prop()
3702 opline->op2.num = arg_count; in zend_compile_args()
3804 opline->op2.constant = zend_add_literal_string(&arg_name); in zend_compile_args()
3807 opline->op2.num = arg_num; in zend_compile_args()
3852 opline->op2.constant = zend_add_literal_string(&arg_name); in zend_compile_args()
3855 opline->op2.opline_num = arg_num; in zend_compile_args()
3965 opline->op2.constant = zend_add_func_name_literal(method); in zend_compile_dynamic_call()
3974 opline->op2.constant = zend_add_func_name_literal(str); in zend_compile_dynamic_call()
4191 LITERAL_STR(opline->op2, lcname); in zend_try_compile_ct_bound_init_user_func()
4287 opline->op2.num = i; in zend_compile_func_cuf()
4313 opline->op2.constant = zend_add_ns_func_name_literal(name); in zend_compile_assert()
4334 opline->op2.opline_num = get_next_op_number(); in zend_compile_assert()
4641 SET_NODE(opline->op2, &arg_zvs[1]); in zend_compile_frameless_icall_ex()
4692 opline->op2.constant = name_constants; in zend_compile_ns_call()
4704 jmp_fl->op2.opline_num = jmp_fl_target; in zend_compile_ns_call()
4880 Z_EXTRA_P(CT_CONSTANT(opline->op2)) = fbc_bucket - CG(function_table)->arData; in zend_compile_call()
4927 opline->op2.constant = zend_add_func_name_literal( in zend_compile_method_call()
4931 SET_NODE(opline->op2, &method_node); in zend_compile_method_call()
4937 zend_string *lcname = Z_STR_P(CT_CONSTANT(opline->op2) + 1); in zend_compile_method_call()
5013 opline->op2.constant = zend_add_func_name_literal( in zend_compile_static_call()
5020 SET_NODE(opline->op2, &method_node); in zend_compile_static_call()
5043 zend_string *lcname = Z_STR_P(CT_CONSTANT(opline->op2) + 1); in zend_compile_static_call()
5075 opline->op2.num = zend_alloc_cache_slot(); in zend_compile_new()
5280 SET_NODE(opline->op2, return_value); in zend_handle_loops_and_finally_ex()
5512 opline->op2.num = depth; in zend_compile_break_continue()
5523 label = CT_CONSTANT_EX(op_array, opline->op2.constant); in zend_resolve_goto_label()
5563 SET_UNUSED(opline->op2); in zend_resolve_goto_label()
5767 SET_NODE(opline->op2, &value_node); in zend_compile_foreach()
5770 opline->op2.var = get_temporary_variable(); in zend_compile_foreach()
5771 GET_NODE(&value_node, opline->op2); in zend_compile_foreach()
5796 opline->op2.opline_num = get_next_op_number(); in zend_compile_foreach()
6379 opline->op2.opline_num = get_next_op_number(); in zend_compile_try()
6398 opline->op2.opline_num = get_next_op_number(); in zend_compile_try()
6437 opline->op2.num = orig_try_catch_offset; in zend_compile_try()
7326 opline->op2.num = type_ast ? in zend_compile_params()
7467 opline->op2.var = lookup_cv(var_name); in zend_compile_closure_binding()
7570 opline->op2.var = lookup_cv(var_name); in compile_implicit_lexical_binds()
7790 opline->op2.num = func_ref; in zend_begin_func_decl()
7796 opline->op2.num = func_ref; in zend_begin_func_decl()
8459 LITERAL_STR(opline->op2, lc_parent_name); in zend_compile_class_decl()
8495 LITERAL_STR(opline->op2, ZSTR_EMPTY_ALLOC()); in zend_compile_class_decl()
8949 ZEND_API bool zend_binary_op_produces_error(uint32_t opcode, const zval *op1, const zval *op2) /* {… in zend_binary_op_produces_error() argument
8953 return Z_TYPE_P(op1) == IS_ARRAY || Z_TYPE_P(op2) == IS_ARRAY; in zend_binary_op_produces_error()
8963 if (Z_TYPE_P(op1) == IS_ARRAY || Z_TYPE_P(op2) == IS_ARRAY) { in zend_binary_op_produces_error()
8964 if (opcode == ZEND_ADD && Z_TYPE_P(op1) == IS_ARRAY && Z_TYPE_P(op2) == IS_ARRAY) { in zend_binary_op_produces_error()
8976 && Z_TYPE_P(op1) == IS_STRING && Z_TYPE_P(op2) == IS_STRING) { in zend_binary_op_produces_error()
8985 if (Z_TYPE_P(op2) == IS_STRING in zend_binary_op_produces_error()
8986 && !is_numeric_string(Z_STRVAL_P(op2), Z_STRLEN_P(op2), NULL, NULL, 0)) { in zend_binary_op_produces_error()
8990 if ((opcode == ZEND_MOD && zval_get_long(op2) == 0) in zend_binary_op_produces_error()
8991 || (opcode == ZEND_DIV && zval_get_double(op2) == 0.0)) { in zend_binary_op_produces_error()
8995 if ((opcode == ZEND_POW) && zval_get_double(op1) == 0 && zval_get_double(op2) < 0) { in zend_binary_op_produces_error()
8999 if ((opcode == ZEND_SL || opcode == ZEND_SR) && zval_get_long(op2) < 0) { in zend_binary_op_produces_error()
9007 return !zend_is_op_long_compatible(op1) || !zend_is_op_long_compatible(op2); in zend_binary_op_produces_error()
9014 static inline bool zend_try_ct_eval_binary_op(zval *result, uint32_t opcode, zval *op1, zval *op2) … in zend_try_ct_eval_binary_op() argument
9016 if (zend_binary_op_produces_error(opcode, op1, op2)) { in zend_try_ct_eval_binary_op()
9021 fn(result, op1, op2); in zend_try_ct_eval_binary_op()
9059 static inline void zend_ct_eval_greater(zval *result, zend_ast_kind kind, zval *op1, zval *op2) /* … in zend_ct_eval_greater() argument
9063 fn(result, op2, op1); in zend_ct_eval_greater()
9590 opline->op2.opline_num = get_next_op_number(); in zend_compile_coalesce()
9816 opline->op2.constant = zend_add_class_name_literal( in zend_compile_instanceof()
9820 SET_NODE(opline->op2, &class_node); in zend_compile_instanceof()
10076 opline->op2.constant = zend_add_const_name_literal( in zend_compile_const()
10080 opline->op2.constant = zend_add_const_name_literal( in zend_compile_const()
10165 SET_NODE(opline->op2, elem_node); in zend_compile_rope_add_ex()
10184 SET_NODE(opline->op2, elem_node); in zend_compile_rope_add()
10268 GET_NODE(result, opline->op2); in zend_compile_encaps_list()
10274 opline->op1 = opline->op2; in zend_compile_encaps_list()
10275 SET_UNUSED(opline->op2); in zend_compile_encaps_list()
10282 opline->op1 = init_opline->op2; in zend_compile_encaps_list()