/PHP-8.1/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 | 308 zend_arena_alloc(&CG(arena), sizeof(zend_internal_function)); in zend_enum_register_funcs() 323 zend_arena_alloc(&CG(arena), sizeof(zend_internal_function)); in zend_enum_register_funcs() 340 zend_arena_alloc(&CG(arena), sizeof(zend_internal_function)); in zend_enum_register_funcs()
|
H A D | zend_inheritance.c | 64 ? zend_arena_alloc(&CG(arena), size) : pemalloc(size, persistent); in zend_type_copy_ctor() 86 new_function = zend_arena_alloc(&CG(arena), sizeof(zend_internal_function)); in zend_duplicate_internal_function() 1354 c = zend_arena_alloc(&CG(arena), sizeof(zend_class_constant)); in do_inherit_class_constant() 1381 ce->properties_info_table = table = zend_arena_alloc(&CG(arena), size); in zend_build_properties_info_table() 1532 zend_arena_alloc(&CG(arena), sizeof(zval *))); in zend_do_inheritance_ex() 1637 ct = zend_arena_alloc(&CG(arena), sizeof(zend_class_constant)); in do_inherit_iface_constant() 1833 new_fn = zend_arena_alloc(&CG(arena), sizeof(zend_internal_function)); in zend_add_trait_method() 1837 new_fn = zend_arena_alloc(&CG(arena), sizeof(zend_op_array)); in zend_add_trait_method() 2547 ce = zend_arena_alloc(&CG(arena), sizeof(zend_class_entry)); in zend_lazy_class_load() 2591 new_op_array = zend_arena_alloc(&CG(arena), alloc_size); in zend_lazy_class_load() [all …]
|
H A D | zend_globals.h | 113 zend_arena *arena; member
|
H A D | zend_interfaces.c | 315 : zend_arena_alloc(&CG(arena), sizeof(zend_class_iterator_funcs)); in zend_implement_aggregate() 354 : zend_arena_alloc(&CG(arena), sizeof(zend_class_iterator_funcs)); in zend_implement_iterator()
|
H A D | zend_API.c | 1304 mutable_data = zend_arena_alloc(&CG(arena), sizeof(zend_class_mutable_data)); in zend_allocate_mutable_data() 1320 constants_table = zend_arena_alloc(&CG(arena), sizeof(HashTable)); in zend_separate_class_constants_table() 1327 new_c = zend_arena_alloc(&CG(arena), sizeof(zend_class_constant)); in zend_separate_class_constants_table() 1453 …default_properties_table = zend_arena_alloc(&CG(arena), sizeof(zval) * class_type->default_propert… in zend_update_class_constants() 4104 property_info = zend_arena_alloc(&CG(arena), sizeof(zend_property_info)); in zend_declare_typed_property() 4142 zend_arena_alloc(&CG(arena), sizeof(zval **))); in zend_declare_typed_property() 4436 c = zend_arena_alloc(&CG(arena), sizeof(zend_class_constant)); in zend_declare_class_constant_ex()
|
/PHP-8.1/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.1/Zend/Optimizer/ |
H A D | zend_call_graph.h | 63 ZEND_API int zend_build_call_graph(zend_arena **arena, zend_script *script, zend_call_graph *call_g… 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 int zend_analyze_calls(zend_arena **arena, zend_script *script, uint32_t build_flags, zend…
|
H A D | zend_worklist.h | 40 static inline int zend_worklist_stack_prepare(zend_arena **arena, zend_worklist_stack *stack, int l… in zend_worklist_stack_prepare() argument 44 stack->buf = (int*)zend_arena_calloc(arena, sizeof(*stack->buf), len); in zend_worklist_stack_prepare() 85 static inline int zend_worklist_prepare(zend_arena **arena, zend_worklist *worklist, int len) in zend_worklist_prepare() argument 88 …worklist->visited = (zend_bitset)zend_arena_calloc(arena, sizeof(zend_ulong), zend_bitset_len(len)… in zend_worklist_prepare() 89 return zend_worklist_stack_prepare(arena, &worklist->stack, len); in zend_worklist_prepare()
|
H A D | zend_call_graph.c | 46 ZEND_API int zend_analyze_calls(zend_arena **arena, zend_script *script, uint32_t build_flags, zend… 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() 225 ZEND_API int zend_build_call_graph(zend_arena **arena, zend_script *script, zend_call_graph *call_g… in zend_build_call_graph() argument 230 …call_graph->op_arrays = (zend_op_array**)zend_arena_calloc(arena, call_graph->op_arrays_count, siz… in zend_build_call_graph() 231 …call_graph->func_infos = (zend_func_info*)zend_arena_calloc(arena, call_graph->op_arrays_count, si… in zend_build_call_graph() 239 ZEND_API void zend_analyze_call_graph(zend_arena **arena, zend_script *script, zend_call_graph *cal… in zend_analyze_call_graph() argument 244 zend_analyze_calls(arena, script, 0, call_graph->op_arrays[i], call_graph->func_infos + i); in zend_analyze_call_graph() 251 ZEND_API zend_call_info **zend_build_call_map(zend_arena **arena, zend_func_info *info, const zend_… in zend_build_call_map() argument 259 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 | 54 void *checkpoint = zend_arena_checkpoint(ctx->arena); in zend_optimize_temporary_variables() 57 taken_T = (zend_bitset) zend_arena_alloc(&ctx->arena, bitset_len * ZEND_BITSET_ELM_SIZE); in zend_optimize_temporary_variables() 58 start_of_T = (zend_op **) zend_arena_alloc(&ctx->arena, T * sizeof(zend_op *)); in zend_optimize_temporary_variables() 59 valid_T = (zend_bitset) zend_arena_alloc(&ctx->arena, bitset_len * ZEND_BITSET_ELM_SIZE); in zend_optimize_temporary_variables() 60 map_T = (int *) zend_arena_alloc(&ctx->arena, T * sizeof(int)); in zend_optimize_temporary_variables() 184 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() 445 if ((pi = add_pi(arena, op_array, dfg, ssa, j, bf, var))) { in place_essa_pis() 448 if ((pi = add_pi(arena, op_array, dfg, ssa, j, bt, var))) { in place_essa_pis() 452 if ((pi = add_pi(arena, op_array, dfg, ssa, j, bf, var))) { in place_essa_pis() 455 if ((pi = add_pi(arena, op_array, dfg, ssa, j, bt, var))) { in place_essa_pis() 466 if ((pi = add_pi(arena, op_array, dfg, ssa, j, bf, var))) { in place_essa_pis() 470 if ((pi = add_pi(arena, op_array, dfg, ssa, j, bt, var))) { in place_essa_pis() 477 if ((pi = add_pi(arena, op_array, dfg, ssa, j, bt, var))) { in place_essa_pis() 482 if ((pi = add_pi(arena, op_array, dfg, ssa, j, bf, var))) { in place_essa_pis() 535 if ((pi = add_pi(arena, op_array, dfg, ssa, j, bt, var))) { in place_essa_pis() [all …]
|
H A D | zend_cfg.h | 119 ZEND_API int zend_build_cfg(zend_arena **arena, const zend_op_array *op_array, uint32_t build_flags… 121 ZEND_API int zend_cfg_build_predecessors(zend_arena **arena, zend_cfg *cfg);
|
H A D | optimize_func_calls.c | 179 checkpoint = zend_arena_checkpoint(ctx->arena); in zend_optimize_func_calls() 180 call_stack = zend_arena_calloc(&ctx->arena, op_array->last / 2, sizeof(optimizer_call_info)); in zend_optimize_func_calls() 374 zend_arena_release(&ctx->arena, checkpoint); in zend_optimize_func_calls()
|
H A D | zend_cfg.c | 270 ZEND_API int zend_build_cfg(zend_arena **arena, const zend_op_array *op_array, uint32_t build_flags… in zend_build_cfg() argument 284 cfg->map = block_map = zend_arena_calloc(arena, op_array->last, sizeof(uint32_t)); in zend_build_cfg() 471 cfg->blocks = blocks = zend_arena_calloc(arena, sizeof(zend_basic_block), blocks_count); in zend_build_cfg() 575 block->successors = zend_arena_calloc(arena, block->successors_count, sizeof(int)); in zend_build_cfg() 602 ZEND_API int zend_cfg_build_predecessors(zend_arena **arena, zend_cfg *cfg) /* {{{ */ in zend_cfg_build_predecessors() argument 627 cfg->predecessors = predecessors = (int*)zend_arena_calloc(arena, sizeof(int), edges); in zend_cfg_build_predecessors()
|
H A D | zend_ssa.h | 148 ZEND_API int zend_build_ssa(zend_arena **arena, const zend_script *script, const zend_op_array *op_… 149 ZEND_API int zend_ssa_compute_use_def_chains(zend_arena **arena, const zend_op_array *op_array, zen…
|
H A D | compact_literals.c | 162 void *checkpoint = zend_arena_checkpoint(ctx->arena); in zend_optimizer_compact_literals() 166 …info = (literal_info*)zend_arena_calloc(&ctx->arena, op_array->last_literal, sizeof(literal_info)); in zend_optimizer_compact_literals() 340 map = (int*)zend_arena_alloc(&ctx->arena, op_array->last_literal * sizeof(int)); in zend_optimizer_compact_literals() 507 const_slot = zend_arena_alloc(&ctx->arena, j * 6 * sizeof(int)); in zend_optimizer_compact_literals() 820 zend_arena_release(&ctx->arena, checkpoint); in zend_optimizer_compact_literals()
|
H A D | block_pass.c | 1600 checkpoint = zend_arena_checkpoint(ctx->arena); in zend_t_usage() 1602 defined_here = zend_arena_alloc(&ctx->arena, bitset_len * ZEND_BITSET_ELM_SIZE); in zend_t_usage() 1795 zend_arena_release(&ctx->arena, checkpoint); in zend_t_usage() 1871 checkpoint = zend_arena_checkpoint(ctx->arena); in zend_optimize_cfg() 1872 if (zend_build_cfg(&ctx->arena, op_array, 0, &cfg) != SUCCESS) { in zend_optimize_cfg() 1873 zend_arena_release(&ctx->arena, checkpoint); in zend_optimize_cfg() 1878 zend_arena_release(&ctx->arena, checkpoint); in zend_optimize_cfg() 1887 Tsource = zend_arena_calloc(&ctx->arena, op_array->last_var + op_array->T, sizeof(zend_op *)); in zend_optimize_cfg() 1888 usage = zend_arena_alloc(&ctx->arena, bitset_len * ZEND_BITSET_ELM_SIZE); in zend_optimize_cfg() 1889 jmp_hitlist = zend_arena_alloc(&ctx->arena, cfg.blocks_count * sizeof(int)); in zend_optimize_cfg() [all …]
|
H A D | zend_optimizer_internal.h | 45 zend_arena *arena; member
|
H A D | zend_optimizer.c | 53 ctx->constants = zend_arena_alloc(&ctx->arena, sizeof(HashTable)); in zend_optimizer_collect_constant() 1414 ctx.arena = zend_arena_create(64 * 1024); in zend_optimize_script() 1422 zend_build_call_graph(&ctx.arena, script, &call_graph) == SUCCESS) { in zend_optimize_script() 1432 zend_analyze_call_graph(&ctx.arena, script, &call_graph); in zend_optimize_script() 1437 func_info->call_map = zend_build_call_map(&ctx.arena, func_info, call_graph.op_arrays[i]); in zend_optimize_script() 1563 zend_arena_destroy(ctx.arena); in zend_optimize_script()
|
H A D | dfa_pass.c | 53 if (zend_build_cfg(&ctx->arena, op_array, ZEND_CFG_NO_ENTRY_PREDECESSORS, &ssa->cfg) != SUCCESS) { in zend_dfa_analyze_op_array() 62 if (zend_cfg_build_predecessors(&ctx->arena, &ssa->cfg) != SUCCESS) { in zend_dfa_analyze_op_array() 91 if (zend_build_ssa(&ctx->arena, ctx->script, op_array, build_flags, ssa) != SUCCESS) { in zend_dfa_analyze_op_array() 100 if (zend_ssa_compute_use_def_chains(&ctx->arena, op_array, ssa) != SUCCESS){ in zend_dfa_analyze_op_array() 112 …if (zend_ssa_inference(&ctx->arena, op_array, ctx->script, ssa, ctx->optimization_level) != SUCCES… in zend_dfa_analyze_op_array() 1748 void *checkpoint = zend_arena_checkpoint(ctx->arena); in zend_optimize_dfa() 1752 zend_arena_release(&ctx->arena, checkpoint); in zend_optimize_dfa() 1759 zend_arena_release(&ctx->arena, checkpoint); in zend_optimize_dfa()
|
H A D | scdf.c | 90 scdf->instr_worklist = zend_arena_calloc(&ctx->arena, in scdf_init()
|
/PHP-8.1/ext/opcache/jit/ |
H A D | zend_jit.c | 2461 checkpoint = zend_arena_checkpoint(CG(arena)); in zend_jit_allocate_registers() 2645 zend_arena_release(&CG(arena), checkpoint); in zend_jit_allocate_registers() 2724 checkpoint = zend_arena_checkpoint(CG(arena)); in zend_jit() 4147 zend_arena_release(&CG(arena), checkpoint); in zend_jit() 4156 zend_arena_release(&CG(arena), checkpoint); in zend_jit() 4223 checkpoint = zend_arena_checkpoint(CG(arena)); in zend_real_jit_func() 4256 zend_arena_release(&CG(arena), checkpoint); in zend_real_jit_func() 4261 zend_arena_release(&CG(arena), checkpoint); in zend_real_jit_func() 4549 checkpoint = zend_arena_checkpoint(CG(arena)); in zend_jit_script() 4623 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() 2723 checkpoint = zend_arena_checkpoint(CG(arena)); in zend_jit_trace_allocate_registers() 3119 zend_arena_release(&CG(arena), checkpoint); in zend_jit_trace_allocate_registers() 3154 zend_arena_release(&CG(arena), checkpoint); in zend_jit_trace_allocate_registers() 3338 zend_arena_release(&CG(arena), checkpoint); in zend_jit_trace_allocate_registers() 3424 zend_arena_release(&CG(arena), checkpoint); in zend_jit_trace_allocate_registers() 3442 zend_arena_release(&CG(arena), checkpoint); //??? in zend_jit_trace_allocate_registers() 4011 checkpoint = zend_arena_checkpoint(CG(arena)); in zend_jit_trace() 7081 zend_arena_release(&CG(arena), checkpoint); in zend_jit_trace() 7104 checkpoint = zend_arena_checkpoint(CG(arena));; in zend_jit_trace_exit_to_vm() [all …]
|
/PHP-8.1/ext/opcache/ |
H A D | zend_file_cache.c | 1247 zend_arena_alloc(&CG(arena), sizeof(HashTable *))); 1251 ZEND_MAP_PTR_INIT(op_array->run_time_cache, zend_arena_alloc(&CG(arena), sizeof(void*))); 1654 zend_arena_alloc(&CG(arena), sizeof(zval *))); 1756 checkpoint = zend_arena_checkpoint(CG(arena)); 1759 mem = zend_arena_alloc(&CG(arena), info.mem_size + info.str_size + 64); 1762 mem = zend_arena_alloc(&CG(arena), info.mem_size + info.str_size); 1770 zend_arena_release(&CG(arena), checkpoint); 1784 zend_arena_release(&CG(arena), checkpoint); 1805 zend_arena_release(&CG(arena), checkpoint); 1855 zend_arena_release(&CG(arena), checkpoint); [all …]
|