/php-src/Zend/ |
H A D | zend_inheritance.c | 937 zend_op *op = fptr->op_array.opcodes; in zend_get_function_declaration() local 938 zend_op *end = op + fptr->op_array.last; in zend_get_function_declaration() 941 while (op < end) { in zend_get_function_declaration() 942 if ((op->opcode == ZEND_RECV || op->opcode == ZEND_RECV_INIT) in zend_get_function_declaration() 943 && op->op1.num == (zend_ulong)idx) in zend_get_function_declaration() 945 precv = op; in zend_get_function_declaration() 947 ++op; in zend_get_function_declaration()
|
H A D | zend_operators.c | 320 return op; in _zendi_convert_scalar_to_number_silent() 561 ZVAL_LONG(op, zend_dval_to_lval(Z_DVAL_P(op))); in convert_to_long() 566 ZVAL_LONG(op, zval_get_long(op)); in convert_to_long() 617 ZVAL_DOUBLE(op, (double) Z_LVAL_P(op)); in convert_to_double() 683 ZVAL_BOOL(op, Z_LVAL_P(op) ? 1 : 0); in convert_to_boolean() 686 ZVAL_BOOL(op, Z_DVAL_P(op) ? 1 : 0); in convert_to_boolean() 750 ZVAL_STR(op, zend_long_to_str(Z_LVAL_P(op))); in _convert_to_string() 753 ZVAL_NEW_STR(op, zend_double_to_str(Z_DVAL_P(op))); in _convert_to_string() 965 op = Z_REFVAL_P(op); in zval_get_long_func() 1004 op = Z_REFVAL_P(op); in zval_get_double_func() [all …]
|
H A D | zend_compile.c | 45 target = (src)->u.op; \ 54 (target)->u.op = src; \ 125 MAKE_NOP(op); in init_op() 126 op->extended_value = 0; in init_op() 129 op->op1_use_type = 0; in init_op() 130 op->op2_use_type = 0; in init_op() 131 op->result_use_type = 0; in init_op() 132 op->op1_def_type = 0; in init_op() 133 op->op2_def_type = 0; in init_op() 9017 return Z_TYPE_P(op) <= IS_TRUE || !zend_is_op_long_compatible(op); in zend_unary_op_produces_error() [all …]
|
H A D | zend_execute_API.c | 568 const zend_op *op = EX(opline); in zend_active_function_ex() local 569 if (ZEND_OP_IS_FRAMELESS_ICALL(op->opcode)) { in zend_active_function_ex() 570 func = ZEND_FLF_FUNC(op); in zend_active_function_ex()
|
H A D | zend_execute.c | 4642 tmp = op->op1; in zend_swap_operands() 4643 tmp_type = op->op1_type; in zend_swap_operands() 4644 op->op1 = op->op2; in zend_swap_operands() 4645 op->op1_type = op->op2_type; in zend_swap_operands() 4646 op->op2 = tmp; in zend_swap_operands() 4647 op->op2_type = tmp_type; in zend_swap_operands() 4651 tmp_info = op->op1_use_type; in zend_swap_operands() 4652 op->op1_use_type = op->op2_use_type; in zend_swap_operands() 4653 op->op2_use_type = tmp_info; in zend_swap_operands() 4654 tmp_info = op->op1_def_type; in zend_swap_operands() [all …]
|
/php-src/ext/opcache/jit/ir/ |
H A D | ir_x86.dasc | 1777 if (insn->op != IR_EQ && insn->op != IR_NE) { 5114 if (insn->op == IR_MUL || insn->op == IR_MUL_OV || insn->op == IR_DIV) { 5637 ir_op op = insn->op; 5796 ir_op op = cmp_insn->op; 6052 ir_op op = cmp_insn->op; 6105 ir_op op = ctx->ir_base[op2].op; 6107 if (op >= IR_EQ && op <= IR_UGT) { 6329 op = ctx->ir_base[insn->op1].op; 7667 ir_op op = cmp_insn->op; 9315 ir_op op = cmp_insn->op; [all …]
|
H A D | ir_private.h | 871 #define IR_IS_CONST_OP(op) ((op) > IR_NOP && (op) <= IR_C_FLOAT) argument 872 #define IR_IS_FOLDABLE_OP(op) ((op) <= IR_LAST_FOLDABLE_OP) argument 873 #define IR_IS_SYM_CONST(op) ((op) == IR_STR || (op) == IR_SYM || (op) == IR_FUNC) argument 879 if (IR_IS_SYM_CONST(v->op)) { in ir_const_is_true() 955 uint32_t flags = ir_op_flags[insn->op]; in ir_operands_count() 967 uint32_t flags = ir_op_flags[insn->op]; in ir_input_edges_count() 1060 #define IR_IS_BB_START(op) \ argument 1063 #define IR_IS_BB_MERGE(op) \ argument 1064 ((op) == IR_MERGE || (op) == IR_LOOP_BEGIN) 1066 #define IR_IS_BB_END(op) \ argument [all …]
|
H A D | ir_ra.c | 64 flags = ir_op_flags[insn->op]; in ir_assign_virtual_registers_slow() 707 if (insn->op == IR_END || insn->op == IR_LOOP_END) { in ir_compute_live_ranges() 757 if (insn->op != IR_PHI) { in ir_compute_live_ranges() 764 if (insn->op == IR_PARAM || insn->op == IR_RLOAD) { in ir_compute_live_ranges() 1325 if (insn->op == IR_END || insn->op == IR_LOOP_END) { in ir_compute_live_ranges() 1380 if (insn->op == IR_PARAM || insn->op == IR_RLOAD) { in ir_compute_live_ranges() 1919 if (insn->op == IR_PHI) { in ir_coalesce() 2142 if (insn->op == IR_PHI) { in ir_gen_dessa_moves() 2211 if (insn->op == IR_PHI) { in ir_gen_dessa_moves() 3517 IR_ASSERT(insn->op == IR_VAR || insn->op == IR_ALLOCA); in ir_linear_scan() [all …]
|
H A D | ir_sccp.c | 1104 ir_op op = insn->op; in ir_try_promote_ext() local 1120 if ((op_insn->op != IR_ADD && op_insn->op != IR_SUB && op_insn->op != IR_MUL) in ir_try_promote_ext() 1162 || use_insn->op == IR_ADD || use_insn->op == IR_SUB || use_insn->op == IR_MUL) in ir_try_promote_ext() 1398 if (end1->op == IR_END && end2->op == IR_END) { in ir_optimize_phi() 1414 is_cmp = (cond->op == IR_LT || cond->op == IR_LE || cond->op == IR_GT || cond->op == IR_GE || in ir_optimize_phi() 1415 cond->op == IR_ULT || cond->op == IR_ULE || cond->op == IR_UGT || cond->op == IR_UGE); in ir_optimize_phi() 1419 is_cmp = (cond->op == IR_LT || cond->op == IR_LE || cond->op == IR_GT || cond->op == IR_GE); in ir_optimize_phi() 1423 … is_cmp = (cond->op == IR_ULT || cond->op == IR_ULE || cond->op == IR_UGT || cond->op == IR_UGE); in ir_optimize_phi() 1923 if (cond->op >= IR_EQ && cond->op <= IR_UGT in ir_try_split_if_cmp() 2215 if (insn->op == IR_FP2FP || insn->op == IR_FP2INT || insn->op == IR_TRUNC in ir_sccp() [all …]
|
H A D | ir_cfg.c | 46 if (insn->op == IR_MERGE || insn->op == IR_LOOP_BEGIN) { in _ir_add_predecessors() 91 if (insn->op == IR_NOP) { in ir_build_cfg() 140 if (insn->op == IR_NOP) { in ir_build_cfg() 184 if (insn->op == IR_NOP) { in ir_build_cfg() 210 if (insn->op == IR_MERGE || insn->op == IR_LOOP_BEGIN) { in ir_build_cfg() 326 IR_ASSERT(insn->op == IR_MERGE || insn->op == IR_LOOP_BEGIN); in ir_remove_merge_input() 343 insn->op = IR_BEGIN; in ir_remove_merge_input() 1190 ir_op_name[ctx->ir_base[bb->start].op], ir_op_name[ctx->ir_base[bb->end].op], in ir_dump_cfg_freq_graph() 1197 ir_op_name[ctx->ir_base[bb->start].op], ir_op_name[ctx->ir_base[bb->end].op], in ir_dump_cfg_freq_graph() 1714 if (insn->op == IR_IF_TRUE || insn->op == IR_IF_FALSE) { in ir_schedule_blocks_top_down() [all …]
|
H A D | ir_gcm.c | 29 IR_ASSERT(insn->op != IR_PARAM && insn->op != IR_VAR); in ir_gcm_schedule_early() 30 IR_ASSERT(insn->op != IR_PHI && insn->op != IR_PI); in ir_gcm_schedule_early() 88 if (ctx->ir_base[ref].op >= IR_EQ && ctx->ir_base[ref].op <= IR_UGT) { in ir_gcm_select_best_block() 94 if (insn->op == IR_IF || insn->op == IR_GUARD || insn->op == IR_GUARD_NOT) { in ir_gcm_select_best_block() 542 if (use_insn->op == IR_PARAM || use_insn->op == IR_VAR) { in ir_gcm() 606 if (use_insn->op == IR_PHI || use_insn->op == IR_PI) { in ir_gcm() 809 while (insn->op == IR_PHI || insn->op == IR_PARAM || insn->op == IR_VAR || insn->op == IR_PI) { in ir_schedule() 857 while (insn->op == IR_PARAM || insn->op == IR_VAR || insn->op == IR_PI) { in ir_schedule() 1032 } else if (new_insn->op == IR_SYM || new_insn->op == IR_STR) { in ir_schedule() 1066 } else if (insn->op == IR_SYM || insn->op == IR_STR) { in ir_schedule() [all …]
|
H A D | ir.h | 383 #define IR_OPT(op, type) ((uint16_t)(op) | ((uint16_t)(type) << IR_OPT_TYPE_SHIFT)) argument 384 #define IR_OPTX(op, type, n) ((uint32_t)(op) | ((uint32_t)(type) << IR_OPT_TYPE_SHIFT) | ((uint32_t… argument 451 uint8_t op, 836 bool (*sym_data_ref) (ir_loader *loader, ir_op op, const char *ref, uintptr_t offset);
|
H A D | ir_aarch64.dasc | 417 && (insn->op == IR_ROL || insn->op == IR_ROR) 422 && (insn->op == IR_ROL || insn->op == IR_ROR) 1402 if (insn->op == IR_SYM || insn->op == IR_FUNC) { 2726 ir_op op = insn->op; 2814 ir_op op = cmp_insn->op; 2818 if (op == IR_LT || op == IR_LE) { 2820 op ^= 3; 2849 return op; 2968 if (int_cmp || op == IR_EQ || op == IR_NE) { 3062 ir_op op = cmp_insn->op; [all …]
|
H A D | ir_fold.h | 692 if (op1_insn->op != IR_ADD_OV && op1_insn->op != IR_SUB_OV && op1_insn->op != IR_MUL_OV) { in IR_FOLD() 2398 opt = IR_OPT(op1_insn->op, dst_type); in IR_FOLD() 2448 && !IR_IS_SYM_CONST(ctx->ir_base[op1_insn->op2].op) in IR_FOLD() 2512 if (IR_IS_CONST_REF(op1_insn->op2) && !IR_IS_SYM_CONST(ctx->ir_base[op1_insn->op2].op)) { in IR_FOLD() 2527 if (IR_IS_CONST_REF(op1_insn->op2) && !IR_IS_SYM_CONST(ctx->ir_base[op1_insn->op2].op)) { in IR_FOLD() 2543 if (IR_IS_CONST_REF(op1_insn->op2) && !IR_IS_SYM_CONST(ctx->ir_base[op1_insn->op2].op)) { in IR_FOLD() 2565 if (IR_IS_CONST_REF(op1_insn->op2) && !IR_IS_SYM_CONST(ctx->ir_base[op1_insn->op2].op)) { in IR_FOLD() 2592 if (IR_IS_CONST_REF(op1_insn->op2) && !IR_IS_SYM_CONST(ctx->ir_base[op1_insn->op2].op)) { in IR_FOLD() 2608 if (IR_IS_CONST_REF(op1_insn->op2) && !IR_IS_SYM_CONST(ctx->ir_base[op1_insn->op2].op)) { in IR_FOLD() 2629 if (IR_IS_CONST_REF(op2_insn->op2) && !IR_IS_SYM_CONST(ctx->ir_base[op2_insn->op2].op)) { in IR_FOLD() [all …]
|
H A D | ir.c | 121 if (insn->op == IR_FUNC || insn->op == IR_SYM) { 137 IR_ASSERT(IR_IS_CONST_OP(insn->op) || insn->op == IR_FUNC_ADDR); 921 uint8_t op; local 1845 …if ((insn1->op == IR_ALLOCA && (insn2->op == IR_ALLOCA || insn2->op == IR_SYM || insn2->op == IR_P… 1846 || (insn1->op == IR_SYM && (insn2->op == IR_ALLOCA || insn2->op == IR_SYM)) 1847 || (insn1->op == IR_PARAM && insn2->op == IR_ALLOCA)) { 1896 …} else if (insn->op == IR_MERGE || insn->op == IR_LOOP_BEGIN || insn->op == IR_CALL || insn->op ==… 2065 } else if (insn->op == IR_START || insn->op == IR_MERGE || insn->op == IR_LOOP_BEGIN) { 2573 } else if (insn->op == IR_START || insn->op == IR_MERGE || insn->op == IR_LOOP_BEGIN) { 2619 } else if (insn->op == IR_START || insn->op == IR_MERGE || insn->op == IR_LOOP_BEGIN) { [all …]
|
H A D | ir_check.c | 98 if (insn->op >= IR_LAST_OP) { in ir_check() 103 flags = ir_op_flags[insn->op]; in ir_check() 130 && !(insn->op == IR_PHI && ctx->ir_base[insn->op1].op == IR_LOOP_BEGIN)) { in ir_check() 135 switch (insn->op) { in ir_check() 168 && (insn->op == IR_SHL in ir_check() 195 && insn->op != IR_PHI in ir_check() 222 if (merge_insn->op != IR_MERGE && merge_insn->op != IR_LOOP_BEGIN) { in ir_check() 239 } else if ((insn->op == IR_RETURN || insn->op == IR_UNREACHABLE) && j == 2) { in ir_check() 256 switch (insn->op) { in ir_check() 309 switch (insn->op) { in ir_check() [all …]
|
/php-src/ext/reflection/ |
H A D | php_reflection.c | 624 zend_op *op = op_array->opcodes; in get_recv_op() local 625 zend_op *end = op + op_array->last; in get_recv_op() 628 while (op < end) { in get_recv_op() 629 if ((op->opcode == ZEND_RECV || op->opcode == ZEND_RECV_INIT in get_recv_op() 630 || op->opcode == ZEND_RECV_VARIADIC) && op->op1.num == offset) in get_recv_op() 632 return op; in get_recv_op() 634 ++op; in get_recv_op()
|
/php-src/main/ |
H A D | SAPI.c | 644 static void sapi_header_add_op(sapi_header_op_enum op, sapi_header_struct *sapi_header) in sapi_header_add_op() argument 647 (SAPI_HEADER_ADD & sapi_module.header_handler(sapi_header, op, &SG(sapi_headers)))) { in sapi_header_add_op() 648 if (op == SAPI_HEADER_REPLACE) { in sapi_header_add_op() 665 SAPI_API int sapi_header_op(sapi_header_op_enum op, void *arg) in sapi_header_op() argument 686 switch (op) { in sapi_header_op() 707 sapi_module.header_handler(&sapi_header, op, &SG(sapi_headers)); in sapi_header_op() 724 if (op == SAPI_HEADER_DELETE) { in sapi_header_op() 733 sapi_module.header_handler(&sapi_header, op, &SG(sapi_headers)); in sapi_header_op() 837 sapi_header_add_op(op, &sapi_header); in sapi_header_op()
|
H A D | output.c | 758 if (op && OG(active) && OG(running)) { in php_output_lock_error() 773 context->op = op; in php_output_context_init() 781 int op = context->op; in php_output_context_reset() local 784 context->op = op; in php_output_context_reset() 900 int original_op = context->op; in php_output_handler_op() 912 context->op, in php_output_handler_op() 924 if (php_output_lock_error(context->op)) { in php_output_handler_op() 931 context->op = original_op; in php_output_handler_op() 1022 context->op = original_op; in php_output_handler_op() 1036 if (php_output_lock_error(op)) { in php_output_op() [all …]
|
/php-src/ext/standard/ |
H A D | array.c | 6370 static void php_array_binop(INTERNAL_FUNCTION_PARAMETERS, const char *op_name, binary_op_type op, z… argument 6396 op(return_value, return_value, &dst); 6400 zend_result status = op(return_value, return_value, entry); 6408 op(return_value, return_value, &tmp); 6414 op(return_value, return_value, &tmp);
|
/php-src/ext/opcache/jit/ |
H A D | zend_jit_ir.c | 467 if (insn->op >= IR_START || insn->op == IR_CALL) { in jit_TLS() 873 if (insn->op >= IR_START || insn->op == IR_CALL) { in jit_FP() 3630 ir_op op = jit->ctx.ir_base[ref].op; in zend_jit_bb_start() local 3644 ZEND_ASSERT(op == IR_END || op == IR_UNREACHABLE || op == IR_RETURN); in zend_jit_bb_start() 3680 ir_op op = jit->ctx.ir_base[ref].op; in zend_jit_bb_start() local 3689 ZEND_ASSERT(op == IR_END || op == IR_UNREACHABLE || op == IR_RETURN); in zend_jit_bb_start() 4478 ir_op op; in zend_jit_inc_dec() local 4807 ir_op op; in zend_jit_math_long_long() local 4969 ir_op op; in zend_jit_math_long_double() local 5003 ir_op op; in zend_jit_math_double_long() local [all …]
|
/php-src/docs/source/core/data-structures/ |
H A D | reference-counting.rst | 101 no-op. If it does not, using the macro on these values is undefined behavior.
|
/php-src/ext/gmp/ |
H A D | gmp.c | 233 #define gmp_binary_ui_op(op, uop) _gmp_binary_ui_op(INTERNAL_FUNCTION_PARAM_PASSTHRU, op, uop, 0) argument 234 #define gmp_binary_op(op) _gmp_binary_ui_op(INTERNAL_FUNCTION_PARAM_PASSTHRU, op, NULL, 0) argument 235 #define gmp_binary_ui_op_no_zero(op, uop) \ argument 239 #define gmp_unary_op(op) _gmp_unary_op(INTERNAL_FUNCTION_PARAM_PASSTHRU, op) argument 240 #define gmp_unary_opl(op) _gmp_unary_opl(INTERNAL_FUNCTION_PARAM_PASSTHRU, op) argument 353 op(gmpnum_result, gmpnum_op, (gmp_ulong) shift); in shift_operator_helper() 358 #define DO_BINARY_UI_OP_EX(op, uop, check_b_zero) \ argument 364 #define DO_BINARY_UI_OP(op) DO_BINARY_UI_OP_EX(op, op ## _ui, 0) argument 365 #define DO_BINARY_OP(op) DO_BINARY_UI_OP_EX(op, NULL, 0) argument 367 #define DO_UNARY_OP(op) \ argument [all …]
|
/php-src/ext/tidy/ |
H A D | tidy.c | 962 …if (TG(clean_output) && (output_context->op & PHP_OUTPUT_HANDLER_START) && (output_context->op & P… in php_tidy_output_handler()
|
/php-src/ext/zlib/ |
H A D | zlib.c | 173 if (output_context->op & PHP_OUTPUT_HANDLER_START) { in php_zlib_output_handler_ex() 180 if (output_context->op & PHP_OUTPUT_HANDLER_CLEAN) { in php_zlib_output_handler_ex() 184 if (output_context->op & PHP_OUTPUT_HANDLER_FINAL) { in php_zlib_output_handler_ex() 219 if (output_context->op & PHP_OUTPUT_HANDLER_FINAL) { in php_zlib_output_handler_ex() 221 } else if (output_context->op & PHP_OUTPUT_HANDLER_FLUSH) { in php_zlib_output_handler_ex() 245 if (output_context->op & PHP_OUTPUT_HANDLER_FINAL) { in php_zlib_output_handler_ex() 270 if ((output_context->op & PHP_OUTPUT_HANDLER_START) in php_zlib_output_handler() 271 …&& (output_context->op != (PHP_OUTPUT_HANDLER_START|PHP_OUTPUT_HANDLER_CLEAN|PHP_OUTPUT_HANDLER_FI… in php_zlib_output_handler() 282 …if (!(output_context->op & PHP_OUTPUT_HANDLER_CLEAN) || ((output_context->op & PHP_OUTPUT_HANDLER_… in php_zlib_output_handler() 563 ctx.op = flags; in PHP_FUNCTION()
|