/php-src/Zend/Optimizer/ |
H A D | compact_vars.c | 30 uint32_t used_vars_len = zend_bitset_len(op_array->last_var + op_array->T); in zend_optimizer_compact_vars() 32 uint32_t *vars_map = do_alloca((op_array->last_var + op_array->T) * sizeof(uint32_t), use_heap2); in zend_optimizer_compact_vars() 58 for (i = 0; i < op_array->last_var; i++) { in zend_optimizer_compact_vars() 67 for (i = op_array->last_var; i < op_array->last_var + op_array->T; i++) { in zend_optimizer_compact_vars() 76 if (num_cvs == op_array->last_var && num_tmps == op_array->T) { in zend_optimizer_compact_vars() 81 ZEND_ASSERT(num_cvs <= op_array->last_var); in zend_optimizer_compact_vars() 99 if (num_cvs != op_array->last_var) { in zend_optimizer_compact_vars() 102 for (i = 0; i < op_array->last_var; i++) { in zend_optimizer_compact_vars() 112 for (i = 0; i < op_array->last_var; i++) { in zend_optimizer_compact_vars() 118 op_array->last_var = num_cvs; in zend_optimizer_compact_vars()
|
H A D | ssa_integrity.c | 94 return ssa_var->definition >= 0 || ssa_var->definition_phi || var < op_array->last_var; in is_defined() 109 (i), (ssa->vars[i].var < op_array->last_var ? "CV $" : "TMP"), \ 110 (ssa->vars[i].var < op_array->last_var ? ZSTR_VAL(op_array->vars[ssa->vars[i].var]) : "") 128 if (var->definition < 0 && !var->definition_phi && i > op_array->last_var) { in ssa_verify_integrity()
|
H A D | zend_ssa.c | 833 memcpy(tmp, var, sizeof(int) * (op_array->last_var + op_array->T)); in zend_ssa_rename() 949 if ((blocks_count * (op_array->last_var + op_array->T)) > 4 * 1024 * 1024) { in zend_build_ssa() 958 dfg.vars = op_array->last_var + op_array->T; in zend_build_ssa() 1065 memset(var + op_array->last_var, 0xff, op_array->T * sizeof(int)); in zend_build_ssa() 1067 for (j = 0; j < op_array->last_var; j++) { in zend_build_ssa() 1070 ssa->vars_count = op_array->last_var; in zend_build_ssa() 1094 for (i = 0; i < op_array->last_var; i++) { in zend_ssa_compute_use_def_chains() 1100 for (i = op_array->last_var; i < ssa->vars_count; i++) { in zend_ssa_compute_use_def_chains() 1187 for (i = 0; i < op_array->last_var; i++) { in zend_ssa_compute_use_def_chains() 1194 for (i = op_array->last_var; i < ssa->vars_count; i++) { in zend_ssa_compute_use_def_chains() [all …]
|
H A D | zend_dump.c | 142 if (var_type == IS_CV && var_num < op_array->last_var) { in zend_dump_var() 376 zend_dump_var(op_array, (var_num < op_array->last_var ? IS_CV : var_type), var_num); in zend_dump_ssa_var() 414 …zend_dump_ssa_var(op_array, ssa, r->min_ssa_var, (r->min_var < op_array->last_var ? IS_CV : 0), r-… in zend_dump_range_constraint() 429 …zend_dump_ssa_var(op_array, ssa, r->max_ssa_var, (r->max_var < op_array->last_var ? IS_CV : 0), r-… in zend_dump_range_constraint() 957 fprintf(stderr, ", vars=%d, tmps=%d", op_array->last_var, op_array->T); in zend_dump_op_array() 1017 for (uint32_t i = 0; i < op_array->last_var; i++) { in zend_dump_op_array() 1209 for (i = 0; i < op_array->last_var + op_array->T; i++) { in zend_dump_var_set()
|
H A D | optimize_temp_vars_5.c | 46 int offset = op_array->last_var; in zend_optimize_temporary_variables()
|
H A D | escape_analysis.c | 397 for (i = op_array->last_var; i < ssa_vars_count; i++) { in zend_ssa_escape_analysis() 423 for (i = op_array->last_var; i < ssa_vars_count; i++) { in zend_ssa_escape_analysis()
|
H A D | dce.c | 335 return var_num >= ctx->op_array->last_var; in is_var_dead() 556 if (phi->var >= op_array->last_var in dce_optimize_op_array()
|
H A D | block_pass.c | 1427 bitset_len = zend_bitset_len(op_array->last_var + op_array->T); in zend_t_usage() 1495 for (i = op_array->last_var; i< op_array->T; i++) { in zend_t_usage() 1689 if (cfg.blocks_count * (op_array->last_var + op_array->T) > 64 * 1024 * 1024) { in zend_optimize_cfg() 1698 bitset_len = zend_bitset_len(op_array->last_var + op_array->T); in zend_optimize_cfg() 1699 Tsource = zend_arena_calloc(&ctx->arena, op_array->last_var + op_array->T, sizeof(zend_op *)); in zend_optimize_cfg() 1721 memset(Tsource, 0, (op_array->last_var + op_array->T) * sizeof(zend_op *)); in zend_optimize_cfg()
|
H A D | sccp.c | 2380 for (i = ssa->vars_count - 1; i >= op_array->last_var; i--) { in replace_constant_operands() 2448 for (; i < op_array->last_var; ++i) { in sccp_context_init() 2464 for (i = sccp->scdf.op_array->last_var; i < sccp->scdf.ssa->vars_count; ++i) { in sccp_context_free() 2487 for (i = op_array->last_var; i < ssa->vars_count; i++) { in sccp_optimize_op_array()
|
H A D | zend_inference.c | 1963 if (__ssa_var->var < op_array->last_var) { \ 1977 __ssa_var->var >= op_array->last_var || \ 4447 for (v = op_array->last_var; v < ssa->vars_count; v++) { in zend_type_narrowing() 4716 for (j = op_array->last_var; j < ssa_vars_count; j++) { in zend_infer_types() 4753 if (def >= 0 && ssa->vars[var].var < op_array->last_var) { in zend_mark_cv_references() 4887 for (i = 0; i < op_array->last_var; i++) { in zend_ssa_inference() 4892 for (i = 0; i < op_array->last_var; i++) { in zend_ssa_inference() 4900 for (i = op_array->last_var; i < ssa->vars_count; i++) { in zend_ssa_inference()
|
/php-src/Zend/ |
H A D | zend_opcode.c | 60 op_array->last_var = 0; in init_op_array() 575 i = op_array->last_var; in destroy_op_array() 731 range->var = EX_NUM_TO_VAR(op_array->last_var + var_num); in emit_live_range_raw() 835 uint32_t rt_var_num = EX_NUM_TO_VAR(op_array->last_var + var_num); in emit_live_range() 933 uint32_t var_offset = op_array->last_var; in zend_calc_live_ranges() 1054 if (CG(context).vars_size != op_array->last_var) { in pass_two() 1055 …op_array->vars = (zend_string**) erealloc(op_array->vars, sizeof(zend_string*)*op_array->last_var); in pass_two() 1056 CG(context).vars_size = op_array->last_var; in pass_two() 1189 opline->op1.var = EX_NUM_TO_VAR(op_array->last_var + opline->op1.var); in pass_two() 1194 opline->op2.var = EX_NUM_TO_VAR(op_array->last_var + opline->op2.var); in pass_two() [all …]
|
H A D | zend_execute_API.c | 1817 if (!ex->func->op_array.last_var) { in zend_rebuild_symbol_table() 1823 if (!ex->func->op_array.last_var) { in zend_rebuild_symbol_table() 1829 if (EXPECTED(ex->func->op_array.last_var)) { in zend_rebuild_symbol_table() 1851 if (EXPECTED(op_array->last_var)) { in zend_attach_symbol_table() 1853 zend_string **end = str + op_array->last_var; in zend_attach_symbol_table() 1885 if (EXPECTED(op_array->last_var)) { in zend_detach_symbol_table() 1887 zend_string **end = str + op_array->last_var; in zend_detach_symbol_table() 1917 if (EXPECTED(op_array->last_var)) { in zend_set_local_var() 1919 zend_string **end = str + op_array->last_var; in zend_set_local_var() 1959 if (EXPECTED(op_array->last_var)) { in zend_set_local_var_str() [all …]
|
H A D | zend_execute.h | 292 used_stack += func->op_array.last_var - MIN(func->op_array.num_args, num_args); in zend_vm_calc_used_stack() 309 zval *p = ZEND_CALL_VAR_NUM(call, call->func->op_array.last_var + call->func->op_array.T); in zend_vm_stack_free_extra_args_ex()
|
H A D | zend_observer.c | 246 …ata **)&Z_PTR_P(EX_VAR_NUM((ZEND_USER_CODE(func->type) ? func->op_array.last_var : ZEND_CALL_NUM_A… in prev_observed_frame()
|
H A D | zend_builtin_functions.c | 247 …arg = ZEND_CALL_VAR_NUM(ex, ex->func->op_array.last_var + ex->func->op_array.T) + (requested_offse… in ZEND_FUNCTION() 301 p = ZEND_CALL_VAR_NUM(ex, ex->func->op_array.last_var + ex->func->op_array.T); in ZEND_FUNCTION() 1754 p = ZEND_CALL_VAR_NUM(call, call->func->op_array.last_var + call->func->op_array.T); in debug_backtrace_get_args()
|
H A D | zend_execute.c | 4103 int count = EX(func)->op_array.last_var; in i_free_compiled_variables() 4197 delta = op_array->last_var + op_array->T - first_extra_arg; in zend_copy_extra_args() 4264 zend_init_cvs(num_args, op_array->last_var EXECUTE_DATA_CC); in i_init_func_execute_data() 4334 if (op_array->last_var) { in i_init_code_execute_data() 4816 uint32_t i, num_cvs = EX(func)->op_array.last_var; in zend_unfinished_execution_gc_ex() 4823 zval *zv = EX_VAR_NUM(op_array->last_var + op_array->T); in zend_unfinished_execution_gc_ex()
|
H A D | zend_compile.h | 522 int last_var; /* number of CV variables */ member
|
/php-src/ext/opcache/jit/ |
H A D | zend_jit_trace.c | 365 if (var >= op_array->last_var) { in zend_jit_var_may_alias() 695 vars_count = op_array->last_var; in zend_jit_trace_add_phis() 1610 vars_count = op_array->last_var; in zend_jit_trace_build_tssa() 1690 while (i < op_array->last_var) { in zend_jit_trace_build_tssa() 1754 if (i < op_array->last_var) { in zend_jit_trace_build_tssa() 1768 && i >= op_array->last_var) { in zend_jit_trace_build_tssa() 2889 j = op_array->last_var; in zend_jit_trace_allocate_registers() 3209 for (i = op_array->last_var; i < op_array->last_var + op_array->T; i++) { in zend_jit_trace_allocate_registers() 4181 int last_var; in zend_jit_trace() local 4203 last_var = op_array->last_var; in zend_jit_trace() [all …]
|
H A D | zend_jit.c | 474 for (j = op_array->last_var; j < ssa->vars_count; j++) { in zend_ssa_cv_info() 1230 && var_num >= op_array->last_var in zend_jit_allocate_registers() 1290 zend_dump_var(op_array, (var_num < op_array->last_var ? IS_CV : 0), var_num); in zend_jit_allocate_registers() 2845 if (op_array->last_var > 100) { in zend_jit() 2855 for (j = 0 ; j < op_array->last_var; j++) { in zend_jit()
|
/php-src/sapi/phpdbg/ |
H A D | phpdbg_frame.c | 71 p = ZEND_CALL_VAR_NUM(ex, op_array->last_var + op_array->T); in phpdbg_compile_stackframe()
|
H A D | phpdbg_prompt.c | 1111 phpdbg_writeln("Variables %d", PHPDBG_G(ops)->last_var ? PHPDBG_G(ops)->last_var - 1 : 0); in PHPDBG_COMMAND()
|
/php-src/ext/opcache/ |
H A D | zend_persist_calc.c | 301 ADD_SIZE(sizeof(zend_string*) * op_array->last_var); in zend_persist_op_array_calc_ex() 302 for (i = 0; i < op_array->last_var; i++) { in zend_persist_op_array_calc_ex()
|
H A D | zend_persist.c | 660 …ray->vars = zend_shared_memdup_put_free(op_array->vars, sizeof(zend_string*) * op_array->last_var); in zend_persist_op_array_ex() 661 for (i = 0; i < op_array->last_var; i++) { in zend_persist_op_array_ex()
|
H A D | zend_file_cache.c | 612 end = p + op_array->last_var; 1484 end = p + op_array->last_var;
|
/php-src/ |
H A D | .gdbinit | 38 set $cv_count = $cv_ex_ptr.func.op_array.last_var
|