/PHP-7.2/Zend/ |
H A D | zend_operators.h | 469 : "r"(&op1->value), in fast_long_increment_function() 482 : "r"(&op1->value), in fast_long_increment_function() 491 Z_LVAL_P(op1)++; in fast_long_increment_function() 523 : "r"(&op1->value), in fast_long_decrement_function() 536 : "r"(&op1->value), in fast_long_decrement_function() 545 Z_LVAL_P(op1)--; in fast_long_decrement_function() 586 "r"(&op1->value), in fast_long_add_function() 609 "r"(&op1->value), in fast_long_add_function() 693 "r"(&op1->value), in fast_long_sub_function() 720 "r"(&op1->value), in fast_long_sub_function() [all …]
|
H A D | zend_operators.c | 932 op1 = Z_REFVAL_P(op1); in add_function() 982 op1 = Z_REFVAL_P(op1); in sub_function() 1037 op1 = Z_REFVAL_P(op1); in mul_function() 1123 op1 = Z_REFVAL_P(op1); in pow_function() 1220 op1 = Z_REFVAL_P(op1); in div_function() 1291 op1 = Z_REFVAL_P(op1); in boolean_xor_function() 1338 op1 = Z_REFVAL_P(op1); in boolean_not_function() 1381 op1 = Z_REFVAL_P(op1); in bitwise_not_function() 1710 op1 = Z_REFVAL_P(op1); in concat_function() 2424 op1 = Z_REFVAL_P(op1); in increment_function() [all …]
|
H A D | zend_vm_execute.h | 2633 op1 = EX_CONSTANT(opline->op1); 4124 op1 = EX_CONSTANT(opline->op1); 4167 op1 = EX_CONSTANT(opline->op1); 4210 op1 = EX_CONSTANT(opline->op1); 4257 op1 = EX_CONSTANT(opline->op1); 4271 op1 = EX_CONSTANT(opline->op1); 4310 op1 = EX_CONSTANT(opline->op1); 4338 op1 = EX_CONSTANT(opline->op1); 4367 op1 = EX_CONSTANT(opline->op1); 21747 op1 = Z_INDIRECT_P(op1); [all …]
|
H A D | zend_vm_gen.php | 637 $op1 = "ANY"; 660 $op1 = "ANY"; 759 $op1_type[$op1], 761 $op1_free[$op1], 783 $op1_free_op[$op1], 1129 if ($op1 != "ANY") { 1131 if ($op1 == "TMP" || $op1 == "VAR") { 1137 $op1 = "ANY"; 1143 $op1 = "ANY"; 1146 $do($op1, "ANY"); [all …]
|
H A D | zend_vm_def.h | 60 op1 = GET_OP1_UNDEF_CV(op1, BP_VAR_R); 103 op1 = GET_OP1_UNDEF_CV(op1, BP_VAR_R); 149 op1 = GET_OP1_UNDEF_CV(op1, BP_VAR_R); 203 op1 = GET_OP1_UNDEF_CV(op1, BP_VAR_R); 231 op1 = GET_OP1_UNDEF_CV(op1, BP_VAR_R); 259 op1 = GET_OP1_UNDEF_CV(op1, BP_VAR_R); 337 op1 = GET_OP1_UNDEF_CV(op1, BP_VAR_R); 440 op1 = GET_OP1_UNDEF_CV(op1, BP_VAR_R); 508 op1 = GET_OP1_UNDEF_CV(op1, BP_VAR_R); 558 op1 = GET_OP1_UNDEF_CV(op1, BP_VAR_R); [all …]
|
H A D | zend_ini_parser.y | 69 static void zend_ini_do_op(char type, zval *result, zval *op1, zval *op2) in zend_ini_do_op() argument 76 i_op1 = get_int_val(op1); in zend_ini_do_op() 119 static void zend_ini_add_string(zval *result, zval *op1, zval *op2) in zend_ini_add_string() argument 123 if (Z_TYPE_P(op1) != IS_STRING) { in zend_ini_add_string() 124 zend_string *str = zval_get_string(op1); in zend_ini_add_string() 127 ZVAL_PSTRINGL(op1, ZSTR_VAL(str), ZSTR_LEN(str)); in zend_ini_add_string() 130 ZVAL_STR(op1, str); in zend_ini_add_string() 133 op1_len = (int)Z_STRLEN_P(op1); in zend_ini_add_string() 140 ZVAL_NEW_STR(result, zend_string_extend(Z_STR_P(op1), length, ZEND_SYSTEM_INI)); in zend_ini_add_string()
|
H A D | zend_ast.c | 233 zval op1, op2; in zend_ast_evaluate() local 241 zval_dtor(&op1); in zend_ast_evaluate() 246 zval_dtor(&op1); in zend_ast_evaluate() 255 zval_dtor(&op1); in zend_ast_evaluate() 262 zval_dtor(&op1); in zend_ast_evaluate() 272 zval_dtor(&op1); in zend_ast_evaluate() 314 zval_dtor(&op1); in zend_ast_evaluate() 332 zval_dtor(&op1); in zend_ast_evaluate() 341 *result = op1; in zend_ast_evaluate() 356 zval_dtor(&op1); in zend_ast_evaluate() [all …]
|
H A D | zend_ast.h | 261 …_always_inline zend_ast *zend_ast_create_binary_op(uint32_t opcode, zend_ast *op0, zend_ast *op1) { in zend_ast_create_binary_op() argument 262 return zend_ast_create_ex(ZEND_AST_BINARY_OP, opcode, op0, op1); in zend_ast_create_binary_op() 264 …_always_inline zend_ast *zend_ast_create_assign_op(uint32_t opcode, zend_ast *op0, zend_ast *op1) { in zend_ast_create_assign_op() argument 265 return zend_ast_create_ex(ZEND_AST_ASSIGN_OP, opcode, op0, op1); in zend_ast_create_assign_op()
|
/PHP-7.2/ext/opcache/Optimizer/ |
H A D | sccp.c | 935 if ((op1 && IS_BOT(op1)) || (op2 && IS_BOT(op2))) { in sccp_visit_instr() 966 SKIP_IF_TOP(op1); in sccp_visit_instr() 995 SKIP_IF_TOP(op1); in sccp_visit_instr() 1009 SKIP_IF_TOP(op1); in sccp_visit_instr() 1021 SKIP_IF_TOP(op1); in sccp_visit_instr() 1032 SKIP_IF_TOP(op1); in sccp_visit_instr() 1041 SKIP_IF_TOP(op1); in sccp_visit_instr() 1115 if (!op1) { in sccp_visit_instr() 1323 zval *op1; in sccp_mark_feasible_successors() local 1342 if (!op1 || IS_BOT(op1)) { in sccp_mark_feasible_successors() [all …]
|
H A D | pass3.c | 103 znode_op tmp = opline->op1; in zend_optimizer_pass3() 114 && opline->op1.var == next_opline->op1.var in zend_optimizer_pass3() 212 SAME_VAR(opline->op1, target->op1)) { in zend_optimizer_pass3() 218 SAME_VAR(opline->op1, target->op1)) { in zend_optimizer_pass3() 226 SAME_VAR(opline->op1, target->op1)) { in zend_optimizer_pass3() 232 SAME_VAR(opline->op1, target->op1)) { in zend_optimizer_pass3() 270 SAME_VAR(target->op1, T)) { in zend_optimizer_pass3() 276 SAME_VAR(target->op1, T) && in zend_optimizer_pass3() 297 SAME_VAR(opline->op1, target->op1)) { in zend_optimizer_pass3() 303 SAME_VAR(target->op1, T)) { in zend_optimizer_pass3() [all …]
|
H A D | block_pass.c | 183 znode_op op1 = opline->op1; in zend_optimize_block() local 187 COPY_NODE(opline->op1, src->op1); in zend_optimize_block() 282 COPY_NODE(opline->op1, src->op1); in zend_optimize_block() 500 COPY_NODE(opline->op1, src->op1); in zend_optimize_block() 507 COPY_NODE(opline->op1, src->op1); in zend_optimize_block() 612 COPY_NODE(opline->op1, src->op1); in zend_optimize_block() 641 COPY_NODE(opline->op1, src->op1); in zend_optimize_block() 675 COPY_NODE(opline->op1, src->op1); in zend_optimize_block() 703 COPY_NODE(opline->op1, src->op1); in zend_optimize_block() 839 && op->op1.var == opline->op1.var) in zend_optimize_block() [all …]
|
H A D | zend_optimizer_internal.h | 28 #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 D | zend_optimizer.c | 87 if ((Z_TYPE_P(op1) == IS_ARRAY in zend_optimizer_eval_binary_op() 106 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() 137 && Z_TYPE_P(op1) != IS_DOUBLE 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() 568 opline->op1.var == var) { in zend_optimizer_replace_by_const() 606 m->op1.var == var) { in zend_optimizer_replace_by_const() 658 m->op1.var == var) { in zend_optimizer_replace_by_const() [all …]
|
H A D | compact_literals.c | 151 LITERAL_INFO(opline->op1.constant, LITERAL_VALUE, 1, 0, 1); in zend_optimizer_compact_literals() 157 opline->op1, in zend_optimizer_compact_literals() 165 LITERAL_INFO(opline->op1.constant, LITERAL_CLASS, 1, 1, 2); in zend_optimizer_compact_literals() 171 opline->op1, in zend_optimizer_compact_literals() 178 LITERAL_INFO(opline->op1.constant, LITERAL_CLASS, 1, 1, 2); in zend_optimizer_compact_literals() 181 LITERAL_INFO(opline->op1.constant, LITERAL_CONST, 1, 1, 2); in zend_optimizer_compact_literals() 197 opline->op1, in zend_optimizer_compact_literals() 218 opline->op1.constant, in zend_optimizer_compact_literals() 253 opline->op1, in zend_optimizer_compact_literals() 276 opline->op1, in zend_optimizer_compact_literals() [all …]
|
H A D | compact_vars.c | 40 zend_bitset_incl(used_cvs, VAR_NUM(opline->op1.var)); in zend_optimizer_compact_vars() 72 opline->op1.var = NUM_VAR(cv_map[VAR_NUM(opline->op1.var)]); in zend_optimizer_compact_vars() 74 opline->op1.var -= sizeof(zval) * tmp_offset; in zend_optimizer_compact_vars()
|
H A D | zend_ssa.c | 188 return EX_VAR_TO_NUM(op->op1.var); in find_adjusted_tmp_var() 193 return EX_VAR_TO_NUM(op->op1.var); in find_adjusted_tmp_var() 201 return EX_VAR_TO_NUM(op->op1.var); in find_adjusted_tmp_var() 204 zv = CRT_CONSTANT(op->op1); in find_adjusted_tmp_var() 216 return EX_VAR_TO_NUM(op->op1.var); in find_adjusted_tmp_var() 282 var1 = EX_VAR_TO_NUM((opline-1)->op1.var); in place_essa_pis() 329 zval *zv = CRT_CONSTANT((opline-1)->op1); in place_essa_pis() 424 int var = EX_VAR_TO_NUM((opline-1)->op1.var); in place_essa_pis() 446 int var = EX_VAR_TO_NUM((opline-1)->op1.var); in place_essa_pis() 476 var = EX_VAR_TO_NUM((opline-1)->op1.var); in place_essa_pis() [all …]
|
H A D | dfa_pass.c | 338 return opline->op1_type != IS_CV || opline->op1.var != cv_var; in opline_supports_assign_contraction() 343 return (opline->op1_type != IS_CV || opline->op1.var != cv_var) in opline_supports_assign_contraction() 351 return opline->op1_type != IS_CV || opline->op1.var != cv_var; in opline_supports_assign_contraction() 455 call_info->caller_call_opline->op1.num = send_needly->op1.num; in zend_dfa_optimize_calls() 530 opline->op1.num = opline->op2.num; in zend_dfa_optimize_jmps() 635 zval *zv = CT_CONSTANT_EX(op_array, opline->op1.constant); in zend_dfa_optimize_op_array() 712 src_var, opline->op1.var) in zend_dfa_optimize_op_array() 735 op_array->opcodes[op_2].result.var = opline->op1.var; in zend_dfa_optimize_op_array() 763 opline->result.var = opline->op1.var; in zend_dfa_optimize_op_array() 765 opline->op1.var = opline->op2.var; in zend_dfa_optimize_op_array() [all …]
|
H A D | dce.c | 404 zval *op1; in simplify_jumps() local 454 op1 = &ZEND_OP1_LITERAL(opline); in simplify_jumps() 457 if (!zend_is_true(op1)) { in simplify_jumps() 458 literal_dtor(op1); in simplify_jumps() 460 opline->op1.num = opline->op2.num; in simplify_jumps() 468 if (zend_is_true(op1)) { in simplify_jumps() 469 literal_dtor(op1); in simplify_jumps() 471 opline->op1.num = opline->op2.num; in simplify_jumps() 486 if (Z_TYPE_P(op1) != IS_NULL) { in simplify_jumps() 487 literal_dtor(op1); in simplify_jumps() [all …]
|
H A D | zend_inference.h | 139 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() 225 DEFINE_SSA_OP_INFO(op1) 228 DEFINE_SSA_OP_DEF_INFO(op1)
|
H A D | optimize_func_calls.c | 34 Z_TYPE(op_array->literals[(opline)->op1.constant]) == IS_STRING) 136 ZVAL_DUP(&zv, RT_CONSTANT(&func->op_array, ret_opline->op1)); in zend_try_inline_call() 139 opline->op1.constant = zend_optimizer_add_literal(op_array, &zv); in zend_try_inline_call() 193 fcall->op1.num = zend_vm_calc_used_stack(fcall->extended_value, call_stack[call].func); in zend_optimize_func_calls() 200 fcall->op1.num = zend_vm_calc_used_stack(fcall->extended_value, call_stack[call].func); in zend_optimize_func_calls()
|
H A D | pass2.c | 137 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()
|
/PHP-7.2/Zend/tests/ |
H A D | bug37046.phpt | 11 echo "op1 $k\n"; 20 op1 0 23 op1 1
|
H A D | pow_array_leak.phpt | 2 Memory leak on ** with result==op1 array
|
/PHP-7.2/ext/intl/collator/ |
H A D | collator_sort.c | 53 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 D | collator_sort.h | 23 typedef int (*collator_compare_func_t)( zval *result, zval *op1, zval *op2 );
|