/PHP-8.0/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_globals.h | 106 zend_arena *arena; member
|
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()
|
H A D | zend_inheritance.c | 43 ? zend_arena_alloc(&CG(arena), size) : pemalloc(size, persistent); in zend_type_copy_ctor() 76 new_function = zend_arena_alloc(&CG(arena), sizeof(zend_internal_function)); in zend_duplicate_internal_function() 91 new_function = zend_arena_alloc(&CG(arena), sizeof(zend_op_array)); in zend_duplicate_user_function() 920 zend_function *new_function = zend_arena_alloc(&CG(arena), sizeof(zend_op_array)); in do_inheritance_check_on_method_ex() 1171 ce->properties_info_table = table = zend_arena_alloc(&CG(arena), size); in zend_build_properties_info_table() 1633 new_fn = zend_arena_alloc(&CG(arena), sizeof(zend_internal_function)); in zend_add_trait_method() 1637 new_fn = zend_arena_alloc(&CG(arena), sizeof(zend_op_array)); in zend_add_trait_method()
|
/PHP-8.0/ext/mysqlnd/ |
H A D | mysqlnd_block_alloc.c | 37 pool->arena->ptr = (char*)ptr; in mysqlnd_mempool_free_chunk() 55 && (ZEND_MM_ALIGNED_SIZE(size) <= ((char*)pool->arena->end - (char*)ptr))) { in mysqlnd_mempool_resize_chunk() 60 pool->arena->ptr = (char*)ptr + ZEND_MM_ALIGNED_SIZE(size); in mysqlnd_mempool_resize_chunk() 65 void *new_ptr = zend_arena_alloc(&pool->arena, size); in mysqlnd_mempool_resize_chunk() 80 ptr = zend_arena_alloc(&pool->arena, size); in mysqlnd_mempool_get_chunk() 92 zend_arena * arena; in mysqlnd_mempool_create() local 97 ret = zend_arena_alloc(&arena, sizeof(MYSQLND_MEMORY_POOL)); in mysqlnd_mempool_create() 98 ret->arena = arena; in mysqlnd_mempool_create() 115 zend_arena_destroy(pool->arena); in mysqlnd_mempool_destroy() 125 pool->checkpoint = zend_arena_checkpoint(pool->arena); in mysqlnd_mempool_save_state() [all …]
|
/PHP-8.0/ext/opcache/Optimizer/ |
H A D | zend_call_graph.h | 62 int zend_build_call_graph(zend_arena **arena, zend_script *script, zend_call_graph *call_graph); 63 void zend_analyze_call_graph(zend_arena **arena, zend_script *script, zend_call_graph *call_graph); 64 zend_call_info **zend_build_call_map(zend_arena **arena, zend_func_info *info, const zend_op_array … 65 int zend_analyze_calls(zend_arena **arena, zend_script *script, uint32_t build_flags, zend_op_array…
|
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 | 47 int zend_analyze_calls(zend_arena **arena, zend_script *script, uint32_t build_flags, zend_op_array… in zend_analyze_calls() argument 70 …call_info = zend_arena_calloc(arena, 1, sizeof(zend_call_info) + (sizeof(zend_send_arg_info) * ((i… in zend_analyze_calls() 222 int zend_build_call_graph(zend_arena **arena, zend_script *script, zend_call_graph *call_graph) /* … in zend_build_call_graph() argument 227 …call_graph->op_arrays = (zend_op_array**)zend_arena_calloc(arena, call_graph->op_arrays_count, siz… in zend_build_call_graph() 228 …call_graph->func_infos = (zend_func_info*)zend_arena_calloc(arena, call_graph->op_arrays_count, si… in zend_build_call_graph() 236 void zend_analyze_call_graph(zend_arena **arena, zend_script *script, zend_call_graph *call_graph) … 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_call_info **zend_build_call_map(zend_arena **arena, zend_func_info *info, const zend_op_array … 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 valid_T = (zend_bitset) zend_arena_alloc(&ctx->arena, bitset_len * ZEND_BITSET_ELM_SIZE); in zend_optimize_temporary_variables() 61 map_T = (int *) zend_arena_alloc(&ctx->arena, T * sizeof(int)); in zend_optimize_temporary_variables() 185 zend_arena_release(&ctx->arena, checkpoint); in zend_optimize_temporary_variables()
|
H A D | zend_ssa.c | 102 phi = zend_arena_calloc(arena, 1, in add_pi() 446 if ((pi = add_pi(arena, op_array, dfg, ssa, j, bf, var))) { in place_essa_pis() 449 if ((pi = add_pi(arena, op_array, dfg, ssa, j, bt, var))) { in place_essa_pis() 453 if ((pi = add_pi(arena, op_array, dfg, ssa, j, bf, var))) { in place_essa_pis() 456 if ((pi = add_pi(arena, op_array, dfg, ssa, j, bt, var))) { in place_essa_pis() 467 if ((pi = add_pi(arena, op_array, dfg, ssa, j, bf, var))) { in place_essa_pis() 471 if ((pi = add_pi(arena, op_array, dfg, ssa, j, bt, var))) { in place_essa_pis() 478 if ((pi = add_pi(arena, op_array, dfg, ssa, j, bt, var))) { in place_essa_pis() 483 if ((pi = add_pi(arena, op_array, dfg, ssa, j, bf, var))) { in place_essa_pis() 539 if ((pi = add_pi(arena, op_array, dfg, ssa, j, bt, var))) { in place_essa_pis() [all …]
|
H A D | zend_cfg.h | 119 int zend_build_cfg(zend_arena **arena, const zend_op_array *op_array, uint32_t build_flags, zend_c… 121 int zend_cfg_build_predecessors(zend_arena **arena, zend_cfg *cfg);
|
H A D | optimize_func_calls.c | 165 checkpoint = zend_arena_checkpoint(ctx->arena); in zend_optimize_func_calls() 166 call_stack = zend_arena_calloc(&ctx->arena, op_array->last / 2, sizeof(optimizer_call_info)); in zend_optimize_func_calls() 336 zend_arena_release(&ctx->arena, checkpoint); in zend_optimize_func_calls()
|
H A D | zend_cfg.c | 270 int zend_build_cfg(zend_arena **arena, const zend_op_array *op_array, uint32_t build_flags, zend_cf… in zend_build_cfg() argument 284 cfg->map = block_map = zend_arena_calloc(arena, op_array->last, sizeof(uint32_t)); in zend_build_cfg() 469 cfg->blocks = blocks = zend_arena_calloc(arena, sizeof(zend_basic_block), blocks_count); in zend_build_cfg() 572 block->successors = zend_arena_calloc(arena, block->successors_count, sizeof(int)); in zend_build_cfg() 599 int zend_cfg_build_predecessors(zend_arena **arena, zend_cfg *cfg) /* {{{ */ in zend_cfg_build_predecessors() argument 624 cfg->predecessors = predecessors = (int*)zend_arena_calloc(arena, sizeof(int), edges); in zend_cfg_build_predecessors()
|
H A D | zend_ssa.h | 148 int zend_build_ssa(zend_arena **arena, const zend_script *script, const zend_op_array *op_array, ui… 150 int zend_ssa_compute_use_def_chains(zend_arena **arena, const zend_op_array *op_array, zend_ssa *ss…
|
H A D | compact_literals.c | 163 void *checkpoint = zend_arena_checkpoint(ctx->arena); in zend_optimizer_compact_literals() 167 …info = (literal_info*)zend_arena_calloc(&ctx->arena, op_array->last_literal, sizeof(literal_info)); in zend_optimizer_compact_literals() 349 map = (int*)zend_arena_alloc(&ctx->arena, op_array->last_literal * sizeof(int)); in zend_optimizer_compact_literals() 516 const_slot = zend_arena_alloc(&ctx->arena, j * 6 * sizeof(int)); in zend_optimizer_compact_literals() 830 zend_arena_release(&ctx->arena, checkpoint); in zend_optimizer_compact_literals()
|
H A D | block_pass.c | 1589 checkpoint = zend_arena_checkpoint(ctx->arena); in zend_t_usage() 1591 defined_here = zend_arena_alloc(&ctx->arena, bitset_len * ZEND_BITSET_ELM_SIZE); in zend_t_usage() 1784 zend_arena_release(&ctx->arena, checkpoint); in zend_t_usage() 1860 checkpoint = zend_arena_checkpoint(ctx->arena); in zend_optimize_cfg() 1861 if (zend_build_cfg(&ctx->arena, op_array, 0, &cfg) != SUCCESS) { in zend_optimize_cfg() 1862 zend_arena_release(&ctx->arena, checkpoint); in zend_optimize_cfg() 1867 zend_arena_release(&ctx->arena, checkpoint); in zend_optimize_cfg() 1876 Tsource = zend_arena_calloc(&ctx->arena, op_array->last_var + op_array->T, sizeof(zend_op *)); in zend_optimize_cfg() 1877 usage = zend_arena_alloc(&ctx->arena, bitset_len * ZEND_BITSET_ELM_SIZE); in zend_optimize_cfg() 1878 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 | 45 ctx->constants = zend_arena_alloc(&ctx->arena, sizeof(HashTable)); in zend_optimizer_collect_constant() 1423 ctx.arena = zend_arena_create(64 * 1024); in zend_optimize_script() 1431 zend_build_call_graph(&ctx.arena, script, &call_graph) == SUCCESS) { in zend_optimize_script() 1441 zend_analyze_call_graph(&ctx.arena, script, &call_graph); in zend_optimize_script() 1446 func_info->call_map = zend_build_call_map(&ctx.arena, func_info, call_graph.op_arrays[i]); in zend_optimize_script() 1570 zend_arena_destroy(ctx.arena); in zend_optimize_script()
|
H A D | dfa_pass.c | 54 if (zend_build_cfg(&ctx->arena, op_array, ZEND_CFG_NO_ENTRY_PREDECESSORS, &ssa->cfg) != SUCCESS) { in zend_dfa_analyze_op_array() 63 if (zend_cfg_build_predecessors(&ctx->arena, &ssa->cfg) != SUCCESS) { in zend_dfa_analyze_op_array() 92 if (zend_build_ssa(&ctx->arena, ctx->script, op_array, build_flags, ssa) != SUCCESS) { in zend_dfa_analyze_op_array() 101 if (zend_ssa_compute_use_def_chains(&ctx->arena, op_array, ssa) != SUCCESS){ in zend_dfa_analyze_op_array() 113 …if (zend_ssa_inference(&ctx->arena, op_array, ctx->script, ssa, ctx->optimization_level) != SUCCES… in zend_dfa_analyze_op_array() 1688 void *checkpoint = zend_arena_checkpoint(ctx->arena); in zend_optimize_dfa() 1692 zend_arena_release(&ctx->arena, checkpoint); in zend_optimize_dfa() 1699 zend_arena_release(&ctx->arena, checkpoint); in zend_optimize_dfa()
|
H A D | scdf.c | 91 scdf->instr_worklist = zend_arena_calloc(&ctx->arena, in scdf_init()
|
/PHP-8.0/ext/opcache/jit/ |
H A D | zend_jit.c | 1886 checkpoint = zend_arena_checkpoint(CG(arena)); in zend_jit_allocate_registers() 2070 zend_arena_release(&CG(arena), checkpoint); in zend_jit_allocate_registers() 2137 checkpoint = zend_arena_checkpoint(CG(arena)); in zend_jit() 3537 zend_arena_release(&CG(arena), checkpoint); in zend_jit() 3546 zend_arena_release(&CG(arena), checkpoint); in zend_jit() 3613 checkpoint = zend_arena_checkpoint(CG(arena)); in zend_real_jit_func() 3646 zend_arena_release(&CG(arena), checkpoint); in zend_real_jit_func() 3651 zend_arena_release(&CG(arena), checkpoint); in zend_real_jit_func() 3921 checkpoint = zend_arena_checkpoint(CG(arena)); in zend_jit_script() 3995 zend_arena_release(&CG(arena), checkpoint); in zend_jit_script() [all …]
|
H A D | zend_jit_trace.c | 678 zend_ssa_phi *phi = zend_arena_calloc(&CG(arena), 1, in zend_jit_trace_add_call_phis() 708 zend_ssa_phi *phi = zend_arena_calloc(&CG(arena), 1, in zend_jit_trace_add_ret_phis() 2854 checkpoint = zend_arena_checkpoint(CG(arena)); in zend_jit_trace_allocate_registers() 2886 zend_arena_release(&CG(arena), checkpoint); in zend_jit_trace_allocate_registers() 3070 zend_arena_release(&CG(arena), checkpoint); in zend_jit_trace_allocate_registers() 3156 zend_arena_release(&CG(arena), checkpoint); in zend_jit_trace_allocate_registers() 3174 zend_arena_release(&CG(arena), checkpoint); //??? in zend_jit_trace_allocate_registers() 3712 checkpoint = zend_arena_checkpoint(CG(arena)); in zend_jit_trace() 6638 zend_arena_release(&CG(arena), checkpoint); in zend_jit_trace() 6661 checkpoint = zend_arena_checkpoint(CG(arena));; in zend_jit_trace_exit_to_vm() [all …]
|
/PHP-8.0/ext/opcache/ |
H A D | zend_file_cache.c | 1715 checkpoint = zend_arena_checkpoint(CG(arena)); 1718 mem = zend_arena_alloc(&CG(arena), info.mem_size + info.str_size + 64); 1721 mem = zend_arena_alloc(&CG(arena), info.mem_size + info.str_size); 1729 zend_arena_release(&CG(arena), checkpoint); 1743 zend_arena_release(&CG(arena), checkpoint); 1763 zend_arena_release(&CG(arena), checkpoint); 1813 zend_arena_release(&CG(arena), checkpoint); 1831 zend_arena_release(&CG(arena), checkpoint);
|
H A D | zend_shared_alloc.c | 378 static zend_always_inline void *_zend_shared_memdup(void *source, size_t size, zend_bool arena, zen… in _zend_shared_memdup() argument 391 if (arena) { in _zend_shared_memdup()
|
H A D | zend_accelerator_util_funcs.c | 767 ZCG(arena_mem) = zend_arena_alloc(&CG(arena), persistent_script->arena_size + 64); in zend_accel_load_script() 771 ZCG(arena_mem) = zend_arena_alloc(&CG(arena), persistent_script->arena_size); in zend_accel_load_script()
|