/PHP-8.1/Zend/Optimizer/ |
H A D | zend_dfg.c | 24 uint32_t var_num; in _zend_dfg_add_use_def_op() local 29 if (!zend_bitset_in(def, var_num)) { in _zend_dfg_add_use_def_op() 30 zend_bitset_incl(use, var_num); in _zend_dfg_add_use_def_op() 39 zend_bitset_incl(use, var_num); in _zend_dfg_add_use_def_op() 47 zend_bitset_incl(use, var_num); in _zend_dfg_add_use_def_op() 75 zend_bitset_incl(use, var_num); in _zend_dfg_add_use_def_op() 78 zend_bitset_incl(def, var_num); in _zend_dfg_add_use_def_op() 90 zend_bitset_incl(use, var_num); in _zend_dfg_add_use_def_op() 93 zend_bitset_incl(def, var_num); in _zend_dfg_add_use_def_op() 189 zend_bitset_incl(use, var_num); in _zend_dfg_add_use_def_op() [all …]
|
H A D | zend_dfg.h | 38 #define DFG_SET(set, set_size, block_num, var_num) \ argument 39 zend_bitset_incl(DFG_BITSET(set, set_size, block_num), (var_num)) 41 #define DFG_ISSET(set, set_size, block_num, var_num) \ argument 42 zend_bitset_in(DFG_BITSET(set, set_size, block_num), (var_num))
|
H A D | scdf.h | 55 static inline void scdf_add_to_worklist(scdf_ctx *scdf, int var_num) { in scdf_add_to_worklist() argument 57 zend_ssa_var *var = &ssa->vars[var_num]; in scdf_add_to_worklist() 69 static inline void scdf_add_def_to_worklist(scdf_ctx *scdf, int var_num) { in scdf_add_def_to_worklist() argument 70 zend_ssa_var *var = &scdf->ssa->vars[var_num]; in scdf_add_def_to_worklist() 74 zend_bitset_incl(scdf->phi_var_worklist, var_num); in scdf_add_def_to_worklist()
|
H A D | dce.c | 275 zend_ssa_var *var = &ctx->ssa->vars[var_num]; in add_to_worklists() 281 if (!check || zend_bitset_in(ctx->phi_dead, var_num)) { in add_to_worklists() 282 zend_bitset_incl(ctx->phi_worklist, var_num); in add_to_worklists() 287 static inline void add_to_phi_worklist_no_val(context *ctx, int var_num) { in add_to_phi_worklist_no_val() argument 288 zend_ssa_var *var = &ctx->ssa->vars[var_num]; in add_to_phi_worklist_no_val() 289 if (var->definition_phi && zend_bitset_in(ctx->phi_dead, var_num)) { in add_to_phi_worklist_no_val() 290 zend_bitset_incl(ctx->phi_worklist_no_val, var_num); in add_to_phi_worklist_no_val() 326 static inline bool is_var_dead(context *ctx, int var_num) { in is_var_dead() argument 327 zend_ssa_var *var = &ctx->ssa->vars[var_num]; in is_var_dead() 329 return zend_bitset_in(ctx->phi_dead, var_num); in is_var_dead() [all …]
|
H A D | zend_dump.h | 42 …op_array, const zend_ssa *ssa, int ssa_var_num, zend_uchar var_type, int var_num, uint32_t dump_fl… 43 ZEND_API void zend_dump_var(const zend_op_array *op_array, zend_uchar var_type, int var_num);
|
H A D | block_pass.c | 1587 uint32_t var_num; in zend_t_usage() local 1622 var_num = VAR_NUM(opline->op1.var); in zend_t_usage() 1624 zend_bitset_incl(used_ext, var_num); in zend_t_usage() 1628 var_num = VAR_NUM(opline->op2.var); in zend_t_usage() 1634 zend_bitset_incl(used_ext, var_num); in zend_t_usage() 1637 var_num = VAR_NUM(opline->op2.var); in zend_t_usage() 1639 zend_bitset_incl(used_ext, var_num); in zend_t_usage() 1644 var_num = VAR_NUM(opline->result.var); in zend_t_usage() 1645 zend_bitset_incl(defined_here, var_num); in zend_t_usage() 1647 var_num = VAR_NUM(opline->result.var); in zend_t_usage() [all …]
|
H A D | zend_dump.c | 135 ZEND_API void zend_dump_var(const zend_op_array *op_array, zend_uchar var_type, int var_num) in zend_dump_var() argument 137 if (var_type == IS_CV && var_num < op_array->last_var) { in zend_dump_var() 138 fprintf(stderr, "CV%d($%s)", var_num, op_array->vars[var_num]->val); in zend_dump_var() 140 fprintf(stderr, "V%d", var_num); in zend_dump_var() 142 fprintf(stderr, "T%d", var_num); in zend_dump_var() 144 fprintf(stderr, "X%d", var_num); in zend_dump_var() 351 …op_array, const zend_ssa *ssa, int ssa_var_num, zend_uchar var_type, int var_num, uint32_t dump_fl… in zend_dump_ssa_var() argument 358 zend_dump_var(op_array, (var_num < op_array->last_var ? IS_CV : var_type), var_num); in zend_dump_ssa_var()
|
H A D | zend_ssa.c | 185 …zend_op_array *op_array, uint32_t build_flags, zend_op *opline, uint32_t var_num, zend_long *adjus… in find_adjusted_tmp_var() argument 192 if (op->result_type != IS_TMP_VAR || op->result.var != var_num) { in find_adjusted_tmp_var() 1321 int j, var_num = phi->sources[pred_offset]; in zend_ssa_remove_phi_source() local 1333 if (phi->sources[j] == var_num) { in zend_ssa_remove_phi_source() 1344 zend_ssa_remove_use_of_phi_source(ssa, phi, var_num, next_phi); in zend_ssa_remove_phi_source() 1360 void zend_ssa_remove_uses_of_var(zend_ssa *ssa, int var_num) /* {{{ */ in zend_ssa_remove_uses_of_var() argument 1362 zend_ssa_var *var = &ssa->vars[var_num]; in zend_ssa_remove_uses_of_var() 1368 if (phi->sources[i] == var_num) { in zend_ssa_remove_uses_of_var() 1376 if (ssa_op->op1_use == var_num) { in zend_ssa_remove_uses_of_var() 1380 if (ssa_op->op2_use == var_num) { in zend_ssa_remove_uses_of_var() [all …]
|
H A D | zend_ssa.h | 157 void zend_ssa_remove_uses_of_var(zend_ssa *ssa, int var_num);
|
H A D | sccp.c | 2121 static zval *value_from_type_and_range(sccp_ctx *ctx, int var_num, zval *tmp) { in value_from_type_and_range() argument 2123 zend_ssa_var_info *info = &ssa->var_info[var_num]; in value_from_type_and_range() 2199 static int try_remove_definition(sccp_ctx *ctx, int var_num, zend_ssa_var *var, zval *value) in try_remove_definition() argument 2209 if (ssa_op->result_def == var_num) { in try_remove_definition() 2285 ssa_op->result_def = var_num; in try_remove_definition() 2323 } else if (ssa_op->op1_def == var_num) { in try_remove_definition()
|
H A D | zend_inference.c | 4078 const zend_op_array *op_array, zend_ssa *ssa, int var_num, in can_convert_to_double() argument 4080 zend_ssa_var *var = &ssa->vars[var_num]; in can_convert_to_double() 4085 if (zend_bitset_in(visited, var_num)) { in can_convert_to_double() 4088 zend_bitset_incl(visited, var_num); in can_convert_to_double() 4090 for (use = var->use_chain; use >= 0; use = zend_ssa_next_use(ssa->ops, var_num, use)) { in can_convert_to_double() 4094 if (zend_ssa_is_no_val_use(opline, ssa_op, var_num)) { in can_convert_to_double() 4127 if (ssa_op->op1_use == var_num) { in can_convert_to_double() 4140 if (ssa_op->op2_use == var_num) { in can_convert_to_double() 4194 for (phi = var->phi_use_chain; phi; phi = zend_ssa_next_use_phi(ssa, var_num, phi)) { in can_convert_to_double()
|
H A D | dfa_pass.c | 480 int var_num = ssa_op->op1_use; in zend_dfa_optimize_calls() local 481 zend_ssa_var *var = ssa->vars + var_num; in zend_dfa_optimize_calls() 489 ssa_op->op1_use = var_num; in zend_dfa_optimize_calls()
|
/PHP-8.1/Zend/ |
H A D | zend_opcode.c | 694 range->var = EX_NUM_TO_VAR(op_array->last_var + var_num); in emit_live_range_raw() 911 if (EXPECTED(last_use[var_num] != (uint32_t) -1)) { in zend_calc_live_ranges() 913 if (opnum + 1 != last_use[var_num]) { in zend_calc_live_ranges() 924 emit_live_range(op_array, var_num, num, last_use[var_num], needs_live_range); in zend_calc_live_ranges() 926 last_use[var_num] = (uint32_t) -1; in zend_calc_live_ranges() 932 if (EXPECTED(last_use[var_num] == (uint32_t) -1)) { in zend_calc_live_ranges() 944 if (last_use[var_num] != (uint32_t) -1) { in zend_calc_live_ranges() 945 if (opnum + 1 != last_use[var_num]) { in zend_calc_live_ranges() 947 op_array, var_num, opnum, last_use[var_num], needs_live_range); in zend_calc_live_ranges() 949 last_use[var_num] = (uint32_t) -1; in zend_calc_live_ranges() [all …]
|
H A D | zend_execute.c | 4375 …_range *find_live_range(const zend_op_array *op_array, uint32_t op_num, uint32_t var_num) /* {{{ */ in find_live_range() argument 4381 && var_num == (range->var & ~ZEND_LIVE_MASK)) { in find_live_range() 4401 uint32_t var_num = range->var & ~ZEND_LIVE_MASK; in cleanup_live_vars() local 4402 zval *var = EX_VAR(var_num); in cleanup_live_vars() 4421 || last->result.var != var_num) { in cleanup_live_vars() 4524 uint32_t var_num = range->var & ~ZEND_LIVE_MASK; in zend_unfinished_execution_gc_ex() local 4525 zval *var = EX_VAR(var_num); in zend_unfinished_execution_gc_ex()
|
H A D | zend_gc.c | 1700 uint32_t var_num = range->var & ~ZEND_LIVE_MASK; in zend_gc_root_tmpvars() local 1701 zval *var = ZEND_CALL_VAR(ex, var_num); in zend_gc_root_tmpvars()
|
H A D | zend_compile.c | 60 uint32_t var_num; member 677 info.var_num = loop_var->u.op.var; in zend_begin_loop() 4906 opline->result.var = loop_var->var_num; in zend_handle_loops_and_finally_ex() 4915 opline->op1.var = loop_var->var_num; in zend_handle_loops_and_finally_ex() 4931 opline->op1.var = loop_var->var_num; in zend_handle_loops_and_finally_ex() 5940 fast_call.var_num = CG(context).fast_call_var; in zend_compile_try() 6037 discard_exception.var_num = CG(context).fast_call_var; in zend_compile_try()
|
/PHP-8.1/ext/opcache/jit/ |
H A D | zend_jit_trace.c | 5029 uint32_t var_num = EX_VAR_TO_NUM(opline->op2.var); in zend_jit_trace() local 5031 if (STACK_MEM_TYPE(stack, var_num) != type in zend_jit_trace() 5034 if (!zend_jit_store_var_type(&dasm_state, var_num, type)) { in zend_jit_trace() 5037 SET_STACK_TYPE(stack, var_num, type, 1); in zend_jit_trace() 5080 uint32_t var_num = EX_VAR_TO_NUM(opline->op1.var); in zend_jit_trace() local 5082 if (STACK_MEM_TYPE(stack, var_num) != type in zend_jit_trace() 5085 if (!zend_jit_store_var_type(&dasm_state, var_num, type)) { in zend_jit_trace() 5088 SET_STACK_TYPE(stack, var_num, type, 1); in zend_jit_trace() 5177 uint32_t var_num = EX_VAR_TO_NUM(opline->op1.var); in zend_jit_trace() local 5179 if (STACK_MEM_TYPE(stack, var_num) != type in zend_jit_trace() [all …]
|
H A D | zend_jit.c | 2393 int var_num = ssa->vars[ival->ssa_var].var; in zend_jit_dump_lifetime_interval() local 2396 zend_dump_var(op_array, (var_num < op_array->last_var ? IS_CV : 0), var_num); in zend_jit_dump_lifetime_interval() 2418 var_num = ssa->vars[ival->hint->ssa_var].var; in zend_jit_dump_lifetime_interval() 2420 zend_dump_var(op_array, (var_num < op_array->last_var ? IS_CV : 0), var_num); in zend_jit_dump_lifetime_interval()
|