Home
last modified time | relevance | path

Searched refs:op1 (Results 1 – 25 of 52) sorted by relevance

123

/PHP-7.3/Zend/
H A Dzend_operators.c950 op1 = Z_REFVAL_P(op1); in add_function_slow()
1021 op1 = Z_REFVAL_P(op1); in sub_function_slow()
1095 op1 = Z_REFVAL_P(op1); in mul_function()
1188 op1 = Z_REFVAL_P(op1); in pow_function()
1292 op1 = Z_REFVAL_P(op1); in div_function()
1369 op1 = Z_REFVAL_P(op1); in boolean_xor_function()
1416 op1 = Z_REFVAL_P(op1); in boolean_not_function()
1459 op1 = Z_REFVAL_P(op1); in bitwise_not_function()
1790 op1 = Z_REFVAL_P(op1); in concat_function()
2506 op1 = Z_REFVAL_P(op1); in increment_function()
[all …]
H A Dzend_operators.h479 : "r"(&op1->value) in fast_long_increment_function()
490 : "r"(&op1->value) in fast_long_increment_function()
502 Z_LVAL_P(op1) = lresult; in fast_long_increment_function()
517 Z_LVAL_P(op1)++; in fast_long_increment_function()
529 : "r"(&op1->value) in fast_long_decrement_function()
540 : "r"(&op1->value) in fast_long_decrement_function()
567 Z_LVAL_P(op1)--; in fast_long_decrement_function()
583 "r"(&op1->value), in fast_long_add_function()
601 "r"(&op1->value), in fast_long_add_function()
673 "r"(&op1->value), in fast_long_sub_function()
[all …]
H A Dzend_vm_gen.php636 if (($op1 == 'TMP' || $op1 == 'VAR') &&
638 $op1 = "TMPVAR";
639 } else if (($op1 == 'TMP' || $op1 == 'VAR') &&
646 $op1 = "ANY";
679 if (($op1 == 'TMP' || $op1 == 'VAR') &&
681 $op1 = "TMPVAR";
682 } else if (($op1 == 'TMP' || $op1 == 'VAR') &&
689 $op1 = "ANY";
807 $op1_type[$op1],
809 $op1_free[$op1],
[all …]
H A Dzend_vm_execute.h11157 op1 = EX_VAR(opline->op1.var);
11169 op1 = EX_VAR(opline->op1.var);
11181 op1 = EX_VAR(opline->op1.var);
11193 op1 = EX_VAR(opline->op1.var);
11205 op1 = EX_VAR(opline->op1.var);
11217 op1 = EX_VAR(opline->op1.var);
11229 op1 = EX_VAR(opline->op1.var);
11242 op1 = EX_VAR(opline->op1.var);
11255 op1 = EX_VAR(opline->op1.var);
27928 op1 = Z_INDIRECT_P(op1);
[all …]
H A Dzend_vm_def.h58 op1 = GET_OP1_UNDEF_CV(op1, BP_VAR_R);
101 op1 = GET_OP1_UNDEF_CV(op1, BP_VAR_R);
147 op1 = GET_OP1_UNDEF_CV(op1, BP_VAR_R);
208 op1 = GET_OP1_UNDEF_CV(op1, BP_VAR_R);
236 op1 = GET_OP1_UNDEF_CV(op1, BP_VAR_R);
264 op1 = GET_OP1_UNDEF_CV(op1, BP_VAR_R);
340 op1 = GET_OP1_UNDEF_CV(op1, BP_VAR_R);
433 op1 = GET_OP1_UNDEF_CV(op1, BP_VAR_R);
491 op1 = GET_OP1_UNDEF_CV(op1, BP_VAR_R);
541 op1 = GET_OP1_UNDEF_CV(op1, BP_VAR_R);
[all …]
H A Dzend_ini_parser.y67 static void zend_ini_do_op(char type, zval *result, zval *op1, zval *op2) in zend_ini_do_op() argument
74 i_op1 = get_int_val(op1); in zend_ini_do_op()
117 static void zend_ini_add_string(zval *result, zval *op1, zval *op2) in zend_ini_add_string() argument
121 if (Z_TYPE_P(op1) != IS_STRING) { in zend_ini_add_string()
125 zend_string *str = zval_get_tmp_string(op1, &tmp_str); in zend_ini_add_string()
126 ZVAL_PSTRINGL(op1, ZSTR_VAL(str), ZSTR_LEN(str)); in zend_ini_add_string()
129 ZVAL_STR(op1, zval_get_string_func(op1)); in zend_ini_add_string()
132 op1_len = (int)Z_STRLEN_P(op1); in zend_ini_add_string()
139 ZVAL_NEW_STR(result, zend_string_extend(Z_STR_P(op1), length, ZEND_SYSTEM_INI)); in zend_ini_add_string()
H A Dzend_ast.c441 zval op1, op2; in zend_ast_evaluate() local
479 ret = op(result, &op1); in zend_ast_evaluate()
516 if (zend_is_true(&op1)) { in zend_ast_evaluate()
527 zval_ptr_dtor_nogc(&op1); in zend_ast_evaluate()
534 if (zend_is_true(&op1)) { in zend_ast_evaluate()
545 zval_ptr_dtor_nogc(&op1); in zend_ast_evaluate()
554 *result = op1; in zend_ast_evaluate()
578 *result = op1; in zend_ast_evaluate()
592 ZVAL_LONG(&op1, 0); in zend_ast_evaluate()
601 ZVAL_LONG(&op1, 0); in zend_ast_evaluate()
[all …]
H A Dzend_opcode.c480 int array_offset = opline->op1.num; in zend_get_brk_cont_target()
569 opline->op1.opline_num = op_array->try_catch_array[opline->op1.num].finally_op; in pass_two()
570 ZEND_PASS_TWO_UPDATE_JMP_TARGET(op_array, opline, opline->op1); in pass_two()
581 opline->op1.opline_num = jmp_target; in pass_two()
583 ZEND_PASS_TWO_UPDATE_JMP_TARGET(op_array, opline, opline->op1); in pass_two()
589 zend_check_finally_breakout(op_array, opline - op_array->opcodes, opline->op1.opline_num); in pass_two()
593 ZEND_PASS_TWO_UPDATE_JMP_TARGET(op_array, opline, opline->op1); in pass_two()
655 ZEND_PASS_TWO_UPDATE_CONSTANT(op_array, opline, opline->op1); in pass_two()
657 …opline->op1.var = (uint32_t)(zend_intptr_t)ZEND_CALL_VAR_NUM(NULL, op_array->last_var + opline->op… in pass_two()
/PHP-7.3/ext/opcache/Optimizer/
H A Dsccp.c446 if (Z_TYPE_P(op1) == IS_ARRAY || IS_PARTIAL_ARRAY(op1)) { in ct_eval_fetch_dim()
469 ZVAL_BOOL(result, op1 && Z_TYPE_P(op1) != IS_NULL); in ct_eval_isset_isempty()
483 if (Z_TYPE_P(op1) == IS_ARRAY || IS_PARTIAL_ARRAY(op1)) { in ct_eval_isset_dim()
1278 if (op1) { in sccp_visit_instr()
1308 if ((op1 && IS_BOT(op1)) in sccp_visit_instr()
1376 if ((op1 && IS_BOT(op1)) || (op2 && IS_BOT(op2))) { in sccp_visit_instr()
1429 if (op1) { in sccp_visit_instr()
1489 if (op1 && IS_PARTIAL_OBJECT(op1) in sccp_visit_instr()
1537 if (op1) { in sccp_visit_instr()
1681 if (op1) { in sccp_visit_instr()
[all …]
H A Dpass3.c105 znode_op tmp = opline->op1; in zend_optimizer_pass3()
117 && opline->op1.var == next_opline->op1.var in zend_optimizer_pass3()
215 SAME_VAR(opline->op1, target->op1)) { in zend_optimizer_pass3()
221 SAME_VAR(opline->op1, target->op1)) { in zend_optimizer_pass3()
229 SAME_VAR(opline->op1, target->op1)) { in zend_optimizer_pass3()
235 SAME_VAR(opline->op1, target->op1)) { in zend_optimizer_pass3()
273 SAME_VAR(target->op1, T)) { in zend_optimizer_pass3()
279 SAME_VAR(target->op1, T) && in zend_optimizer_pass3()
300 SAME_VAR(opline->op1, target->op1)) { in zend_optimizer_pass3()
306 SAME_VAR(target->op1, T)) { in zend_optimizer_pass3()
[all …]
H A Dblock_pass.c185 znode_op op1 = opline->op1; in zend_optimize_block() local
189 COPY_NODE(opline->op1, src->op1); in zend_optimize_block()
287 COPY_NODE(opline->op1, src->op1); in zend_optimize_block()
508 COPY_NODE(opline->op1, src->op1); in zend_optimize_block()
516 COPY_NODE(opline->op1, src->op1); in zend_optimize_block()
629 COPY_NODE(opline->op1, src->op1); in zend_optimize_block()
659 COPY_NODE(opline->op1, src->op1); in zend_optimize_block()
694 COPY_NODE(opline->op1, src->op1); in zend_optimize_block()
723 COPY_NODE(opline->op1, src->op1); in zend_optimize_block()
868 && op->op1.var == opline->op1.var) in zend_optimize_block()
[all …]
H A Dzend_optimizer_internal.h28 #define ZEND_OP1_LITERAL(opline) (op_array)->literals[(opline)->op1.constant]
29 #define ZEND_OP1_JMP_ADDR(opline) OP_JMP_ADDR(opline, (opline)->op1)
42 #define SAME_VAR(op1, op2) (op1 ## _type == op2 ## _type && op1.var == op2.var) argument
78 int zend_optimizer_eval_binary_op(zval *result, zend_uchar opcode, zval *op1, zval *op2);
79 int zend_optimizer_eval_unary_op(zval *result, zend_uchar opcode, zval *op1);
80 int zend_optimizer_eval_cast(zval *result, uint32_t type, zval *op1);
81 int zend_optimizer_eval_strlen(zval *result, zval *op1);
H A Dcompact_literals.c82 uint32_t op1, in add_static_slot() argument
90 zval *class_name = &op_array->literals[op1]; in add_static_slot()
522 opline->op1.constant = map[opline->op1.constant]; in zend_optimizer_compact_literals()
649 opline->op1.constant, in zend_optimizer_compact_literals()
659 if (class_slot[opline->op1.constant] >= 0) { in zend_optimizer_compact_literals()
670 if (const_slot[opline->op1.constant] >= 0) { in zend_optimizer_compact_literals()
692 opline->op1.constant, in zend_optimizer_compact_literals()
713 opline->op1.constant, in zend_optimizer_compact_literals()
737 opline->op1.constant, in zend_optimizer_compact_literals()
771 if (class_slot[opline->op1.constant] >= 0) { in zend_optimizer_compact_literals()
[all …]
H A Dzend_optimizer.c106 if (Z_TYPE_P(op1) == IS_ARRAY in zend_optimizer_eval_binary_op()
136 && Z_TYPE_P(op1) != IS_LONG in zend_optimizer_eval_unary_op()
142 return unary_op(result, op1); in zend_optimizer_eval_unary_op()
168 if (Z_TYPE_P(op1) != IS_ARRAY && Z_TYPE_P(op1) != IS_DOUBLE) { in zend_optimizer_eval_cast()
174 ZVAL_COPY(result, op1); in zend_optimizer_eval_cast()
708 opline->op1.var == var) { in zend_optimizer_replace_by_const()
748 m->op1.var == var) { in zend_optimizer_replace_by_const()
799 m->op1.var == var) { in zend_optimizer_replace_by_const()
963 zval *op1 = CRT_CONSTANT_EX(op_array, opline, opline->op1, rt_constants); in get_class_entry_from_op1() local
1289 opline->op1.jmp_addr = &op_array->opcodes[opline->op1.jmp_addr - old_opcodes]; in zend_redo_pass_two()
[all …]
H A Ddfa_pass.c365 return opline->op1_type != IS_CV || opline->op1.var != cv_var; in opline_supports_assign_contraction()
482 call_info->caller_call_opline->op1.num = send_needly->op1.num; in zend_dfa_optimize_calls()
729 COPY_NODE(opline->op1, opline->op2); in zend_dfa_optimize_jmps()
755 COPY_NODE(opline->op1, opline->op2); in zend_dfa_optimize_jmps()
818 opline->op1.num = opline->op2.num; in zend_dfa_optimize_jmps()
887 COPY_NODE(opline->op1, opline->op2); in zend_dfa_optimize_jmps()
1087 src_var, opline->op1.var) in zend_dfa_optimize_op_array()
1110 op_array->opcodes[op_2].result.var = opline->op1.var; in zend_dfa_optimize_op_array()
1138 opline->result.var = opline->op1.var; in zend_dfa_optimize_op_array()
1140 opline->op1.var = opline->op2.var; in zend_dfa_optimize_op_array()
[all …]
H A Dzend_ssa.c186 return EX_VAR_TO_NUM(op->op1.var); in find_adjusted_tmp_var()
191 return EX_VAR_TO_NUM(op->op1.var); in find_adjusted_tmp_var()
199 return EX_VAR_TO_NUM(op->op1.var); in find_adjusted_tmp_var()
214 return EX_VAR_TO_NUM(op->op1.var); in find_adjusted_tmp_var()
272 opline->op1.var == (opline-1)->result.var) { in place_essa_pis()
280 var1 = EX_VAR_TO_NUM((opline-1)->op1.var); in place_essa_pis()
422 int var = EX_VAR_TO_NUM((opline-1)->op1.var); in place_essa_pis()
444 int var = EX_VAR_TO_NUM((opline-1)->op1.var); in place_essa_pis()
455 int var = EX_VAR_TO_NUM((opline-1)->op1.var); in place_essa_pis()
474 var = EX_VAR_TO_NUM((opline-1)->op1.var); in place_essa_pis()
[all …]
H A Dzend_inference.h139 DEFINE_SSA_OP_HAS_RANGE(op1)
140 DEFINE_SSA_OP_MIN_RANGE(op1) in DEFINE_SSA_OP_MIN_RANGE() argument
141 DEFINE_SSA_OP_MAX_RANGE(op1) in DEFINE_SSA_OP_MIN_RANGE()
142 DEFINE_SSA_OP_RANGE_UNDERFLOW(op1) in DEFINE_SSA_OP_MIN_RANGE()
143 DEFINE_SSA_OP_RANGE_OVERFLOW(op1) in DEFINE_SSA_OP_MIN_RANGE()
223 DEFINE_SSA_OP_INFO(op1)
226 DEFINE_SSA_OP_DEF_INFO(op1)
H A Doptimize_func_calls.c34 Z_TYPE(op_array->literals[(opline)->op1.constant]) == IS_STRING)
137 ZVAL_COPY(&zv, RT_CONSTANT(ret_opline, ret_opline->op1)); in zend_try_inline_call()
140 opline->op1.constant = zend_optimizer_add_literal(op_array, &zv); in zend_try_inline_call()
195 fcall->op1.num = zend_vm_calc_used_stack(fcall->extended_value, call_stack[call].func); in zend_optimize_func_calls()
201 fcall->op1.num = zend_vm_calc_used_stack(fcall->extended_value, call_stack[call].func); in zend_optimize_func_calls()
H A Dpass2.c137 opline->op1.var == opline->result.var) { in zend_optimizer_pass2()
168 COPY_NODE(opline->op1, opline->op2); in zend_optimizer_pass2()
210 ZEND_SET_OP_JMP_ADDR(opline, opline->op1, target_opline); in zend_optimizer_pass2()
H A Dcompact_vars.c40 zend_bitset_incl(used_vars, VAR_NUM(opline->op1.var)); in zend_optimizer_compact_vars()
88 opline->op1.var = NUM_VAR(vars_map[VAR_NUM(opline->op1.var)]); in zend_optimizer_compact_vars()
H A Dpass1_5.c200 Z_STR(op_array->literals[opline->op1.constant + 1]))) == NULL || in zend_optimizer_pass1()
210 (opline->op1.num & ZEND_FETCH_CLASS_MASK) == ZEND_FETCH_CLASS_SELF) { in zend_optimizer_pass1()
217 ((opline - 1)->op1.num & ZEND_FETCH_CLASS_MASK) == ZEND_FETCH_CLASS_SELF) && in zend_optimizer_pass1()
218 (opline - 1)->result.var == opline->op1.var) { in zend_optimizer_pass1()
320 opline->op1.constant = send1_opline->op1.constant; in zend_optimizer_pass1()
321 opline->op2.constant = send2_opline->op1.constant; in zend_optimizer_pass1()
/PHP-7.3/Zend/tests/
H A Dbug37046.phpt11 echo "op1 $k\n";
20 op1 0
23 op1 1
H A Dpow_array_leak.phpt2 Memory leak on ** with result==op1 array
/PHP-7.3/ext/intl/collator/
H A Dcollator_sort.c53 static int collator_regular_compare_function(zval *result, zval *op1, zval *op2) in collator_regular_compare_function() argument
65 str1_p = collator_convert_object_to_string( op1, &str1 ); in collator_regular_compare_function()
151 static int collator_numeric_compare_function(zval *result, zval *op1, zval *op2) in collator_numeric_compare_function() argument
157 if( Z_TYPE_P(op1) == IS_STRING ) in collator_numeric_compare_function()
159 num1_p = collator_convert_string_to_double( op1, &num1 ); in collator_numeric_compare_function()
160 op1 = num1_p; in collator_numeric_compare_function()
169 ZVAL_LONG(result, numeric_compare_function(op1, op2)); in collator_numeric_compare_function()
183 static int collator_icu_compare_function(zval *result, zval *op1, zval *op2) in collator_icu_compare_function() argument
191 str1_p = collator_make_printable_zval( op1, &str1); in collator_icu_compare_function()
H A Dcollator_sort.h23 typedef int (*collator_compare_func_t)( zval *result, zval *op1, zval *op2 );

Completed in 294 milliseconds

123