/PHP-7.0/Zend/ |
H A D | zend_operators.c | 925 op1 = Z_REFVAL_P(op1); in add_function() 983 op1 = Z_REFVAL_P(op1); in sub_function() 1035 op1 = Z_REFVAL_P(op1); in mul_function() 1118 op1 = Z_REFVAL_P(op1); in pow_function() 1203 op1 = Z_REFVAL_P(op1); in div_function() 1270 op1 = Z_REFVAL_P(op1); in boolean_xor_function() 1317 op1 = Z_REFVAL_P(op1); in boolean_not_function() 1364 op1 = Z_REFVAL_P(op1); in bitwise_not_function() 1684 op1 = Z_REFVAL_P(op1); in concat_function() 2397 op1 = Z_REFVAL_P(op1); in increment_function() [all …]
|
H A D | zend_operators.h | 446 : "r"(&op1->value), in fast_long_increment_function() 459 : "r"(&op1->value), in fast_long_increment_function() 468 Z_LVAL_P(op1)++; in fast_long_increment_function() 484 : "r"(&op1->value), in fast_long_decrement_function() 497 : "r"(&op1->value), in fast_long_decrement_function() 506 Z_LVAL_P(op1)--; in fast_long_decrement_function() 533 "r"(&op1->value), in fast_long_add_function() 556 "r"(&op1->value), in fast_long_add_function() 626 "r"(&op1->value), in fast_long_sub_function() 653 "r"(&op1->value), in fast_long_sub_function() [all …]
|
H A D | zend_vm_gen.php | 454 $op1 = "ANY"; 527 $op1_type[$op1], 529 $op1_free[$op1], 531 $op1_get_zval_ptr[$op1], 551 $op1_free_op[$op1], 765 if ($op1 != "ANY") { 792 if ($op1 != "ANY") { 794 if (($op1 == "TMP" || $op1 == "VAR") && isset($dsc["op1"]["TMPVAR"])) { 795 $op1 = "TMPVAR"; 798 $op1 = "ANY"; [all …]
|
H A D | zend_vm_execute.h | 4346 op1 = EX_CONSTANT(opline->op1); 4389 op1 = EX_CONSTANT(opline->op1); 4432 op1 = EX_CONSTANT(opline->op1); 4479 op1 = EX_CONSTANT(opline->op1); 4493 op1 = EX_CONSTANT(opline->op1); 4532 op1 = EX_CONSTANT(opline->op1); 4547 op1 = EX_CONSTANT(opline->op1); 4562 op1 = EX_CONSTANT(opline->op1); 4577 op1 = EX_CONSTANT(opline->op1); 4638 op1 = EX_CONSTANT(opline->op1); [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); 202 op1 = GET_OP1_UNDEF_CV(op1, BP_VAR_R); 305 op1 = GET_OP1_UNDEF_CV(op1, BP_VAR_R); 409 op1 = GET_OP1_UNDEF_CV(op1, BP_VAR_R); 477 op1 = GET_OP1_UNDEF_CV(op1, BP_VAR_R); 527 op1 = GET_OP1_UNDEF_CV(op1, BP_VAR_R); 577 op1 = GET_OP1_UNDEF_CV(op1, BP_VAR_R); 4923 op1 = GET_OP1_UNDEF_CV(op1, BP_VAR_R); [all …]
|
H A D | zend_ini_parser.y | 53 static void zend_ini_do_op(char type, zval *result, zval *op1, zval *op2) in zend_ini_do_op() argument 60 i_op1 = atoi(Z_STRVAL_P(op1)); in zend_ini_do_op() 61 zend_string_free(Z_STR_P(op1)); in zend_ini_do_op() 109 static void zend_ini_add_string(zval *result, zval *op1, zval *op2) in zend_ini_add_string() argument 113 if (Z_TYPE_P(op1) != IS_STRING) { in zend_ini_add_string() 114 zend_string *str = zval_get_string(op1); in zend_ini_add_string() 117 ZVAL_PSTRINGL(op1, ZSTR_VAL(str), ZSTR_LEN(str)); in zend_ini_add_string() 120 ZVAL_STR(op1, str); in zend_ini_add_string() 123 op1_len = (int)Z_STRLEN_P(op1); in zend_ini_add_string() 130 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_opcode.c | 565 int array_offset = opline->op1.num; in zend_get_brk_cont_target() 610 opline->op1.opline_num = op_array->try_catch_array[opline->op1.num].finally_op; in pass_two() 612 ZEND_PASS_TWO_UPDATE_JMP_TARGET(op_array, opline, opline->op1); in pass_two() 618 ZEND_PASS_TWO_UPDATE_JMP_TARGET(op_array, opline, opline->op1); in pass_two() 633 opline->op1.opline_num = jmp_target; in pass_two() 635 ZEND_PASS_TWO_UPDATE_JMP_TARGET(op_array, opline, opline->op1); in pass_two() 641 zend_check_finally_breakout(op_array, opline - op_array->opcodes, opline->op1.opline_num); in pass_two() 646 ZEND_PASS_TWO_UPDATE_JMP_TARGET(op_array, opline, opline->op1); in pass_two() 674 ret->op1 = opline->op1; in pass_two() 689 ZEND_PASS_TWO_UPDATE_CONSTANT(op_array, opline->op1); in pass_two() [all …]
|
H A D | zend_ast.h | 262 …_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 263 return zend_ast_create_ex(ZEND_AST_BINARY_OP, opcode, op0, op1); in zend_ast_create_binary_op() 265 …_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 266 return zend_ast_create_ex(ZEND_AST_ASSIGN_OP, opcode, op0, op1); in zend_ast_create_assign_op()
|
H A D | zend_compile.c | 630 SET_NODE(opline->op1, op1); in zend_do_free() 649 SET_NODE(opline->op1, op1); in zend_do_free() 658 opline->op1.var == op1->u.op.var) { in zend_do_free() 662 SET_NODE(opline->op1, op1); in zend_do_free() 958 op1 = CT_CONSTANT_EX(op_array, opline->op1.constant); in do_bind_function() 961 op1 = RT_CONSTANT(op_array, opline->op1); in do_bind_function() 1002 op1 = RT_CONSTANT(op_array, opline->op1); in do_bind_class() 1037 op1 = RT_CONSTANT(op_array, opline->op1); in do_bind_inherited_class() 1873 SET_NODE(opline->op1, op1); in zend_emit_op() 1897 SET_NODE(opline->op1, op1); in zend_emit_op_tmp() [all …]
|
/PHP-7.0/ext/opcache/Optimizer/ |
H A D | block_pass.c | 683 znode_op op1 = opline->op1; in zend_optimize_block() local 717 COPY_NODE(opline->op1, src->op1); in zend_optimize_block() 858 COPY_NODE(opline->op1, src->op1); in zend_optimize_block() 894 VAR_UNSET(opline->op1); in zend_optimize_block() 913 COPY_NODE(opline->op1, src->op1); in zend_optimize_block() 934 COPY_NODE(opline->op1, src->op1); in zend_optimize_block() 936 VAR_UNSET(opline->op1); in zend_optimize_block() 993 COPY_NODE(opline->op1, src->op1); in zend_optimize_block() 1086 COPY_NODE(opline->op1, src->op1); in zend_optimize_block() 1096 COPY_NODE(opline->op1, src->op1); in zend_optimize_block() [all …]
|
H A D | pass3.c | 107 znode_op tmp = opline->op1; in zend_optimizer_pass3() 113 COPY_NODE(opline->op1, opline->op2); in zend_optimizer_pass3() 216 SAME_VAR(opline->op1, op_array->opcodes[target].op1)) { in zend_optimizer_pass3() 222 SAME_VAR(opline->op1, op_array->opcodes[target].op1)) { in zend_optimizer_pass3() 229 SAME_VAR(opline->op1, op_array->opcodes[target].op1)) { in zend_optimizer_pass3() 235 SAME_VAR(opline->op1, op_array->opcodes[target].op1)) { in zend_optimizer_pass3() 272 SAME_VAR(op_array->opcodes[target].op1, T)) { in zend_optimizer_pass3() 281 SAME_VAR(op_array->opcodes[target].op1, T)) { in zend_optimizer_pass3() 294 SAME_VAR(opline->op1, op_array->opcodes[target].op1)) { in zend_optimizer_pass3()
|
H A D | compact_literals.c | 150 LITERAL_INFO(opline->op1.constant, LITERAL_VALUE, 1, 0, 1); in zend_optimizer_compact_literals() 156 opline->op1, in zend_optimizer_compact_literals() 164 LITERAL_INFO(opline->op1.constant, LITERAL_CLASS, 1, 1, 2); in zend_optimizer_compact_literals() 170 opline->op1, in zend_optimizer_compact_literals() 177 LITERAL_INFO(opline->op1.constant, LITERAL_CLASS, 1, 1, 2); in zend_optimizer_compact_literals() 180 LITERAL_INFO(opline->op1.constant, LITERAL_CONST, 1, 1, 2); in zend_optimizer_compact_literals() 196 opline->op1, in zend_optimizer_compact_literals() 223 opline->op1.constant, in zend_optimizer_compact_literals() 259 opline->op1, in zend_optimizer_compact_literals() 282 opline->op1, in zend_optimizer_compact_literals() [all …]
|
H A D | zend_optimizer_internal.h | 38 (opline)->op1.num = 0; \ 50 …SAME_VAR(op1, op2) ((((op1 ## _type & IS_VAR) && (op2 ## _type & IS_VAR)) || (op1 ## _type == IS_… argument
|
H A D | pass2.c | 148 COPY_NODE(opline->op1, opline->op2); in zend_optimizer_pass2() 172 COPY_NODE(opline->op2, (opline + 1)->op1); in zend_optimizer_pass2()
|
H A D | zend_optimizer.c | 83 opline->op1.var += sizeof(zval); in zend_optimizer_lookup_cv() 136 Z_CACHE_SLOT(op_array->literals[opline->op1.constant]) = op_array->cache_size; in alloc_cache_slots_op1() 175 opline->op1.constant = zend_optimizer_add_literal(op_array, val); in zend_optimizer_update_op1_const() 186 opline->op1.constant = zend_optimizer_add_literal(op_array, val); in zend_optimizer_update_op1_const() 196 opline->op1.constant = zend_optimizer_add_literal(op_array, val); in zend_optimizer_update_op1_const() 581 ZEND_PASS_TWO_UNDO_CONSTANT(op_array, opline->op1); in zend_accel_optimize() 625 ZEND_PASS_TWO_UPDATE_CONSTANT(op_array, opline->op1); in zend_accel_optimize() 676 opline->op1.num = zend_vm_calc_used_stack(opline->extended_value, func); in zend_accel_adjust_fcall_stack_size()
|
H A D | pass1_5.c | 307 Z_STR(op_array->literals[opline->op1.constant + 1]))) == NULL || in zend_optimizer_pass1() 417 opline->op1.constant = send1_opline->op1.constant; in zend_optimizer_pass1() 418 opline->op2.constant = send2_opline->op1.constant; in zend_optimizer_pass1() 679 if (op->op1_type == IS_VAR && op->op1.var == var) { in zend_optimizer_pass1() 697 if (use->op1_type == IS_VAR && use->op1.var == var) { in zend_optimizer_pass1() 699 use->op1.var = zend_optimizer_lookup_cv(op_array, in zend_optimizer_pass1()
|
H A D | optimize_func_calls.c | 87 fcall->op1.num = zend_vm_calc_used_stack(fcall->extended_value, call_stack[call].func); in optimize_func_calls() 94 fcall->op1.num = zend_vm_calc_used_stack(fcall->extended_value, call_stack[call].func); in optimize_func_calls()
|
/PHP-7.0/Zend/tests/ |
H A D | bug37046.phpt | 11 echo "op1 $k\n"; 20 op1 0 23 op1 1
|
/PHP-7.0/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() 149 static int collator_numeric_compare_function(zval *result, zval *op1, zval *op2) in collator_numeric_compare_function() argument 155 if( Z_TYPE_P(op1) == IS_STRING ) in collator_numeric_compare_function() 157 num1_p = collator_convert_string_to_double( op1, &num1 ); in collator_numeric_compare_function() 158 op1 = num1_p; in collator_numeric_compare_function() 167 ZVAL_LONG(result, numeric_compare_function(op1, op2)); in collator_numeric_compare_function() 181 static int collator_icu_compare_function(zval *result, zval *op1, zval *op2) in collator_icu_compare_function() argument 189 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 );
|
/PHP-7.0/sapi/phpdbg/ |
H A D | phpdbg_opcode.c | 89 spprintf(&decode[1], 0, "J%td", OP_JMP_ADDR(op, op->op1) - ops->opcodes); in phpdbg_decode_opline() 96 spprintf(&decode[1], 0, "%" PRIu32, op->op1.num); in phpdbg_decode_opline() 100 decode[1] = phpdbg_decode_op(ops, &op->op1, op->op1_type); in phpdbg_decode_opline()
|
/PHP-7.0/ext/standard/ |
H A D | php_string.h | 144 PHPAPI int string_natural_compare_function_ex(zval *result, zval *op1, zval *op2, zend_bool case_in… 145 PHPAPI int string_natural_compare_function(zval *result, zval *op1, zval *op2); 146 PHPAPI int string_natural_case_compare_function(zval *result, zval *op1, zval *op2);
|
/PHP-7.0/ext/gmp/ |
H A D | gmp.c | 471 FETCH_GMP_ZVAL(gmpnum_op, op1, temp); in shift_operator_helper() 480 result, op1, op2, op, (gmp_binary_ui_op_t) uop, \ 489 gmp_zval_unary_op(result, op1, op); \ 502 shift_operator_helper(mpz_pow_ui, result, op1, op2); in gmp_do_operation_ex() 509 shift_operator_helper(mpz_mul_2exp, result, op1, op2); in gmp_do_operation_ex() 534 if (result == op1) { in gmp_do_operation() 535 ZVAL_COPY_VALUE(&op1_copy, op1); in gmp_do_operation() 536 op1 = &op1_copy; in gmp_do_operation() 541 if (retval == SUCCESS && op1 == &op1_copy) { in gmp_do_operation() 542 zval_dtor(op1); in gmp_do_operation() [all …]
|
/PHP-7.0/ext/opcache/ |
H A D | ZendAccelerator.h | 357 # define ZEND_OP1(opline) (opline)->op1 358 # define ZEND_OP1_CONST(opline) (*(opline)->op1.zv) 359 # define ZEND_OP1_LITERAL(opline) (op_array)->literals[(opline)->op1.constant]
|