Home
last modified time | relevance | path

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

123

/PHP-7.4/Zend/
H A Dzend_operators.c981 op1 = Z_REFVAL_P(op1); in add_function_slow()
1052 op1 = Z_REFVAL_P(op1); in sub_function_slow()
1126 op1 = Z_REFVAL_P(op1); in mul_function()
1219 op1 = Z_REFVAL_P(op1); in pow_function()
1326 op1 = Z_REFVAL_P(op1); in div_function()
1403 op1 = Z_REFVAL_P(op1); in boolean_xor_function()
1450 op1 = Z_REFVAL_P(op1); in boolean_not_function()
1493 op1 = Z_REFVAL_P(op1); in bitwise_not_function()
1825 op1 = Z_REFVAL_P(op1); in concat_function()
2517 op1 = Z_REFVAL_P(op1); in increment_function()
[all …]
H A Dzend_operators.h516 : "r"(&op1->value) in fast_long_increment_function()
527 : "r"(&op1->value) in fast_long_increment_function()
540 : "r"(&op1->value) in fast_long_increment_function()
567 Z_LVAL_P(op1)++; in fast_long_increment_function()
579 : "r"(&op1->value) in fast_long_decrement_function()
590 : "r"(&op1->value) in fast_long_decrement_function()
603 : "r"(&op1->value) in fast_long_decrement_function()
630 Z_LVAL_P(op1)--; in fast_long_decrement_function()
646 "r"(&op1->value), in fast_long_add_function()
664 "r"(&op1->value), in fast_long_add_function()
[all …]
H A Dzend_vm_gen.php663 if (($op1 == 'TMP' || $op1 == 'VAR') &&
665 $op1 = "TMPVAR";
666 } else if (($op1 == 'TMP' || $op1 == 'VAR') &&
673 $op1 = "ANY";
708 if (($op1 == 'TMP' || $op1 == 'VAR') &&
710 $op1 = "TMPVAR";
711 } else if (($op1 == 'TMP' || $op1 == 'VAR') &&
718 $op1 = "ANY";
1062 return (($op1 === 'UNUSED') || ($op1 === 'CV')) && ($op2 === 'CONST');
1333 if ($op1 == "TMP" || $op1 == "VAR") {
[all …]
H A Dzend_vm_execute.h2273 op1 = Z_REFVAL_P(op1); in ZEND_ADD_ARRAY_UNPACK_SPEC_HANDLER()
9735 op1 = Z_REFVAL_P(op1); in ZEND_COUNT_SPEC_CONST_UNUSED_HANDLER()
9778 op1 = Z_REFVAL_P(op1); in ZEND_GET_CLASS_SPEC_CONST_UNUSED_HANDLER()
11270 op1 = EX_VAR(opline->op1.var); in ZEND_ADD_SPEC_TMPVARCV_CONST_HANDLER()
16906 op1 = Z_REFVAL_P(op1); in ZEND_COUNT_SPEC_TMPVAR_UNUSED_HANDLER()
16949 op1 = Z_REFVAL_P(op1); in ZEND_GET_CLASS_SPEC_TMPVAR_UNUSED_HANDLER()
28005 op1 = Z_INDIRECT_P(op1); in ZEND_MAKE_REF_SPEC_VAR_UNUSED_HANDLER()
34620 op1 = Z_REFVAL_P(op1); in ZEND_GET_CLASS_SPEC_UNUSED_UNUSED_HANDLER()
46663 op1 = Z_INDIRECT_P(op1); in ZEND_MAKE_REF_SPEC_CV_UNUSED_HANDLER()
46714 op1 = Z_REFVAL_P(op1); in ZEND_COUNT_SPEC_CV_UNUSED_HANDLER()
[all …]
H A Dzend_vm_def.h997 zval *op1; variable
5765 zval *op1; variable
5858 op1 = Z_REFVAL_P(op1);
8504 zval *op1 = EX_VAR(opline->op1.var); variable
8517 zval *op1 = EX_VAR(opline->op1.var); variable
8534 op1 = Z_INDIRECT_P(op1);
8614 zval *op1; variable
8654 zval *op1; variable
8688 op1 = Z_REFVAL_P(op1);
8731 op1 = Z_REFVAL_P(op1);
[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.c477 zval op1, op2; in zend_ast_evaluate() local
515 ret = op(result, &op1); in zend_ast_evaluate()
569 if (zend_is_true(&op1)) { in zend_ast_evaluate()
580 zval_ptr_dtor_nogc(&op1); in zend_ast_evaluate()
587 if (zend_is_true(&op1)) { in zend_ast_evaluate()
598 zval_ptr_dtor_nogc(&op1); in zend_ast_evaluate()
607 *result = op1; in zend_ast_evaluate()
631 *result = op1; in zend_ast_evaluate()
645 ZVAL_LONG(&op1, 0); in zend_ast_evaluate()
654 ZVAL_LONG(&op1, 0); in zend_ast_evaluate()
[all …]
/PHP-7.4/ext/opcache/Optimizer/
H A Dsccp.c435 if (Z_TYPE_P(op1) == IS_ARRAY || IS_PARTIAL_ARRAY(op1)) { in ct_eval_fetch_dim()
458 ZVAL_BOOL(result, op1 && Z_TYPE_P(op1) != IS_NULL); in ct_eval_isset_isempty()
472 if (Z_TYPE_P(op1) == IS_ARRAY || IS_PARTIAL_ARRAY(op1)) { in ct_eval_isset_dim()
765 if (Z_TYPE_P(op1) != IS_STRING && Z_TYPE_P(op1) != IS_LONG && Z_TYPE_P(op1) != IS_NULL) { in ct_eval_array_key_exists()
1315 if (op1) { in sccp_visit_instr()
1344 if ((op1 && IS_BOT(op1)) in sccp_visit_instr()
1447 if ((op1 && IS_BOT(op1)) || (op2 && IS_BOT(op2))) { in sccp_visit_instr()
1492 if (op1) { in sccp_visit_instr()
1550 if (op1 && IS_PARTIAL_OBJECT(op1) in sccp_visit_instr()
1598 if (op1) { in sccp_visit_instr()
[all …]
H A Dpass3.c105 znode_op tmp = opline->op1; in zend_optimizer_pass3()
118 && opline->op1.var == next_opline->op1.var in zend_optimizer_pass3()
180 SAME_VAR(opline->op1, target->op1)) { in zend_optimizer_pass3()
186 SAME_VAR(opline->op1, target->op1)) { in zend_optimizer_pass3()
194 SAME_VAR(opline->op1, target->op1)) { in zend_optimizer_pass3()
200 SAME_VAR(opline->op1, target->op1)) { in zend_optimizer_pass3()
238 SAME_VAR(target->op1, T)) { in zend_optimizer_pass3()
244 SAME_VAR(target->op1, T) && in zend_optimizer_pass3()
265 SAME_VAR(opline->op1, target->op1)) { in zend_optimizer_pass3()
271 SAME_VAR(target->op1, T)) { in zend_optimizer_pass3()
[all …]
H A Dblock_pass.c191 znode_op op1 = opline->op1; in zend_optimize_block() local
194 COPY_NODE(opline->op1, src->op1); in zend_optimize_block()
289 COPY_NODE(opline->op1, src->op1); in zend_optimize_block()
511 COPY_NODE(opline->op1, src->op1); in zend_optimize_block()
519 COPY_NODE(opline->op1, src->op1); in zend_optimize_block()
632 COPY_NODE(opline->op1, src->op1); in zend_optimize_block()
662 COPY_NODE(opline->op1, src->op1); in zend_optimize_block()
697 COPY_NODE(opline->op1, src->op1); in zend_optimize_block()
726 COPY_NODE(opline->op1, src->op1); in zend_optimize_block()
871 && op->op1.var == opline->op1.var) in zend_optimize_block()
[all …]
H A Dcompact_literals.c83 uint32_t op1, in add_static_slot() argument
91 zval *class_name = &op_array->literals[op1]; in add_static_slot()
507 opline->op1.constant = map[opline->op1.constant]; in zend_optimizer_compact_literals()
538 opline->op1.constant, in zend_optimizer_compact_literals()
645 opline->op1.constant, in zend_optimizer_compact_literals()
655 if (class_slot[opline->op1.constant] >= 0) { in zend_optimizer_compact_literals()
666 if (const_slot[opline->op1.constant] >= 0) { in zend_optimizer_compact_literals()
688 opline->op1.constant, in zend_optimizer_compact_literals()
716 opline->op1.constant, in zend_optimizer_compact_literals()
750 if (class_slot[opline->op1.constant] >= 0) { in zend_optimizer_compact_literals()
[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
83 int zend_optimizer_eval_binary_op(zval *result, zend_uchar opcode, zval *op1, zval *op2);
84 int zend_optimizer_eval_unary_op(zval *result, zend_uchar opcode, zval *op1);
85 int zend_optimizer_eval_cast(zval *result, uint32_t type, zval *op1);
86 int zend_optimizer_eval_strlen(zval *result, zval *op1);
H A Dzend_optimizer.c87 if (Z_TYPE_P(op1) == IS_ARRAY in zend_optimizer_eval_binary_op()
117 && Z_TYPE_P(op1) != IS_LONG in zend_optimizer_eval_unary_op()
118 && Z_TYPE_P(op1) != IS_DOUBLE in zend_optimizer_eval_unary_op()
123 return unary_op(result, op1); in zend_optimizer_eval_unary_op()
149 if (Z_TYPE_P(op1) != IS_ARRAY && Z_TYPE_P(op1) != IS_DOUBLE) { in zend_optimizer_eval_cast()
155 ZVAL_COPY(result, op1); in zend_optimizer_eval_cast()
563 opline->op1.var == var) { in zend_optimizer_replace_by_const()
603 m->op1.var == var) { in zend_optimizer_replace_by_const()
783 zval *op1 = CRT_CONSTANT_EX(op_array, opline, opline->op1, rt_constants); in get_class_entry_from_op1() local
1128 opline->op1.jmp_addr = &op_array->opcodes[opline->op1.jmp_addr - old_opcodes]; in zend_redo_pass_two()
[all …]
H A Ddfa_pass.c487 call_info->caller_call_opline->op1.num = send_needly->op1.num; in zend_dfa_optimize_calls()
745 COPY_NODE(opline->op1, opline->op2); in zend_dfa_optimize_jmps()
771 COPY_NODE(opline->op1, opline->op2); in zend_dfa_optimize_jmps()
834 opline->op1.num = opline->op2.num; in zend_dfa_optimize_jmps()
900 COPY_NODE(opline->op1, opline->op2); in zend_dfa_optimize_jmps()
928 SET_UNUSED(opline->op1); in zend_dfa_optimize_jmps()
957 SET_UNUSED(opline->op1); in zend_dfa_optimize_jmps()
1186 src_var, opline->op1.var) in zend_dfa_optimize_op_array()
1237 opline->result.var = opline->op1.var; in zend_dfa_optimize_op_array()
1239 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()
271 opline->op1.var == (opline-1)->result.var) { in place_essa_pis()
279 var1 = EX_VAR_TO_NUM((opline-1)->op1.var); in place_essa_pis()
421 int var = EX_VAR_TO_NUM((opline-1)->op1.var); in place_essa_pis()
443 int var = EX_VAR_TO_NUM((opline-1)->op1.var); in place_essa_pis()
454 int var = EX_VAR_TO_NUM((opline-1)->op1.var); in place_essa_pis()
473 var = EX_VAR_TO_NUM((opline-1)->op1.var); in place_essa_pis()
[all …]
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 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) in DEFINE_SSA_OP_INFO()
H A Doptimize_func_calls.c34 Z_TYPE(op_array->literals[(opline)->op1.constant]) == IS_STRING)
145 ZVAL_COPY(&zv, RT_CONSTANT(ret_opline, ret_opline->op1)); in zend_try_inline_call()
148 opline->op1.constant = zend_optimizer_add_literal(op_array, &zv); in zend_try_inline_call()
203 fcall->op1.num = zend_vm_calc_used_stack(fcall->extended_value, call_stack[call].func); in zend_optimize_func_calls()
209 fcall->op1.num = zend_vm_calc_used_stack(fcall->extended_value, call_stack[call].func); in zend_optimize_func_calls()
H A Dpass1_5.c201 Z_STR(op_array->literals[opline->op1.constant + 1]))) == NULL || in zend_optimizer_pass1()
211 (opline->op1.num & ZEND_FETCH_CLASS_MASK) == ZEND_FETCH_CLASS_SELF) { in zend_optimizer_pass1()
218 ((opline - 1)->op1.num & ZEND_FETCH_CLASS_MASK) == ZEND_FETCH_CLASS_SELF) && in zend_optimizer_pass1()
219 (opline - 1)->result.var == opline->op1.var) { in zend_optimizer_pass1()
321 opline->op1.constant = send1_opline->op1.constant; in zend_optimizer_pass1()
322 opline->op2.constant = send2_opline->op1.constant; in zend_optimizer_pass1()
537 (opline + 1)->op1.var == opline->result.var && in zend_optimizer_pass1()
552 (opline + 1)->op1 = (opline + 1)->op2; in zend_optimizer_pass1()
H A Doptimize_temp_vars_5.c82 currT = VAR_NUM(opline->op1.var) - offset; in zend_optimize_temporary_variables()
96 opline->op1.var = NUM_VAR(var + offset); in zend_optimize_temporary_variables()
138 opline->op1.var = NUM_VAR(map_T[currT] + offset); in zend_optimize_temporary_variables()
H A Dpass2.c144 opline->op1.var == opline->result.var) { in zend_optimizer_pass2()
175 COPY_NODE(opline->op1, opline->op2); in zend_optimizer_pass2()
217 ZEND_SET_OP_JMP_ADDR(opline, opline->op1, target_opline); in zend_optimizer_pass2()
/PHP-7.4/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.4/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 242 milliseconds

123