Home
last modified time | relevance | path

Searched refs:arena (Results 1 – 25 of 35) sorted by relevance

12

/PHP-8.0/Zend/
H A Dzend_arena.h39 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 Dzend_globals.h106 zend_arena *arena; member
H A Dzend_interfaces.c300 : 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 Dzend_inheritance.c43 ? 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 Dmysqlnd_block_alloc.c37 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 Dzend_call_graph.h62 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 Dzend_worklist.h40 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 Dzend_call_graph.c47 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 Doptimize_temp_vars_5.c55 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 Dzend_ssa.c102 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 Dzend_cfg.h119 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 Doptimize_func_calls.c165 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 Dzend_cfg.c270 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 Dzend_ssa.h148 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 Dcompact_literals.c163 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 Dblock_pass.c1589 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 Dzend_optimizer_internal.h45 zend_arena *arena; member
H A Dzend_optimizer.c45 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 Ddfa_pass.c54 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 Dscdf.c91 scdf->instr_worklist = zend_arena_calloc(&ctx->arena, in scdf_init()
/PHP-8.0/ext/opcache/jit/
H A Dzend_jit.c1886 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 Dzend_jit_trace.c678 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 Dzend_file_cache.c1715 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 Dzend_shared_alloc.c378 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 Dzend_accelerator_util_funcs.c767 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()

Completed in 101 milliseconds

12