Lines Matching refs:op2

89 static zend_op *zend_emit_op(znode *result, zend_uchar opcode, znode *op1, znode *op2);
656 opline->op2.num >= n) { in zend_start_live_range_ex()
657 opline->op2.num++; in zend_start_live_range_ex()
1205 parent_name = CT_CONSTANT(fetch_class_opline->op2); in zend_do_early_binding()
1226 zend_del_literal(CG(active_op_array), fetch_class_opline->op2.constant); in zend_do_early_binding()
1289 zval *parent_name = RT_CONSTANT(op_array, op_array->opcodes[opline_num-1].op2); in zend_do_delayed_early_binding()
1594 SET_UNUSED(opline->op2); in zend_do_extended_info()
1610 SET_UNUSED(opline->op2); in zend_do_extended_fcall_begin()
1626 SET_UNUSED(opline->op2); in zend_do_extended_fcall_end()
2037 def = CG(active_op_array)->opcodes + def->op2.opline_num - 1; in zend_find_live_range()
2114 !zend_is_def_range(opline - 1, opline->op2_type, opline->op2.var)) { in zend_check_live_ranges()
2117 if (!zend_is_def_range(opline - 2, opline->op2_type, opline->op2.var)) { in zend_check_live_ranges()
2118 zend_find_live_range(opline-1, opline->op2_type, opline->op2.var); in zend_check_live_ranges()
2131 zend_find_live_range(opline, opline->op2_type, opline->op2.var); in zend_check_live_ranges()
2137 static zend_op *zend_emit_op(znode *result, zend_uchar opcode, znode *op1, znode *op2) /* {{{ */ in zend_emit_op() argument
2148 if (op2 == NULL) { in zend_emit_op()
2149 SET_UNUSED(opline->op2); in zend_emit_op()
2151 SET_NODE(opline->op2, op2); in zend_emit_op()
2163 static zend_op *zend_emit_op_tmp(znode *result, zend_uchar opcode, znode *op1, znode *op2) /* {{{ */ in zend_emit_op_tmp() argument
2174 if (op2 == NULL) { in zend_emit_op_tmp()
2175 SET_UNUSED(opline->op2); in zend_emit_op_tmp()
2177 SET_NODE(opline->op2, op2); in zend_emit_op_tmp()
2203 SET_UNUSED(opline->op2); in zend_emit_tick()
2260 opline->op2.opline_num = opnum_target; in zend_emit_cond_jump()
2277 opline->op2.opline_num = opnum_target; in zend_update_jump_target()
2290 …e zend_op *zend_delayed_emit_op(znode *result, zend_uchar opcode, znode *op1, znode *op2) /* {{{ */ in zend_delayed_emit_op() argument
2300 if (op2 == NULL) { in zend_delayed_emit_op()
2301 SET_UNUSED(tmp_opline.op2); in zend_delayed_emit_op()
2303 SET_NODE(tmp_opline.op2, op2); in zend_delayed_emit_op()
2386 opline->op2.num = CG(active_op_array)->cache_size; in zend_emit_return_type_check()
2389 opline->op2.num = -1; in zend_emit_return_type_check()
2511 opline->op2.constant = zend_add_class_name_literal(CG(active_op_array), in zend_compile_class_ref()
2752 convert_to_string(CT_CONSTANT(opline->op2)); in zend_delayed_compile_prop()
2753 zend_alloc_polymorphic_cache_slot(opline->op2.constant); in zend_delayed_compile_prop()
2798 opline->op2.constant = zend_add_class_name_literal( in zend_compile_static_prop_common()
2801 SET_NODE(opline->op2, &class_node); in zend_compile_static_prop_common()
3166 opline->op2.num = arg_count; in zend_compile_args()
3247 opline->op2.opline_num = arg_num; in zend_compile_args()
3326 opline->op2.constant = zend_add_ns_func_name_literal( in zend_compile_ns_call()
3328 zend_alloc_cache_slot(opline->op2.constant); in zend_compile_ns_call()
3348 opline->op2.constant = zend_add_func_name_literal(CG(active_op_array), method); in zend_compile_dynamic_call()
3349 zend_alloc_cache_slot(opline->op2.constant); in zend_compile_dynamic_call()
3357 opline->op2.constant = zend_add_func_name_literal(CG(active_op_array), str); in zend_compile_dynamic_call()
3358 zend_alloc_cache_slot(opline->op2.constant); in zend_compile_dynamic_call()
3539 LITERAL_STR(opline->op2, lcname); in zend_try_compile_ct_bound_init_user_func()
3540 zend_alloc_cache_slot(opline->op2.constant); in zend_try_compile_ct_bound_init_user_func()
3600 opline->op2.num = i; in zend_compile_func_cuf()
3626 opline->op2.constant = zend_add_ns_func_name_literal( in zend_compile_assert()
3629 zend_alloc_cache_slot(opline->op2.constant); in zend_compile_assert()
3643 opline->op2.opline_num = get_next_op_number(CG(active_op_array)); in zend_compile_assert()
3776 zend_alloc_cache_slot(opline->op2.constant); in zend_compile_call()
3808 opline->op2.constant = zend_add_func_name_literal(CG(active_op_array), in zend_compile_method_call()
3810 zend_alloc_polymorphic_cache_slot(opline->op2.constant); in zend_compile_method_call()
3812 SET_NODE(opline->op2, &method_node); in zend_compile_method_call()
3818 zend_string *lcname = Z_STR_P(CT_CONSTANT(opline->op2) + 1); in zend_compile_method_call()
3869 opline->op2.constant = zend_add_func_name_literal(CG(active_op_array), in zend_compile_static_call()
3872 zend_alloc_cache_slot(opline->op2.constant); in zend_compile_static_call()
3874 zend_alloc_polymorphic_cache_slot(opline->op2.constant); in zend_compile_static_call()
3877 SET_NODE(opline->op2, &method_node); in zend_compile_static_call()
3897 zend_string *lcname = Z_STR_P(CT_CONSTANT(opline->op2) + 1); in zend_compile_static_call()
3949 opline->op2.opline_num = get_next_op_number(CG(active_op_array)); in zend_compile_new()
3980 zend_alloc_cache_slot(opline->op2.constant); in zend_compile_global_var()
4105 SET_NODE(opline->op2, return_value); in zend_handle_loops_and_finally_ex()
4107 SET_UNUSED(opline->op2); in zend_handle_loops_and_finally_ex()
4115 SET_UNUSED(opline->op2); in zend_handle_loops_and_finally_ex()
4132 SET_UNUSED(opline->op2); in zend_handle_loops_and_finally_ex()
4133 opline->op2.num = loop_var->u.live_range_offset; in zend_handle_loops_and_finally_ex()
4298 opline->op2.num = depth; in zend_compile_break_continue()
4309 label = CT_CONSTANT_EX(op_array, opline->op2.constant); in zend_resolve_goto_label()
4351 SET_UNUSED(opline->op2); in zend_resolve_goto_label()
4550 SET_NODE(opline->op2, &value_node); in zend_compile_foreach()
4553 opline->op2.var = get_temporary_variable(CG(active_op_array)); in zend_compile_foreach()
4554 GET_NODE(&value_node, opline->op2); in zend_compile_foreach()
4573 opline->op2.opline_num = get_next_op_number(CG(active_op_array)); in zend_compile_foreach()
4707 SET_UNUSED(opline->op2); in zend_compile_switch()
4807 opline->op2.var = lookup_cv(CG(active_op_array), zend_string_copy(Z_STR_P(var_name))); in zend_compile_try()
4873 opline->op2.num = orig_try_catch_offset; in zend_compile_try()
5262 zend_alloc_cache_slot(opline->op2.constant); in zend_compile_params()
5264 Z_CACHE_SLOT(op_array->literals[opline->op2.constant]) = -1; in zend_compile_params()
5268 opline->op2.num = op_array->cache_size; in zend_compile_params()
5271 opline->op2.num = -1; in zend_compile_params()
5276 Z_CACHE_SLOT(op_array->literals[opline->op2.constant]) = -1; in zend_compile_params()
5278 opline->op2.num = -1; in zend_compile_params()
5316 opline->op2.var = lookup_cv(CG(active_op_array), zend_string_copy(var_name)); in zend_compile_closure_binding()
5566 SET_UNUSED(opline->op2); in zend_begin_func_decl()
5857 opline->op2.constant = zend_add_class_name_literal(CG(active_op_array), in zend_compile_use_trait()
5899 opline->op2.constant = zend_add_class_name_literal(CG(active_op_array), in zend_compile_implements()
6002 SET_NODE(opline->op2, &extends_node); in zend_compile_class_decl()
6021 SET_NODE(opline->op2, &extends_node); in zend_compile_class_decl()
6024 SET_UNUSED(opline->op2); in zend_compile_class_decl()
6532 …_bool zend_binary_op_produces_numeric_string_error(uint32_t opcode, zval *op1, zval *op2) /* {{{ */ in zend_binary_op_produces_numeric_string_error() argument
6543 && Z_TYPE_P(op1) == IS_STRING && Z_TYPE_P(op2) == IS_STRING) { in zend_binary_op_produces_numeric_string_error()
6552 if (Z_TYPE_P(op2) == IS_STRING in zend_binary_op_produces_numeric_string_error()
6553 && !is_numeric_string(Z_STRVAL_P(op2), Z_STRLEN_P(op2), NULL, NULL, 0)) { in zend_binary_op_produces_numeric_string_error()
6561 …zend_bool zend_try_ct_eval_binary_op(zval *result, uint32_t opcode, zval *op1, zval *op2) /* {{{ */ in zend_try_ct_eval_binary_op() argument
6567 zval_get_long(op2) == 0) { in zend_try_ct_eval_binary_op()
6570 zval_get_long(op2) < 0) { in zend_try_ct_eval_binary_op()
6575 if (zend_binary_op_produces_numeric_string_error(opcode, op1, op2)) { in zend_try_ct_eval_binary_op()
6579 fn(result, op1, op2); in zend_try_ct_eval_binary_op()
6599 static inline void zend_ct_eval_greater(zval *result, zend_ast_kind kind, zval *op1, zval *op2) /* … in zend_ct_eval_greater() argument
6603 fn(result, op2, op1); in zend_ct_eval_greater()
7007 opline->op2.opline_num = get_next_op_number(CG(active_op_array)); in zend_compile_coalesce()
7116 opline->op2.constant = zend_add_class_name_literal( in zend_compile_instanceof()
7119 SET_NODE(opline->op2, &class_node); in zend_compile_instanceof()
7342 opline->op2.constant = zend_add_const_name_literal( in zend_compile_const()
7348 opline->op2.constant = zend_add_const_name_literal( in zend_compile_const()
7351 opline->op2.constant = zend_add_const_name_literal( in zend_compile_const()
7355 zend_alloc_cache_slot(opline->op2.constant); in zend_compile_const()
7408 zend_alloc_cache_slot(opline->op2.constant); in zend_compile_class_const()
7410 zend_alloc_polymorphic_cache_slot(opline->op2.constant); in zend_compile_class_const()
7460 SET_NODE(opline->op2, elem_node); in zend_compile_rope_add()
7522 GET_NODE(result, opline->op2); in zend_compile_encaps_list()
7528 opline->op1 = opline->op2; in zend_compile_encaps_list()
7531 SET_UNUSED(opline->op2); in zend_compile_encaps_list()
7538 opline->op1 = init_opline->op2; in zend_compile_encaps_list()