Home
last modified time | relevance | path

Searched refs:op2 (Results 1 – 25 of 82) sorted by relevance

1234

/php-src/Zend/
H A Dzend_operators.h667 "r"(&op2->value), in fast_long_add_function()
685 "r"(&op2->value), in fast_long_add_function()
705 "r"(&op2->value), in fast_long_add_function()
755 "r"(&op2->value), in fast_long_sub_function()
773 "r"(&op2->value), in fast_long_sub_function()
793 "r"(&op2->value), in fast_long_sub_function()
855 return zend_compare(op1, op2) == 0; in fast_equal_check_function()
863 return zend_compare(op1, op2) == 0; in fast_equal_check_long()
871 return zend_compare(op1, op2) == 0; in fast_equal_check_string()
881 return zend_is_identical(op1, op2); in fast_is_identical_function()
[all …]
H A Dzend_operators.c520 op2 = Z_REFVAL_P(op2); \
1115 ZVAL_DEREF(op2); in add_function_slow()
1550 op2 = Z_REFVAL_P(op2); in boolean_xor_function()
1674 longer = op2; in bitwise_or_function()
1756 longer = op2; in bitwise_and_function()
1838 longer = op2; in bitwise_xor_function()
2005 op2 = Z_REFVAL_P(op2); in concat_function()
2331 op2 = Z_REFVAL_P(op2); in zend_compare()
2342 return Z_OBJ_HANDLER_P(op2, compare)(op1, op2); in zend_compare()
2689 zval op2; in increment_function() local
[all …]
H A Dzend_vm_gen.php600 if (($op2 == 'TMP' || $op2 == 'VAR') &&
602 $op2 = "TMPVAR";
603 } else if (($op2 == 'TMP' || $op2 == 'VAR') &&
610 $op2 = "ANY";
649 if (($op2 == 'TMP' || $op2 == 'VAR') &&
651 $op2 = "TMPVAR";
652 } else if (($op2 == 'TMP' || $op2 == 'VAR') &&
659 $op2 = "ANY";
1015 if ($op2 === "CONST") {
1037 $op2 = "ANY";
[all …]
H A Dzend_vm_execute.h8301 op2 = EX_VAR(opline->op2.var); in ZEND_ADD_SPEC_CONST_TMPVARCV_HANDLER()
8339 op2 = EX_VAR(opline->op2.var); in ZEND_SUB_SPEC_CONST_TMPVARCV_HANDLER()
8376 op2 = EX_VAR(opline->op2.var); in ZEND_MOD_SPEC_CONST_TMPVARCV_HANDLER()
8403 op2 = EX_VAR(opline->op2.var); in ZEND_SL_SPEC_CONST_TMPVARCV_HANDLER()
8424 op2 = EX_VAR(opline->op2.var); in ZEND_SR_SPEC_CONST_TMPVARCV_HANDLER()
8444 op2 = EX_VAR(opline->op2.var); in ZEND_IS_SMALLER_SPEC_CONST_TMPVARCV_HANDLER()
8487 op2 = EX_VAR(opline->op2.var); in ZEND_IS_SMALLER_SPEC_CONST_TMPVARCV_JMPZ_HANDLER()
8530 op2 = EX_VAR(opline->op2.var); in ZEND_IS_SMALLER_SPEC_CONST_TMPVARCV_JMPNZ_HANDLER()
8573 op2 = EX_VAR(opline->op2.var); in ZEND_IS_SMALLER_OR_EQUAL_SPEC_CONST_TMPVARCV_HANDLER()
8620 op2 = EX_VAR(opline->op2.var); in ZEND_IS_SMALLER_OR_EQUAL_SPEC_CONST_TMPVARCV_JMPZ_HANDLER()
[all …]
H A Dzend_vm_def.h209 zval *op1, *op2; variable
302 zval *op1, *op2; variable
344 zval *op1, *op2; variable
363 zval *op1, *op2; variable
377 zval *op1, *op2; variable
454 zval *op1, *op2; variable
469 zval *op1, *op2; variable
483 zval *op1, *op2; variable
520 zval *op1, *op2; variable
600 zval *op1, *op2; variable
[all …]
H A Dzend_ini_parser.y65 static void zend_ini_do_op(char type, zval *result, zval *op1, zval *op2) in zend_ini_do_op() argument
73 i_op2 = op2 ? get_int_val(op2) : 0; in zend_ini_do_op()
118 static void zend_ini_add_string(zval *result, zval *op1, zval *op2) in zend_ini_add_string() argument
135 if (Z_TYPE_P(op2) != IS_STRING) { in zend_ini_add_string()
136 convert_to_string(op2); in zend_ini_add_string()
138 length = op1_len + (int)Z_STRLEN_P(op2); in zend_ini_add_string()
141 memcpy(Z_STRVAL_P(result) + op1_len, Z_STRVAL_P(op2), Z_STRLEN_P(op2) + 1); in zend_ini_add_string()
/php-src/Zend/Optimizer/
H A Dcompact_literals.c99 zval *prop_name = &op_array->literals[op2]; in add_static_slot()
179 LITERAL_INFO(opline->op2.constant, 2); in zend_optimizer_compact_literals()
182 LITERAL_INFO(opline->op2.constant, 3); in zend_optimizer_compact_literals()
189 LITERAL_INFO(opline->op2.constant, 2); in zend_optimizer_compact_literals()
500 opline->op2.constant = map[opline->op2.constant]; in zend_optimizer_compact_literals()
518 opline->op2.num = cache_size; in zend_optimizer_compact_literals()
528 opline->op2.constant, in zend_optimizer_compact_literals()
637 opline->op2.constant, in zend_optimizer_compact_literals()
682 opline->op2.constant, in zend_optimizer_compact_literals()
708 opline->op2.constant, in zend_optimizer_compact_literals()
[all …]
H A Doptimize_func_calls.c127 SET_UNUSED(opline->op2); in zend_try_inline_call()
204 fcall->op2.constant = fcall->op2.constant + 1; in zend_optimize_func_calls()
211 literal_dtor(&op_array->literals[fcall->op2.constant]); in zend_optimize_func_calls()
212 literal_dtor(&op_array->literals[fcall->op2.constant + 2]); in zend_optimize_func_calls()
213 fcall->op2.constant = fcall->op2.constant + 1; in zend_optimize_func_calls()
280 if (has_known_send_mode(&call_stack[call - 1], opline->op2.num)) { in zend_optimize_func_calls()
293 if (has_known_send_mode(&call_stack[call - 1], opline->op2.num)) { in zend_optimize_func_calls()
294 call_stack[call - 1].func_arg_num = opline->op2.num; in zend_optimize_func_calls()
315 if (has_known_send_mode(&call_stack[call - 1], opline->op2.num)) { in zend_optimize_func_calls()
330 if (has_known_send_mode(&call_stack[call - 1], opline->op2.num)) { in zend_optimize_func_calls()
[all …]
H A Dsccp.c741 if (Z_TYPE_P(op2) != IS_ARRAY && !IS_PARTIAL_ARRAY(op2)) { in ct_eval_array_key_exists()
910 if (op2) { in sccp_visit_instr()
914 if (op2 && IS_BOT(op2)) { in sccp_visit_instr()
942 if (!op2) { in sccp_visit_instr()
1105 if (op2) { in sccp_visit_instr()
1117 if (op2 && IS_BOT(op2)) { in sccp_visit_instr()
1142 if (!op2) { in sccp_visit_instr()
1233 if ((op1 && IS_BOT(op1)) || (op2 && IS_BOT(op2))) { in sccp_visit_instr()
1266 SKIP_IF_TOP(op2); in sccp_visit_instr()
1282 if (op2) { in sccp_visit_instr()
[all …]
H A Dzend_optimizer.c58 if (zend_binary_op_produces_error(opcode, op1, op2)) { in zend_optimizer_eval_binary_op()
63 return binary_op(result, op1, op2); in zend_optimizer_eval_binary_op()
218 SET_UNUSED(opline->op2); in zend_optimizer_convert_to_free_op1()
223 SET_UNUSED(opline->op2); in zend_optimizer_convert_to_free_op1()
328 opline->op2.num = alloc_cache_slots(op_array, 1); in zend_optimizer_update_op1_const()
696 opline->op2.var == var) { in zend_optimizer_replace_by_const()
1267 opline->op2.jmp_addr = &op_array->opcodes[opline->op2.jmp_addr - old_opcodes]; in zend_redo_pass_two()
1271 opline->op2.jmp_addr = &op_array->opcodes[opline->op2.jmp_addr - old_opcodes]; in zend_redo_pass_two()
1389 opline->op2.jmp_addr = &op_array->opcodes[opline->op2.jmp_addr - old_opcodes]; in zend_redo_pass_two_ex()
1393 opline->op2.jmp_addr = &op_array->opcodes[opline->op2.jmp_addr - old_opcodes]; in zend_redo_pass_two_ex()
[all …]
H A Ddfa_pass.c813 opline->op2.num = 0; in zend_dfa_optimize_jmps()
820 opline->op2.num = 0; in zend_dfa_optimize_jmps()
844 opline->op2.num = 0; in zend_dfa_optimize_jmps()
851 opline->op2.num = 0; in zend_dfa_optimize_jmps()
988 SET_UNUSED(opline->op2); in zend_dfa_optimize_jmps()
1227 opline->op2.num = 0; in zend_dfa_optimize_op_array()
1276 opline->op2.num = 0; in zend_dfa_optimize_op_array()
1645 opline->op1.var = opline->op2.var; in zend_dfa_optimize_op_array()
1647 opline->op2.var = 0; in zend_dfa_optimize_op_array()
1665 SET_UNUSED(opline->op2); in zend_dfa_optimize_op_array()
[all …]
H A Dzend_optimizer_internal.h32 #define ZEND_OP2_LITERAL(opline) (op_array)->literals[(opline)->op2.constant]
33 #define ZEND_OP2_JMP_ADDR(opline) OP_JMP_ADDR(opline, (opline)->op2)
44 #define SAME_VAR(op1, op2) (op1 ## _type == op2 ## _type && op1.var == op2.var) argument
86 zend_result zend_optimizer_eval_binary_op(zval *result, uint8_t opcode, zval *op1, zval *op2);
H A Dblock_pass.c198 znode_op op2 = opline->op2; in zend_optimize_block() local
203 VAR_SOURCE(op2) = NULL; in zend_optimize_block()
454 SET_UNUSED(opline->op2); in zend_optimize_block()
466 SET_UNUSED(opline->op2); in zend_optimize_block()
545 src->op2.num = tmp; in zend_optimize_block()
563 src->op2.num = tmp; in zend_optimize_block()
655 opline->op2.num = 0; in zend_optimize_block()
763 opline->op2.var = 0; in zend_optimize_block()
773 opline->op2.var = 0; in zend_optimize_block()
1092 opline->op2.num = map[opline->op2.num]; in assemble_code_blocks()
[all …]
H A Dpass1.c55 SET_UNUSED(opline->op2); in replace_by_const_or_qm_assign()
199 if (send1_opline->op2.num == 2) { in zend_optimizer_pass1()
241 opline->op2.constant = send2_opline->op1.constant; in zend_optimizer_pass1()
299 opline->op2.num = 0; in zend_optimizer_pass1()
307 opline->op2.num = 0; in zend_optimizer_pass1()
327 COPY_NODE(opline->op1, opline->op2); in zend_optimizer_pass1()
328 opline->op2.num = 0; in zend_optimizer_pass1()
/php-src/ext/opcache/jit/ir/
H A Dir_sccp.c44 op2 = ir_sccp_identity(_values, op2); in ir_sccp_fold()
50 op2_insn = (op2 > 0 && IR_IS_CONST_OP(_values[op2].op)) ? _values + op2 : ctx->ir_base + op2; in ir_sccp_fold()
57 op2 = ctx->fold_insn.op2; in ir_sccp_fold()
506 op2 = insn->op2; in ir_sccp_fold2()
518 op2 = ctx->fold_insn.op2; in ir_sccp_fold2()
525 || insn->op2 != ctx->fold_insn.op2 in ir_sccp_fold2()
542 if (insn->op2 != ctx->fold_insn.op2) { in ir_sccp_fold2()
559 insn->op2 = ctx->fold_insn.op2; in ir_sccp_fold2()
851 insn->op2 = ir_promote_d2f(ctx, insn->op2, ref); in ir_promote_d2f()
1512 || (cond->op2 == insn->op2 in ir_optimize_phi()
[all …]
H A Dir_fold.h1510 op2 = op1_insn->op2; in IR_FOLD()
1746 op2 = op2_insn->op2; in IR_FOLD()
1756 op2 = op2_insn->op2; in IR_FOLD()
2526 op2 = op1_insn->op2; in IR_FOLD()
2552 op2 = op1_insn->op2; in IR_FOLD()
2646 op2 = op1_insn->op2; in IR_FOLD()
2671 op2 = op1_insn->op2; in IR_FOLD()
2825 if (op1_insn->op1 == op2 || op1_insn->op2 == op2) { in IR_FOLD()
2853 op2 = op1_insn->op2; in IR_FOLD()
2863 op2 = op1_insn->op2; in IR_FOLD()
[all …]
H A Dir_x86.dasc2384 && ctx->ir_base[op_insn->op2].op2 == insn->op2
3754 ir_ref op2 = insn->op2;
3881 ir_ref op2 = insn->op2;
3930 ir_ref op2 = insn->op2;
5021 ir_ref op2 = insn->op2;
5267 ir_ref op2 = insn->op2;
5384 ir_ref op2 = insn->op2;
5639 ir_ref op2 = insn->op2;
5801 op2 = cmp_insn->op2;
6104 ir_ref op2 = insn->op2;
[all …]
H A Dir_aarch64.dasc984 && ctx->ir_base[op_insn->op2].op2 == insn->op3) {
1069 if (use_insn->op2 == insn->op2) {
1794 ir_ref op2 = insn->op2;
1943 ir_ref op2 = insn->op2;
2073 ir_ref op2 = op_insn->op2;
2615 ir_ref op2 = insn->op2;
2728 ir_ref op2 = insn->op2;
2827 op2 = cmp_insn->op2;
3065 ir_ref op2 = cmp_insn->op2;
3157 ir_ref op2 = insn->op2;
[all …]
H A Dir.c805 insn->op2 = op2;
842 if (op2 > limit) {
843 limit = op2;
972 ctx->fold_insn.op2 = op2;
1006 ctx->fold_insn.op2 = op2;
1768 if (insn1->op2 == insn2->op2) {
1808 off1 = insn1->op2;
1820 off2 = insn2->op2;
2221 ref = insn->op2;
2238 ref = insn->op2;
[all …]
/php-src/ext/ffi/
H A Dphp_ffi.h241 void zend_ffi_expr_bool_or(zend_ffi_val *val, zend_ffi_val *op2);
242 void zend_ffi_expr_bool_and(zend_ffi_val *val, zend_ffi_val *op2);
243 void zend_ffi_expr_bw_or(zend_ffi_val *val, zend_ffi_val *op2);
244 void zend_ffi_expr_bw_xor(zend_ffi_val *val, zend_ffi_val *op2);
245 void zend_ffi_expr_bw_and(zend_ffi_val *val, zend_ffi_val *op2);
248 void zend_ffi_expr_is_less(zend_ffi_val *val, zend_ffi_val *op2);
254 void zend_ffi_expr_add(zend_ffi_val *val, zend_ffi_val *op2);
255 void zend_ffi_expr_sub(zend_ffi_val *val, zend_ffi_val *op2);
256 void zend_ffi_expr_mul(zend_ffi_val *val, zend_ffi_val *op2);
257 void zend_ffi_expr_div(zend_ffi_val *val, zend_ffi_val *op2);
[all …]
H A Dffi.g576 expression(&op2)
584 {zend_ffi_val op2;}
593 {zend_ffi_val op2;}
602 {zend_ffi_val op2;}
611 {zend_ffi_val op2;}
620 {zend_ffi_val op2;}
629 {zend_ffi_val op2;}
641 {zend_ffi_val op2;}
659 {zend_ffi_val op2;}
671 {zend_ffi_val op2;}
[all …]
H A Dffi.c1855 ZVAL_DEREF(op2); in zend_ffi_cdata_do_operation()
1869 if (Z_TYPE_P(op2) == IS_OBJECT && Z_OBJCE_P(op2) == zend_ffi_cdata_ce) { in zend_ffi_cdata_do_operation()
7174 …} else if (op2->kind == ZEND_FFI_VAL_FLOAT || op2->kind == ZEND_FFI_VAL_DOUBLE || op2->kind == ZEN…
7190 …} else if (op2->kind == ZEND_FFI_VAL_FLOAT || op2->kind == ZEND_FFI_VAL_DOUBLE || op2->kind == ZEN…
7203 …} else if (op2->kind == ZEND_FFI_VAL_FLOAT || op2->kind == ZEND_FFI_VAL_DOUBLE || op2->kind == ZEN…
7218 …} else if (op2->kind == ZEND_FFI_VAL_FLOAT || op2->kind == ZEND_FFI_VAL_DOUBLE || op2->kind == ZEN…
7240 …} else if (op2->kind == ZEND_FFI_VAL_FLOAT || op2->kind == ZEND_FFI_VAL_DOUBLE || op2->kind == ZEN…
7255 …} else if (op2->kind == ZEND_FFI_VAL_FLOAT || op2->kind == ZEND_FFI_VAL_DOUBLE || op2->kind == ZEN…
7297 …} else if (op2->kind == ZEND_FFI_VAL_FLOAT || op2->kind == ZEND_FFI_VAL_DOUBLE || op2->kind == ZEN…
7313 …} else if (op2->kind == ZEND_FFI_VAL_FLOAT || op2->kind == ZEND_FFI_VAL_DOUBLE || op2->kind == ZEN…
[all …]
/php-src/Zend/tests/
H A Dbug37046.phpt14 echo "op2 $k\n";
21 op2 0
22 op2 1
/php-src/ext/zend_test/
H A Dobject_handlers.c46 static void donc_add(zval *result, zval *op1, zval *op2) in donc_add() argument
55 if (IS_DONC(op2)) { in donc_add()
56 val_2 = Z_LVAL_P(OBJ_PROP_NUM(Z_OBJ_P(op2), 0)); in donc_add()
58 val_2 = zval_get_long(op2); in donc_add()
63 static void donc_mul(zval *result, zval *op1, zval *op2) in donc_mul() argument
72 if (IS_DONC(op2)) { in donc_mul()
73 val_2 = Z_LVAL_P(OBJ_PROP_NUM(Z_OBJ_P(op2), 0)); in donc_mul()
75 val_2 = zval_get_long(op2); in donc_mul()
81 static zend_result donc_do_operation(zend_uchar opcode, zval *result, zval *op1, zval *op2) in donc_do_operation() argument
93 donc_add(result, op1, op2); in donc_do_operation()
[all …]
/php-src/ext/intl/collator/
H A Dcollator_sort.c51 static int collator_regular_compare_function(zval *result, zval *op1, zval *op2) in collator_regular_compare_function() argument
64 str2_p = collator_convert_object_to_string( op2, &str2 ); in collator_regular_compare_function()
136 static int collator_numeric_compare_function(zval *result, zval *op1, zval *op2) in collator_numeric_compare_function() argument
148 if( Z_TYPE_P(op2) == IS_STRING ) in collator_numeric_compare_function()
150 num2_p = collator_convert_string_to_double( op2, &num2 ); in collator_numeric_compare_function()
151 op2 = num2_p; in collator_numeric_compare_function()
154 ZVAL_LONG(result, numeric_compare_function(op1, op2)); in collator_numeric_compare_function()
168 static int collator_icu_compare_function(zval *result, zval *op1, zval *op2) in collator_icu_compare_function() argument
172 zend_string *str2 = collator_zval_to_string(op2); in collator_icu_compare_function()

Completed in 481 milliseconds

1234