Lines Matching refs:op
33 #define CONSTANT_EX(op_array, op) \ argument
34 (op_array)->literals[op].constant
36 #define CONSTANT(op) \ argument
37 CONSTANT_EX(CG(active_op_array), op)
44 target = (src)->u.op; \
53 (target)->u.op = src; \
541 #define LITERAL_STRINGL(op, str, len, copy) do { \ argument
544 op.constant = zend_add_literal(CG(active_op_array), &_c TSRMLS_CC); \
547 #define LITERAL_LONG(op, val) do { \ argument
550 op.constant = zend_add_literal(CG(active_op_array), &_c TSRMLS_CC); \
553 #define LITERAL_LONG_EX(op_array, op, val) do { \ argument
556 op.constant = zend_add_literal(op_array, &_c TSRMLS_CC); \
559 #define LITERAL_NULL(op) do { \ argument
562 op.constant = zend_add_literal(CG(active_op_array), &_c TSRMLS_CC); \
573 void zend_do_binary_op(zend_uchar op, znode *result, const znode *op1, const znode *op2 TSRMLS_DC) … in zend_do_binary_op() argument
577 opline->opcode = op; in zend_do_binary_op()
586 void zend_do_unary_op(zend_uchar op, znode *result, const znode *op1 TSRMLS_DC) /* {{{ */ in zend_do_unary_op() argument
590 opline->opcode = op; in zend_do_unary_op()
609 void zend_do_binary_assign_op(zend_uchar op, znode *result, const znode *op1, const znode *op2 TSRM… in zend_do_binary_assign_op() argument
619 last_op->opcode = op; in zend_do_binary_assign_op()
627 last_op->opcode = op; in zend_do_binary_assign_op()
641 opline->opcode = op; in zend_do_binary_assign_op()
650 void fetch_simple_variable_ex(znode *result, znode *varname, int bp, zend_uchar op TSRMLS_DC) /* {{… in fetch_simple_variable_ex()
670 …result->u.op.var = lookup_cv(CG(active_op_array), varname->u.constant.value.str.val, varname->u.co… in fetch_simple_variable_ex()
671 varname->u.constant.value.str.val = (char*)CG(active_op_array)->vars[result->u.op.var].name; in fetch_simple_variable_ex()
684 opline_ptr->opcode = op; in fetch_simple_variable_ex()
736 ….op1, estrdup(CG(active_op_array)->vars[result->u.op.var].name), CG(active_op_array)->vars[result-… in zend_do_fetch_static_member()
933 opline->op1.var == value->u.op.var) { in zend_do_assign()
941 CG(active_op_array)->vars[value->u.op.var].name, in zend_do_assign()
942 CG(active_op_array)->vars[value->u.op.var].name_len, 1); in zend_do_assign()
957 if (variable->u.op.var == CG(active_op_array)->this_var) { in zend_do_assign()
969 last_op->result.var == variable->u.op.var) { in zend_do_assign()
1027 if (lvar->u.op.var == CG(active_op_array)->this_var) { in zend_do_assign_ref()
1096 close_bracket_token->u.op.opline_num = while_cond_op_number; in zend_do_while_cond()
1110 opline->op1.opline_num = while_token->u.op.opline_num; in zend_do_while_end()
1115 …CG(active_op_array)->opcodes[close_bracket_token->u.op.opline_num].op2.opline_num = get_next_op_nu… in zend_do_while_end()
1117 do_end_loop(while_token->u.op.opline_num, 0 TSRMLS_CC); in zend_do_while_end()
1130 second_semicolon_token->u.op.opline_num = for_cond_op_number; in zend_do_for_cond()
1140 opline->op1.opline_num = cond_start->u.op.opline_num; in zend_do_for_before_statement()
1141 …CG(active_op_array)->opcodes[second_semicolon_token->u.op.opline_num].extended_value = get_next_op… in zend_do_for_before_statement()
1156 opline->op1.opline_num = second_semicolon_token->u.op.opline_num+1; in zend_do_for_end()
1157 …CG(active_op_array)->opcodes[second_semicolon_token->u.op.opline_num].op2.opline_num = get_next_op… in zend_do_for_end()
1161 do_end_loop(second_semicolon_token->u.op.opline_num+1, 0 TSRMLS_CC); in zend_do_for_end()
1167 void zend_do_pre_incdec(znode *result, const znode *op1, zend_uchar op TSRMLS_DC) /* {{{ */ in zend_do_pre_incdec()
1176 last_op->opcode = (op==ZEND_PRE_INC)?ZEND_PRE_INC_OBJ:ZEND_PRE_DEC_OBJ; in zend_do_pre_incdec()
1185 opline->opcode = op; in zend_do_pre_incdec()
1194 void zend_do_post_incdec(znode *result, const znode *op1, zend_uchar op TSRMLS_DC) /* {{{ */ in zend_do_post_incdec()
1203 last_op->opcode = (op==ZEND_POST_INC)?ZEND_POST_INC_OBJ:ZEND_POST_DEC_OBJ; in zend_do_post_incdec()
1212 opline->opcode = op; in zend_do_post_incdec()
1228 closing_bracket_token->u.op.opline_num = if_cond_op_number; in zend_do_if_cond()
1251 …CG(active_op_array)->opcodes[closing_bracket_token->u.op.opline_num].op2.opline_num = if_end_op_nu… in zend_do_if_after_statement()
1325 variable->u.op.var == this_var) { in zend_do_end_variable_parse()
1327 variable->u.op.var = CG(active_op_array)->this_var; in zend_do_end_variable_parse()
1458 && opline->result.var == op1->u.op.var) { in zend_do_free()
1477 && opline->op1.var == op1->u.op.var) { in zend_do_free()
1484 && opline->result.var == op1->u.op.var) { in zend_do_free()
1529 int function_begin_line = function_token->u.op.opline_num; in zend_do_begin_function_declaration()
1769 result->u.op.var = get_temporary_variable(current_op_array); in zend_do_begin_lambda_function_declaration()
1827 void zend_do_receive_arg(zend_uchar op, znode *varname, const znode *offset, const znode *initializ… in zend_do_receive_arg() argument
1846 …var.u.op.var = lookup_cv(CG(active_op_array), varname->u.constant.value.str.val, varname->u.consta… in zend_do_receive_arg()
1847 Z_STRVAL(varname->u.constant) = (char*)CG(active_op_array)->vars[var.u.op.var].name; in zend_do_receive_arg()
1849 if (CG(active_op_array)->vars[var.u.op.var].hash_value == THIS_HASHVAL && in zend_do_receive_arg()
1856 CG(active_op_array)->this_var = var.u.op.var; in zend_do_receive_arg()
1862 opline->opcode = op; in zend_do_receive_arg()
1865 if (op == ZEND_RECV_INIT) { in zend_do_receive_arg()
1887 if (op == ZEND_RECV_INIT) { in zend_do_receive_arg()
1896 if (op == ZEND_RECV_INIT) { in zend_do_receive_arg()
1911 if (op == ZEND_RECV_INIT) { in zend_do_receive_arg()
2459 void zend_do_pass_param(znode *param, zend_uchar op, int offset TSRMLS_DC) /* {{{ */ in zend_do_pass_param() argument
2462 int original_op=op; in zend_do_pass_param()
2489 if (op == ZEND_SEND_VAR && zend_is_function_or_method_call(param)) { in zend_do_pass_param()
2491 op = ZEND_SEND_VAR_NO_REF; in zend_do_pass_param()
2495 op = ZEND_SEND_VAL; in zend_do_pass_param()
2505 if (op == ZEND_SEND_VAR && zend_is_function_or_method_call(param)) { in zend_do_pass_param()
2507 op = ZEND_SEND_VAR_NO_REF; in zend_do_pass_param()
2509 } else if (op == ZEND_SEND_VAL && (param->op_type & (IS_VAR|IS_CV))) { in zend_do_pass_param()
2510 op = ZEND_SEND_VAR_NO_REF; in zend_do_pass_param()
2513 if (op!=ZEND_SEND_VAR_NO_REF && send_by_reference==ZEND_ARG_SEND_BY_REF) { in zend_do_pass_param()
2518 op = ZEND_SEND_REF; in zend_do_pass_param()
2527 switch (op) { in zend_do_pass_param()
2546 if (op == ZEND_SEND_VAR_NO_REF) { in zend_do_pass_param()
2559 opline->opcode = op; in zend_do_pass_param()
2679 open_parentheses->u.op.opline_num = get_next_op_number(CG(active_op_array)); in zend_do_first_catch()
2700 …zend_add_catch_element(try_token->u.op.opline_num, get_next_op_number(CG(active_op_array)) TSRMLS_… in zend_initialize_try_catch_element()
2708 if (last_additional_catch->u.op.opline_num == -1) { in zend_do_mark_last_catch()
2709 CG(active_op_array)->opcodes[first_catch->u.op.opline_num].result.num = 1; in zend_do_mark_last_catch()
2710 …CG(active_op_array)->opcodes[first_catch->u.op.opline_num].extended_value = get_next_op_number(CG(… in zend_do_mark_last_catch()
2712 CG(active_op_array)->opcodes[last_additional_catch->u.op.opline_num].result.num = 1; in zend_do_mark_last_catch()
2713 …CG(active_op_array)->opcodes[last_additional_catch->u.op.opline_num].extended_value = get_next_op_… in zend_do_mark_last_catch()
2721 …try_token->u.op.opline_num = zend_add_try_element(get_next_op_number(CG(active_op_array)) TSRMLS_C… in zend_do_try()
2742 first_catch->u.op.opline_num = catch_op_number; in zend_do_begin_catch()
2754 try_token->u.op.opline_num = catch_op_number; in zend_do_begin_catch()
2772 …CG(active_op_array)->opcodes[try_token->u.op.opline_num].extended_value = get_next_op_number(CG(ac… in zend_do_end_catch()
3133 zend_op *op = ((zend_op_array *)fptr)->opcodes; in zend_get_function_declaration() local
3134 zend_op *end = op + ((zend_op_array *)fptr)->last; in zend_get_function_declaration()
3137 while (op < end) { in zend_get_function_declaration()
3138 if ((op->opcode == ZEND_RECV || op->opcode == ZEND_RECV_INIT) in zend_get_function_declaration()
3139 && op->op1.num == (long)idx) in zend_get_function_declaration()
3141 precv = op; in zend_get_function_declaration()
3143 ++op; in zend_get_function_declaration()
4292 result->u.op.ptr = method_ref; in zend_prepare_reference()
4314 trait_alias->trait_method = (zend_trait_method_reference*)method_reference->u.op.ptr; in zend_add_trait_alias()
4333 trait_precedence->trait_method = (zend_trait_method_reference*)method_reference->u.op.ptr; in zend_add_trait_precedence()
4334 trait_precedence->exclude_from_classes = (zend_class_entry**) trait_list->u.op.ptr; in zend_add_trait_precedence()
4537 op_token->u.op.opline_num = next_op_number; in zend_do_boolean_or_begin()
4553 …CG(active_op_array)->opcodes[op_token->u.op.opline_num].op2.opline_num = get_next_op_number(CG(act… in zend_do_boolean_or_end()
4572 op_token->u.op.opline_num = next_op_number; in zend_do_boolean_and_begin()
4588 …CG(active_op_array)->opcodes[op_token->u.op.opline_num].op2.opline_num = get_next_op_number(CG(act… in zend_do_boolean_and_end()
4605 opline->op2.opline_num = do_token->u.op.opline_num; in zend_do_do_while_end()
4608 do_end_loop(expr_open_bracket->u.op.opline_num, 0 TSRMLS_CC); in zend_do_do_while_end()
4614 void zend_do_brk_cont(zend_uchar op, const znode *expr TSRMLS_DC) /* {{{ */ in zend_do_brk_cont() argument
4618 opline->opcode = op; in zend_do_brk_cont()
4623 …zend_error(E_COMPILE_ERROR, "'%s' operator with non-constant operand is no longer supported", op =… in zend_do_brk_cont()
4625 …zend_error(E_COMPILE_ERROR, "'%s' operator accepts only positive numbers", op == ZEND_BRK ? "break… in zend_do_brk_cont()
4669 CG(active_op_array)->opcodes[case_list->u.op.opline_num].op1.opline_num = next_op_number; in zend_do_switch_end()
4720 case_token->u.op.opline_num = next_op_number; in zend_do_case_before_statement()
4726 CG(active_op_array)->opcodes[case_list->u.op.opline_num].op1.opline_num = next_op_number; in zend_do_case_before_statement()
4738 result->u.op.opline_num = next_op_number; in zend_do_case_after_statement()
4740 switch (CG(active_op_array)->opcodes[case_token->u.op.opline_num].opcode) { in zend_do_case_after_statement()
4742 …CG(active_op_array)->opcodes[case_token->u.op.opline_num].op1.opline_num = get_next_op_number(CG(a… in zend_do_case_after_statement()
4745 …CG(active_op_array)->opcodes[case_token->u.op.opline_num].op2.opline_num = get_next_op_number(CG(a… in zend_do_case_after_statement()
4762 default_token->u.op.opline_num = next_op_number; in zend_do_default_before_statement()
4770 CG(active_op_array)->opcodes[case_list->u.op.opline_num].op1.opline_num = next_op_number; in zend_do_default_before_statement()
4831 new_class_entry->info.user.line_start = class_token->u.op.opline_num; in zend_do_begin_class_declaration()
4865 opline->extended_value = parent_class_name->u.op.var; in zend_do_begin_class_declaration()
5169 if (object->u.op.var == CG(active_op_array)->this_var) { in zend_do_fetch_property()
5281 new_token->u.op.opline_num = get_next_op_number(CG(active_op_array)); in zend_do_begin_new_object()
5300 …CG(active_op_array)->opcodes[new_token->u.op.opline_num].op2.opline_num = get_next_op_number(CG(ac… in zend_do_end_new_object()
5301 GET_NODE(result, CG(active_op_array)->opcodes[new_token->u.op.opline_num].result); in zend_do_end_new_object()
6019 open_brackets_token->u.op.opline_num = get_next_op_number(CG(active_op_array)); in zend_do_foreach_begin()
6031 open_brackets_token->u.op.opline_num = get_next_op_number(CG(active_op_array)); in zend_do_foreach_begin()
6035 foreach_token->u.op.opline_num = get_next_op_number(CG(active_op_array)); in zend_do_foreach_begin()
6056 as_token->u.op.opline_num = get_next_op_number(CG(active_op_array)); in zend_do_foreach_begin()
6080 opline = &CG(active_op_array)->opcodes[as_token->u.op.opline_num]; in zend_do_foreach_cont()
6104 …CG(active_op_array)->opcodes[foreach_token->u.op.opline_num].extended_value |= ZEND_FE_RESET_REFER… in zend_do_foreach_cont()
6107 zend_op *fetch = &CG(active_op_array)->opcodes[foreach_token->u.op.opline_num]; in zend_do_foreach_cont()
6108 zend_op *end = &CG(active_op_array)->opcodes[open_brackets_token->u.op.opline_num]; in zend_do_foreach_cont()
6142 opline = &CG(active_op_array)->opcodes[as_token->u.op.opline_num+1]; in zend_do_foreach_cont()
6162 opline->op1.opline_num = as_token->u.op.opline_num; in zend_do_foreach_end()
6166 …CG(active_op_array)->opcodes[foreach_token->u.op.opline_num].op2.opline_num = get_next_op_number(C… in zend_do_foreach_end()
6167 …CG(active_op_array)->opcodes[as_token->u.op.opline_num].op2.opline_num = get_next_op_number(CG(act… in zend_do_foreach_end()
6169 do_end_loop(as_token->u.op.opline_num, 1 TSRMLS_CC); in zend_do_foreach_end()
6254 …if ((get_next_op_number(CG(active_op_array)) - declare_token->u.op.opline_num) - ((Z_LVAL(CG(decla… in zend_do_declare_end()
6315 jmp_token->u.op.opline_num = op_number; in zend_do_jmp_set()
6328 CG(active_op_array)->opcodes[jmp_token->u.op.opline_num].opcode = ZEND_JMP_SET_VAR; in zend_do_jmp_set_else()
6329 CG(active_op_array)->opcodes[jmp_token->u.op.opline_num].result_type = IS_VAR; in zend_do_jmp_set_else()
6344 …CG(active_op_array)->opcodes[jmp_token->u.op.opline_num].op2.opline_num = get_next_op_number(CG(ac… in zend_do_jmp_set_else()
6371 …CG(active_op_array)->opcodes[qm_token->u.op.opline_num].op2.opline_num = get_next_op_number(CG(act… in zend_do_qm_true()
6385 colon_token->u.op.opline_num = get_next_op_number(CG(active_op_array)); in zend_do_qm_true()
6401 CG(active_op_array)->opcodes[colon_token->u.op.opline_num - 1].opcode = ZEND_QM_ASSIGN_VAR; in zend_do_qm_false()
6402 CG(active_op_array)->opcodes[colon_token->u.op.opline_num - 1].result_type = IS_VAR; in zend_do_qm_false()
6414 …CG(active_op_array)->opcodes[colon_token->u.op.opline_num].op1.opline_num = get_next_op_number(CG(… in zend_do_qm_false()