/PHP-7.0/Zend/ |
H A D | zend_operators.h | 534 "r"(&op2->value), in fast_long_add_function() 557 "r"(&op2->value), in fast_long_add_function() 627 "r"(&op2->value), in fast_long_sub_function() 654 "r"(&op2->value), in fast_long_sub_function() 704 compare_function(&result, op1, op2); in fast_equal_check_function() 714 compare_function(&result, op1, op2); in fast_equal_check_long() 722 if (Z_STR_P(op1) == Z_STR_P(op2)) { in fast_equal_check_string() 734 compare_function(&result, op1, op2); in fast_equal_check_string() 745 return zend_is_identical(op1, op2); in fast_is_identical_function() 755 return !zend_is_identical(op1, op2); in fast_is_not_identical_function() [all …]
|
H A D | zend_operators.c | 278 op2 = Z_REFVAL_P(op2); \ 927 op2 = Z_REFVAL_P(op2); in add_function() 985 op2 = Z_REFVAL_P(op2); in sub_function() 1037 op2 = Z_REFVAL_P(op2); in mul_function() 1120 op2 = Z_REFVAL_P(op2); in pow_function() 1205 op2 = Z_REFVAL_P(op2); in div_function() 1290 op2 = Z_REFVAL_P(op2); in boolean_xor_function() 1706 op2 = Z_REFVAL_P(op2); in concat_function() 1962 op2 = Z_REFVAL_P(op2); in compare_function() 2013 op_free = Z_OBJ_HT_P(op2)->get(op2, &rv); in compare_function() [all …]
|
H A D | zend_vm_gen.php | 458 $op2 = "ANY"; 528 $op2_type[$op2], 530 $op2_free[$op2], 532 $op2_get_zval_ptr[$op2], 552 $op2_free_op[$op2], 769 if ($op2 != "ANY") { 804 if ($op2 != "ANY") { 806 if (($op2 == "TMP" || $op2 == "VAR") && isset($dsc["op2"]["TMPVAR"])) { 807 $op2 = "TMPVAR"; 810 $op2 = "ANY"; [all …]
|
H A D | zend_vm_execute.h | 4347 op2 = EX_CONSTANT(opline->op2); 4390 op2 = EX_CONSTANT(opline->op2); 4433 op2 = EX_CONSTANT(opline->op2); 4480 op2 = EX_CONSTANT(opline->op2); 4494 op2 = EX_CONSTANT(opline->op2); 4533 op2 = EX_CONSTANT(opline->op2); 4548 op2 = EX_CONSTANT(opline->op2); 4563 op2 = EX_CONSTANT(opline->op2); 4578 op2 = EX_CONSTANT(opline->op2); 4639 op2 = EX_CONSTANT(opline->op2); [all …]
|
H A D | zend_vm_def.h | 63 op2 = GET_OP2_UNDEF_CV(op2, BP_VAR_R); 106 op2 = GET_OP2_UNDEF_CV(op2, BP_VAR_R); 152 op2 = GET_OP2_UNDEF_CV(op2, BP_VAR_R); 164 zval *op1, *op2; variable 205 op2 = GET_OP2_UNDEF_CV(op2, BP_VAR_R); 308 op2 = GET_OP2_UNDEF_CV(op2, BP_VAR_R); 412 op2 = GET_OP2_UNDEF_CV(op2, BP_VAR_R); 480 op2 = GET_OP2_UNDEF_CV(op2, BP_VAR_R); 530 op2 = GET_OP2_UNDEF_CV(op2, BP_VAR_R); 580 op2 = GET_OP2_UNDEF_CV(op2, 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 62 if (op2) { in zend_ini_do_op() 63 i_op2 = atoi(Z_STRVAL_P(op2)); in zend_ini_do_op() 64 zend_string_free(Z_STR_P(op2)); in zend_ini_do_op() 109 static void zend_ini_add_string(zval *result, zval *op1, zval *op2) in zend_ini_add_string() argument 125 if (Z_TYPE_P(op2) != IS_STRING) { in zend_ini_add_string() 126 convert_to_string(op2); in zend_ini_add_string() 128 length = op1_len + (int)Z_STRLEN_P(op2); in zend_ini_add_string() 131 memcpy(Z_STRVAL_P(result) + op1_len, Z_STRVAL_P(op2), Z_STRLEN_P(op2) + 1); in zend_ini_add_string()
|
H A D | zend_compile.c | 955 zval *op1, *op2; in do_bind_function() local 959 op2 = CT_CONSTANT_EX(op_array, opline->op2.constant); in do_bind_function() 962 op2 = RT_CONSTANT(op_array, opline->op2); in do_bind_function() 996 zval *op1, *op2; in do_bind_class() local 1000 op2 = CT_CONSTANT_EX(op_array, opline->op2.constant); in do_bind_class() 1003 op2 = RT_CONSTANT(op_array, opline->op2); in do_bind_class() 1035 op2 = CT_CONSTANT_EX(op_array, opline->op2.constant); in do_bind_inherited_class() 1038 op2 = RT_CONSTANT(op_array, opline->op2); in do_bind_inherited_class() 1879 SET_NODE(opline->op2, op2); in zend_emit_op() 1903 SET_NODE(opline->op2, op2); in zend_emit_op_tmp() [all …]
|
H A D | zend_ast.c | 233 zval op1, op2; in zend_ast_evaluate() local 245 ret = op(result, &op1, &op2); in zend_ast_evaluate() 247 zval_dtor(&op2); in zend_ast_evaluate() 261 ret = op(result, &op2, &op1); in zend_ast_evaluate() 263 zval_dtor(&op2); in zend_ast_evaluate() 310 zval_dtor(&op2); in zend_ast_evaluate() 330 zval_dtor(&op2); in zend_ast_evaluate() 381 zval_dtor(&op2); in zend_ast_evaluate() 390 zval_dtor(&op2); in zend_ast_evaluate() 415 zval_dtor(&op2); in zend_ast_evaluate() [all …]
|
H A D | zend_opcode.c | 531 op_array->opcodes[op_num].op2.opline_num = finally_op_num - 2; in zend_resolve_fast_call() 555 op_array->opcodes[op_num].op2.opline_num = finally_op_num; in zend_resolve_finally_ret() 559 op_array->opcodes[op_num].op2.opline_num = catch_op_num; in zend_resolve_finally_ret() 564 int nest_levels = opline->op2.num; in zend_get_brk_cont_target() 634 opline->op2.num = 0; in pass_two() 662 ZEND_PASS_TWO_UPDATE_JMP_TARGET(op_array, opline, opline->op2); in pass_two() 694 ZEND_PASS_TWO_UPDATE_CONSTANT(op_array, opline->op2); in pass_two() 696 …opline->op2.var = (uint32_t)(zend_intptr_t)ZEND_CALL_VAR_NUM(NULL, op_array->last_var + opline->op… in pass_two()
|
H A D | zend_object_handlers.h | 108 typedef int (*zend_object_compare_zvals_t)(zval *resul, zval *op1, zval *op2); 122 typedef int (*zend_object_do_operation_t)(zend_uchar opcode, zval *result, zval *op1, zval *op2);
|
/PHP-7.0/ext/opcache/Optimizer/ |
H A D | optimize_func_calls.c | 34 Z_TYPE(op_array->literals[(opline)->op2.constant]) == IS_STRING) 61 zval *function_name = &op_array->literals[opline->op2.constant + 1]; in optimize_func_calls() 88 …Z_CACHE_SLOT(op_array->literals[fcall->op2.constant + 1]) = Z_CACHE_SLOT(op_array->literals[fcall-… in optimize_func_calls() 90 fcall->op2.constant = fcall->op2.constant + 1; in optimize_func_calls() 95 …Z_CACHE_SLOT(op_array->literals[fcall->op2.constant + 1]) = Z_CACHE_SLOT(op_array->literals[fcall-… in optimize_func_calls() 96 literal_dtor(&op_array->literals[fcall->op2.constant]); in optimize_func_calls() 97 literal_dtor(&op_array->literals[fcall->op2.constant + 2]); in optimize_func_calls() 98 fcall->op2.constant = fcall->op2.constant + 1; in optimize_func_calls() 129 if (ARG_MUST_BE_SENT_BY_REF(call_stack[call - 1].func, opline->op2.num)) { in optimize_func_calls() 139 if (ARG_SHOULD_BE_SENT_BY_REF(call_stack[call - 1].func, opline->op2.num)) { in optimize_func_calls() [all …]
|
H A D | compact_literals.c | 140 LITERAL_INFO(opline->op2.constant, LITERAL_FUNC, 1, 1, 1); in zend_optimizer_compact_literals() 143 LITERAL_INFO(opline->op2.constant, LITERAL_FUNC, 1, 1, 2); in zend_optimizer_compact_literals() 157 opline->op2.constant, in zend_optimizer_compact_literals() 171 opline->op2.constant, in zend_optimizer_compact_literals() 197 opline->op2.constant, in zend_optimizer_compact_literals() 222 opline->op2, in zend_optimizer_compact_literals() 260 opline->op2.constant, in zend_optimizer_compact_literals() 283 opline->op2.constant, in zend_optimizer_compact_literals() 304 if (opline->op2.num != -1) { in zend_optimizer_compact_literals() 305 opline->op2.num = cache_size; in zend_optimizer_compact_literals() [all …]
|
H A D | zend_optimizer_internal.h | 39 (opline)->op2.num = 0; \ 50 …(op1, op2) ((((op1 ## _type & IS_VAR) && (op2 ## _type & IS_VAR)) || (op1 ## _type == IS_TMP_VAR … argument
|
H A D | pass2.c | 131 SET_UNUSED(opline->op2); in zend_optimizer_pass2() 148 COPY_NODE(opline->op1, opline->op2); in zend_optimizer_pass2() 163 opline->op2.num = 0; in zend_optimizer_pass2() 172 COPY_NODE(opline->op2, (opline + 1)->op1); in zend_optimizer_pass2()
|
H A D | zend_optimizer.c | 86 opline->op2.var += sizeof(zval); in zend_optimizer_lookup_cv() 231 opline->op2.constant = zend_optimizer_add_literal(op_array, val); in zend_optimizer_update_op2_const() 238 opline->op2.constant = zend_optimizer_add_literal(op_array, val); in zend_optimizer_update_op2_const() 250 opline->op2.constant = zend_optimizer_add_literal(op_array, val); in zend_optimizer_update_op2_const() 260 opline->op2.constant = zend_optimizer_add_literal(op_array, val); in zend_optimizer_update_op2_const() 279 opline->op2.constant = zend_optimizer_add_literal(op_array, val); in zend_optimizer_update_op2_const() 341 opline->op2.constant = zend_optimizer_add_literal(op_array, val); in zend_optimizer_update_op2_const() 351 opline->op2.constant = zend_optimizer_add_literal(op_array, val); in zend_optimizer_update_op2_const() 584 ZEND_PASS_TWO_UNDO_CONSTANT(op_array, opline->op2); in zend_accel_optimize() 628 ZEND_PASS_TWO_UPDATE_CONSTANT(op_array, opline->op2); in zend_accel_optimize() [all …]
|
H A D | block_pass.c | 696 VAR_SOURCE(opline->op2) && in zend_optimize_block() 699 znode_op op2 = opline->op2; in zend_optimize_block() local 704 VAR_SOURCE(op2) = NULL; in zend_optimize_block() 828 SET_UNUSED(opline->op2); in zend_optimize_block() 842 SET_UNUSED(opline->op2); in zend_optimize_block() 1057 SET_UNUSED(opline->op2); in zend_optimize_block() 1105 VAR_UNSET(opline->op2); in zend_optimize_block() 1118 opline->op2.var = 0; in zend_optimize_block() 1127 opline->op2.var = 0; in zend_optimize_block() 1469 last_op->op2.num = 0; in zend_jmp_optimization() [all …]
|
H A D | pass1_5.c | 373 if (send1_opline->op2.num == 2) { in zend_optimizer_pass1() 418 opline->op2.constant = send2_opline->op1.constant; in zend_optimizer_pass1() 686 } else if (op->op2_type == IS_VAR && op->op2.var == var) { in zend_optimizer_pass1() 702 } else if (use->op2_type == IS_VAR && use->op2.var == var) { in zend_optimizer_pass1() 704 use->op2.var = zend_optimizer_lookup_cv(op_array, in zend_optimizer_pass1()
|
/PHP-7.0/Zend/tests/ |
H A D | bug37046.phpt | 14 echo "op2 $k\n"; 21 op2 0 22 op2 1
|
/PHP-7.0/sapi/phpdbg/ |
H A D | phpdbg_opcode.c | 108 OP_JMP_ADDR(op, op->op2) - ops->opcodes, in phpdbg_decode_opline() 118 spprintf(&decode[2], 0, "J%td", OP_JMP_ADDR(op, op->op2) - ops->opcodes); in phpdbg_decode_opline() 124 spprintf(&decode[2], 0, "J%" PRIu32, op->op2.opline_num); in phpdbg_decode_opline() 135 spprintf(&decode[2], 0, "%" PRIu32, op->op2.num); in phpdbg_decode_opline() 139 decode[2] = phpdbg_decode_op(ops, &op->op2, op->op2_type); in phpdbg_decode_opline()
|
/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 67 str2_p = collator_convert_object_to_string( op2, &str2 ); in collator_regular_compare_function() 149 static int collator_numeric_compare_function(zval *result, zval *op1, zval *op2) in collator_numeric_compare_function() argument 161 if( Z_TYPE_P(op2) == IS_STRING ) in collator_numeric_compare_function() 163 num2_p = collator_convert_string_to_double( op2, &num2 ); in collator_numeric_compare_function() 164 op2 = num2_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 190 str2_p = collator_make_printable_zval( op2, &str2 ); 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/ext/mbstring/oniguruma/ |
H A D | regsyntax.c | 245 onig_set_syntax_op2(OnigSyntaxType* syntax, unsigned int op2) in onig_set_syntax_op2() argument 247 syntax->op2 = op2; in onig_set_syntax_op2() 271 return syntax->op2; in onig_get_syntax_op2()
|
/PHP-7.0/ext/opcache/tests/ |
H A D | optimize_func_calls_001.phpt | 2 Don't create FETCH_DIM_R with UNUSED op2
|
/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/opcache/ |
H A D | ZendAccelerator.h | 361 # define ZEND_OP2(opline) (opline)->op2 362 # define ZEND_OP2_CONST(opline) (*(opline)->op2.zv) 363 # define ZEND_OP2_LITERAL(opline) (op_array)->literals[(opline)->op2.constant]
|