/PHP-8.3/Zend/ |
H A D | zend_arena.h | 39 arena->end = (char*) arena + size; in zend_arena_create() 41 return arena; in zend_arena_create() 48 efree(arena); in zend_arena_destroy() 49 arena = prev; in zend_arena_destroy() 66 (size_t)(arena->end - (char*) arena); in zend_arena_alloc() 119 arena = arena->prev; in zend_arena_contains() 144 arena->ptr = &arena->ptrs[0]; in zend_arena_create() 145 arena->end = &arena->ptrs[ZEND_TRACKED_ARENA_SIZE]; in zend_arena_create() 155 for (ptr = arena->ptrs; ptr < arena->ptr; ptr++) { in zend_arena_destroy() 166 if (arena->ptr == arena->end) { in zend_arena_alloc() [all …]
|
H A D | zend_enum.c | 422 …ZEND_MAP_PTR_INIT(zif->run_time_cache, zend_arena_calloc(&CG(arena), 1, zend_internal_run_time_cac… in zend_enum_register_func() 436 …zend_internal_function *cases_function = zend_arena_calloc(&CG(arena), sizeof(zend_internal_functi… in zend_enum_register_funcs() 444 …zend_internal_function *from_function = zend_arena_calloc(&CG(arena), sizeof(zend_internal_functio… in zend_enum_register_funcs() 453 …zend_internal_function *try_from_function = zend_arena_calloc(&CG(arena), sizeof(zend_internal_fun… in zend_enum_register_funcs()
|
H A D | zend_interfaces.c | 300 : zend_arena_alloc(&CG(arena), sizeof(zend_class_iterator_funcs)); in zend_implement_aggregate() 339 : zend_arena_alloc(&CG(arena), sizeof(zend_class_iterator_funcs)); in zend_implement_iterator() 385 : zend_arena_alloc(&CG(arena), sizeof(zend_class_arrayaccess_funcs)); in zend_implement_arrayaccess()
|
H A D | zend_globals.h | 126 zend_arena *arena; member
|
H A D | zend_inheritance.c | 73 ? zend_arena_alloc(&CG(arena), size) : pemalloc(size, persistent); in zend_type_list_copy_ctor() 103 new_function = zend_arena_alloc(&CG(arena), sizeof(zend_internal_function)); in zend_duplicate_internal_function() 1424 c = zend_arena_alloc(&CG(arena), sizeof(zend_class_constant)); in do_inherit_class_constant() 1451 ce->properties_info_table = table = zend_arena_alloc(&CG(arena), size); in zend_build_properties_info_table() 1770 ct = zend_arena_alloc(&CG(arena), sizeof(zend_class_constant)); in do_inherit_iface_constant() 2002 new_fn = zend_arena_alloc(&CG(arena), sizeof(zend_internal_function)); in zend_add_trait_method() 2006 new_fn = zend_arena_alloc(&CG(arena), sizeof(zend_op_array)); in zend_add_trait_method() 2435 ct = zend_arena_alloc(&CG(arena),sizeof(zend_class_constant)); in zend_do_traits_constant_binding() 2888 ce = zend_arena_alloc(&CG(arena), sizeof(zend_class_entry)); in zend_lazy_class_load() 2926 new_op_array = zend_arena_alloc(&CG(arena), sizeof(zend_op_array)); in zend_lazy_class_load() [all …]
|
H A D | zend_extensions.c | 317 char *ptr = zend_arena_calloc(&CG(arena), functions, rt_size); in zend_init_internal_run_time_cache()
|
/PHP-8.3/ext/mysqlnd/ |
H A D | mysqlnd_block_alloc.c | 30 DBG_RETURN(zend_arena_alloc(&pool->arena, size)); in mysqlnd_mempool_get_chunk() 39 zend_arena * arena; in mysqlnd_mempool_create() local 43 arena = zend_arena_create(MAX(arena_size, ZEND_MM_ALIGNED_SIZE(sizeof(zend_arena)))); in mysqlnd_mempool_create() 44 ret = zend_arena_alloc(&arena, sizeof(MYSQLND_MEMORY_POOL)); in mysqlnd_mempool_create() 45 ret->arena = arena; in mysqlnd_mempool_create() 59 zend_arena_destroy(pool->arena); in mysqlnd_mempool_destroy() 69 pool->checkpoint = zend_arena_checkpoint(pool->arena); in mysqlnd_mempool_save_state() 83 zend_arena_release(&pool->arena, pool->checkpoint); in mysqlnd_mempool_restore_state()
|
/PHP-8.3/Zend/Optimizer/ |
H A D | zend_call_graph.h | 63 ZEND_API void zend_build_call_graph(zend_arena **arena, zend_script *script, zend_call_graph *call_… 64 ZEND_API void zend_analyze_call_graph(zend_arena **arena, zend_script *script, zend_call_graph *cal… 65 ZEND_API zend_call_info **zend_build_call_map(zend_arena **arena, zend_func_info *info, const zend_… 66 ZEND_API void zend_analyze_calls(zend_arena **arena, zend_script *script, uint32_t build_flags, zen…
|
H A D | zend_worklist.h | 40 static inline void zend_worklist_stack_prepare(zend_arena **arena, zend_worklist_stack *stack, int … in zend_worklist_stack_prepare() argument 44 stack->buf = (int*)zend_arena_calloc(arena, sizeof(*stack->buf), len); in zend_worklist_stack_prepare() 83 static inline void zend_worklist_prepare(zend_arena **arena, zend_worklist *worklist, int len) in zend_worklist_prepare() argument 86 …worklist->visited = (zend_bitset)zend_arena_calloc(arena, sizeof(zend_ulong), zend_bitset_len(len)… in zend_worklist_prepare() 87 zend_worklist_stack_prepare(arena, &worklist->stack, len); in zend_worklist_prepare()
|
H A D | zend_call_graph.c | 46 ZEND_API void zend_analyze_calls(zend_arena **arena, zend_script *script, uint32_t build_flags, zen… in zend_analyze_calls() argument 68 …call_info = zend_arena_calloc(arena, 1, sizeof(zend_call_info) + (sizeof(zend_send_arg_info) * ((i… in zend_analyze_calls() 224 ZEND_API void zend_build_call_graph(zend_arena **arena, zend_script *script, zend_call_graph *call_… in zend_build_call_graph() argument 229 …call_graph->op_arrays = (zend_op_array**)zend_arena_calloc(arena, call_graph->op_arrays_count, siz… in zend_build_call_graph() 230 …call_graph->func_infos = (zend_func_info*)zend_arena_calloc(arena, call_graph->op_arrays_count, si… in zend_build_call_graph() 236 ZEND_API void zend_analyze_call_graph(zend_arena **arena, zend_script *script, zend_call_graph *cal… in zend_analyze_call_graph() argument 241 zend_analyze_calls(arena, script, 0, call_graph->op_arrays[i], call_graph->func_infos + i); in zend_analyze_call_graph() 248 ZEND_API zend_call_info **zend_build_call_map(zend_arena **arena, zend_func_info *info, const zend_… in zend_build_call_map() argument 256 map = zend_arena_calloc(arena, sizeof(zend_call_info *), op_array->last); in zend_build_call_map()
|
H A D | optimize_temp_vars_5.c | 55 void *checkpoint = zend_arena_checkpoint(ctx->arena); in zend_optimize_temporary_variables() 58 taken_T = (zend_bitset) zend_arena_alloc(&ctx->arena, bitset_len * ZEND_BITSET_ELM_SIZE); in zend_optimize_temporary_variables() 59 start_of_T = (zend_op **) zend_arena_alloc(&ctx->arena, T * sizeof(zend_op *)); in zend_optimize_temporary_variables() 60 map_T = (int *) zend_arena_alloc(&ctx->arena, T * sizeof(int)); in zend_optimize_temporary_variables() 176 zend_arena_release(&ctx->arena, checkpoint); in zend_optimize_temporary_variables()
|
H A D | zend_ssa.c | 101 phi = zend_arena_calloc(arena, 1, in add_pi() 444 if ((pi = add_pi(arena, op_array, dfg, ssa, j, bf, var))) { in place_essa_pis() 447 if ((pi = add_pi(arena, op_array, dfg, ssa, j, bt, var))) { in place_essa_pis() 451 if ((pi = add_pi(arena, op_array, dfg, ssa, j, bf, var))) { in place_essa_pis() 454 if ((pi = add_pi(arena, op_array, dfg, ssa, j, bt, var))) { in place_essa_pis() 465 if ((pi = add_pi(arena, op_array, dfg, ssa, j, bf, var))) { in place_essa_pis() 469 if ((pi = add_pi(arena, op_array, dfg, ssa, j, bt, var))) { in place_essa_pis() 476 if ((pi = add_pi(arena, op_array, dfg, ssa, j, bt, var))) { in place_essa_pis() 481 if ((pi = add_pi(arena, op_array, dfg, ssa, j, bf, var))) { in place_essa_pis() 534 if ((pi = add_pi(arena, op_array, dfg, ssa, j, bt, var))) { in place_essa_pis() [all …]
|
H A D | zend_cfg.h | 118 ZEND_API void zend_build_cfg(zend_arena **arena, const zend_op_array *op_array, uint32_t build_flag… 120 ZEND_API void zend_cfg_build_predecessors(zend_arena **arena, zend_cfg *cfg);
|
H A D | dce.c | 534 void *checkpoint = zend_arena_checkpoint(optimizer_ctx->arena); in dce_optimize_op_array() 537 …ctx.instr_worklist = zend_arena_calloc(&optimizer_ctx->arena, ctx.instr_worklist_len, sizeof(zend_… in dce_optimize_op_array() 539 …ctx.phi_worklist = zend_arena_calloc(&optimizer_ctx->arena, ctx.phi_worklist_len, sizeof(zend_ulon… in dce_optimize_op_array() 540 …ctx.phi_worklist_no_val = zend_arena_calloc(&optimizer_ctx->arena, ctx.phi_worklist_len, sizeof(ze… in dce_optimize_op_array() 543 …ctx.instr_dead = zend_arena_calloc(&optimizer_ctx->arena, ctx.instr_worklist_len, sizeof(zend_ulon… in dce_optimize_op_array() 544 ctx.phi_dead = zend_arena_alloc(&optimizer_ctx->arena, ctx.phi_worklist_len * sizeof(zend_ulong)); in dce_optimize_op_array() 659 zend_arena_release(&optimizer_ctx->arena, checkpoint); in dce_optimize_op_array()
|
H A D | optimize_func_calls.c | 162 checkpoint = zend_arena_checkpoint(ctx->arena); in zend_optimize_func_calls() 163 call_stack = zend_arena_calloc(&ctx->arena, op_array->last / 2, sizeof(optimizer_call_info)); in zend_optimize_func_calls() 354 zend_arena_release(&ctx->arena, checkpoint); in zend_optimize_func_calls()
|
H A D | zend_cfg.c | 270 ZEND_API void zend_build_cfg(zend_arena **arena, const zend_op_array *op_array, uint32_t build_flag… in zend_build_cfg() argument 284 cfg->map = block_map = zend_arena_calloc(arena, op_array->last, sizeof(uint32_t)); in zend_build_cfg() 467 cfg->blocks = blocks = zend_arena_calloc(arena, sizeof(zend_basic_block), blocks_count); in zend_build_cfg() 567 block->successors = zend_arena_calloc(arena, block->successors_count, sizeof(int)); in zend_build_cfg() 592 ZEND_API void zend_cfg_build_predecessors(zend_arena **arena, zend_cfg *cfg) /* {{{ */ in zend_cfg_build_predecessors() argument 617 cfg->predecessors = predecessors = (int*)zend_arena_calloc(arena, sizeof(int), edges); in zend_cfg_build_predecessors()
|
H A D | zend_ssa.h | 147 ZEND_API zend_result zend_build_ssa(zend_arena **arena, const zend_script *script, const zend_op_ar… 148 ZEND_API void zend_ssa_compute_use_def_chains(zend_arena **arena, const zend_op_array *op_array, ze…
|
H A D | compact_literals.c | 167 void *checkpoint = zend_arena_checkpoint(ctx->arena); in zend_optimizer_compact_literals() 171 …info = (literal_info*)zend_arena_calloc(&ctx->arena, op_array->last_literal, sizeof(literal_info)); in zend_optimizer_compact_literals() 311 map = (int*)zend_arena_alloc(&ctx->arena, op_array->last_literal * sizeof(int)); in zend_optimizer_compact_literals() 480 const_slot = zend_arena_alloc(&ctx->arena, j * 6 * sizeof(int)); in zend_optimizer_compact_literals() 795 zend_arena_release(&ctx->arena, checkpoint); in zend_optimizer_compact_literals()
|
H A D | block_pass.c | 1427 checkpoint = zend_arena_checkpoint(ctx->arena); in zend_t_usage() 1429 defined_here = zend_arena_alloc(&ctx->arena, bitset_len * ZEND_BITSET_ELM_SIZE); in zend_t_usage() 1611 zend_arena_release(&ctx->arena, checkpoint); in zend_t_usage() 1687 checkpoint = zend_arena_checkpoint(ctx->arena); in zend_optimize_cfg() 1688 zend_build_cfg(&ctx->arena, op_array, 0, &cfg); in zend_optimize_cfg() 1691 zend_arena_release(&ctx->arena, checkpoint); in zend_optimize_cfg() 1700 Tsource = zend_arena_calloc(&ctx->arena, op_array->last_var + op_array->T, sizeof(zend_op *)); in zend_optimize_cfg() 1701 usage = zend_arena_alloc(&ctx->arena, bitset_len * ZEND_BITSET_ELM_SIZE); in zend_optimize_cfg() 1702 jmp_hitlist = zend_arena_alloc(&ctx->arena, cfg.blocks_count * sizeof(int)); in zend_optimize_cfg() 1770 zend_arena_release(&ctx->arena, checkpoint); in zend_optimize_cfg()
|
H A D | zend_optimizer_internal.h | 47 zend_arena *arena; member
|
H A D | dfa_pass.c | 53 zend_build_cfg(&ctx->arena, op_array, ZEND_CFG_NO_ENTRY_PREDECESSORS, &ssa->cfg); in zend_dfa_analyze_op_array() 60 zend_cfg_build_predecessors(&ctx->arena, &ssa->cfg); in zend_dfa_analyze_op_array() 83 if (zend_build_ssa(&ctx->arena, ctx->script, op_array, build_flags, ssa) == FAILURE) { in zend_dfa_analyze_op_array() 92 zend_ssa_compute_use_def_chains(&ctx->arena, op_array, ssa); in zend_dfa_analyze_op_array() 98 …if (zend_ssa_inference(&ctx->arena, op_array, ctx->script, ssa, ctx->optimization_level) == FAILUR… in zend_dfa_analyze_op_array() 1709 void *checkpoint = zend_arena_checkpoint(ctx->arena); in zend_optimize_dfa() 1713 zend_arena_release(&ctx->arena, checkpoint); in zend_optimize_dfa() 1720 zend_arena_release(&ctx->arena, checkpoint); in zend_optimize_dfa()
|
H A D | zend_optimizer.c | 47 ctx->constants = zend_arena_alloc(&ctx->arena, sizeof(HashTable)); in zend_optimizer_collect_constant() 1477 ctx.arena = zend_arena_create(64 * 1024); in zend_optimize_script() 1487 zend_build_call_graph(&ctx.arena, script, &call_graph); in zend_optimize_script() 1497 zend_analyze_call_graph(&ctx.arena, script, &call_graph); in zend_optimize_script() 1502 func_info->call_map = zend_build_call_map(&ctx.arena, func_info, call_graph.op_arrays[i]); in zend_optimize_script() 1629 zend_arena_destroy(ctx.arena); in zend_optimize_script()
|
/PHP-8.3/ext/opcache/jit/ |
H A D | zend_jit.c | 1316 zend_cfg_build_predecessors(&CG(arena), cfg); in zend_jit_build_cfg() 2474 checkpoint = zend_arena_checkpoint(CG(arena)); in zend_jit_allocate_registers() 2658 zend_arena_release(&CG(arena), checkpoint); in zend_jit_allocate_registers() 4150 zend_arena_release(&CG(arena), checkpoint); in zend_jit() 4159 zend_arena_release(&CG(arena), checkpoint); in zend_jit() 4229 checkpoint = zend_arena_checkpoint(CG(arena)); in zend_real_jit_func() 4260 zend_arena_release(&CG(arena), checkpoint); in zend_real_jit_func() 4266 zend_arena_release(&CG(arena), checkpoint); in zend_real_jit_func() 4555 checkpoint = zend_arena_checkpoint(CG(arena)); in zend_jit_script() 4621 zend_arena_release(&CG(arena), checkpoint); in zend_jit_script() [all …]
|
H A D | zend_jit_trace.c | 613 zend_arena_release(&CG(arena), checkpoint); in zend_jit_trace_build_ssa() 2739 checkpoint = zend_arena_checkpoint(CG(arena)); in zend_jit_trace_allocate_registers() 3135 zend_arena_release(&CG(arena), checkpoint); in zend_jit_trace_allocate_registers() 3170 zend_arena_release(&CG(arena), checkpoint); in zend_jit_trace_allocate_registers() 3354 zend_arena_release(&CG(arena), checkpoint); in zend_jit_trace_allocate_registers() 3440 zend_arena_release(&CG(arena), checkpoint); in zend_jit_trace_allocate_registers() 3458 zend_arena_release(&CG(arena), checkpoint); //??? in zend_jit_trace_allocate_registers() 4027 checkpoint = zend_arena_checkpoint(CG(arena)); in zend_jit_trace() 7084 zend_arena_release(&CG(arena), checkpoint); in zend_jit_trace() 7107 checkpoint = zend_arena_checkpoint(CG(arena));; in zend_jit_trace_exit_to_vm() [all …]
|
/PHP-8.3/ext/opcache/ |
H A D | zend_file_cache.c | 1838 checkpoint = zend_arena_checkpoint(CG(arena)); 1841 mem = zend_arena_alloc(&CG(arena), info.mem_size + info.str_size + 64); 1844 mem = zend_arena_alloc(&CG(arena), info.mem_size + info.str_size); 1852 zend_arena_release(&CG(arena), checkpoint); 1866 zend_arena_release(&CG(arena), checkpoint); 1887 zend_arena_release(&CG(arena), checkpoint); 1931 zend_arena_release(&CG(arena), checkpoint); 1948 zend_arena_release(&CG(arena), checkpoint);
|