/PHP-8.3/Zend/Optimizer/ |
H A D | zend_worklist.h | 31 #define ZEND_WORKLIST_STACK_ALLOCA(s, _len, use_heap) do { \ argument 32 (s)->buf = (int*)do_alloca(sizeof(int) * _len, use_heap); \ 37 #define ZEND_WORKLIST_STACK_FREE_ALLOCA(s, use_heap) \ argument 38 free_alloca((s)->buf, use_heap) 72 #define ZEND_WORKLIST_ALLOCA(w, _len, use_heap) do { \ argument 73 …ZEND_MM_ALIGNED_SIZE(sizeof(int) * _len) + sizeof(zend_ulong) * zend_bitset_len(_len), use_heap); \ 80 #define ZEND_WORKLIST_FREE_ALLOCA(w, use_heap) \ argument 81 free_alloca((w)->stack.buf, use_heap)
|
H A D | nop_removal.c | 39 ALLOCA_FLAG(use_heap); in zend_optimizer_nop_removal() 41 shiftlist = (uint32_t *)do_alloca(sizeof(uint32_t) * op_array->last, use_heap); in zend_optimizer_nop_removal() 93 free_alloca(shiftlist, use_heap); in zend_optimizer_nop_removal()
|
H A D | zend_call_graph.c | 54 ALLOCA_FLAG(use_heap); in zend_analyze_calls() 57 call_stack = do_alloca((op_array->last / 2) * sizeof(zend_call_info*), use_heap); in zend_analyze_calls() 152 free_alloca(call_stack, use_heap); in zend_analyze_calls() 189 ALLOCA_FLAG(use_heap); in zend_analyze_recursion() 191 visited = ZEND_BITSET_ALLOCA(set_len, use_heap); in zend_analyze_recursion() 214 free_alloca(visited, use_heap); in zend_analyze_recursion()
|
H A D | escape_analysis.c | 83 ALLOCA_FLAG(use_heap) in zend_build_equi_escape_sets() 85 size = do_alloca(sizeof(int) * ssa_vars_count, use_heap); in zend_build_equi_escape_sets() 144 free_alloca(size, use_heap); in zend_build_equi_escape_sets() 390 ALLOCA_FLAG(use_heap) in zend_ssa_escape_analysis() 411 ees = do_alloca(sizeof(int) * ssa_vars_count, use_heap); in zend_ssa_escape_analysis() 417 free_alloca(ees, use_heap); in zend_ssa_escape_analysis() 533 free_alloca(ees, use_heap); in zend_ssa_escape_analysis()
|
H A D | pass3.c | 60 ALLOCA_FLAG(use_heap); in zend_optimizer_pass3() 62 jmp_hitlist = (zend_op**)do_alloca(sizeof(zend_op*)*op_array->last, use_heap); in zend_optimizer_pass3() 238 free_alloca(jmp_hitlist, use_heap); in zend_optimizer_pass3()
|
H A D | zend_dfg.c | 291 ALLOCA_FLAG(use_heap); in zend_build_dfg() 292 worklist = ZEND_BITSET_ALLOCA(worklist_len, use_heap); in zend_build_dfg() 328 free_alloca(worklist, use_heap); in zend_build_dfg()
|
H A D | zend_inference.c | 498 ALLOCA_FLAG(use_heap); in zend_ssa_find_false_dependencies() 541 free_alloca(worklist, use_heap); in zend_ssa_find_false_dependencies() 1740 ALLOCA_FLAG(use_heap) in zend_infer_ranges_warmup() 1830 free_alloca(worklist, use_heap); in zend_infer_ranges_warmup() 1842 ALLOCA_FLAG(use_heap); in zend_infer_ranges() 1946 free_alloca(worklist, use_heap); in zend_infer_ranges() 4317 ALLOCA_FLAG(use_heap) in zend_type_narrowing() 4350 free_alloca(visited, use_heap); in zend_type_narrowing() 4359 free_alloca(visited, use_heap); in zend_type_narrowing() 4587 ALLOCA_FLAG(use_heap); in zend_infer_types() [all …]
|
H A D | zend_cfg.c | 684 ALLOCA_FLAG(use_heap) in zend_cfg_compute_dominators_tree() 685 int *postnum = do_alloca(sizeof(int) * cfg->blocks_count, use_heap); in zend_cfg_compute_dominators_tree() 762 free_alloca(postnum, use_heap); in zend_cfg_compute_dominators_tree()
|
/PHP-8.3/Zend/ |
H A D | zend_virtual_cwd.c | 509 ALLOCA_FLAG(use_heap) in tsrm_realpath_r() 646 free_alloca(tmp, use_heap); in tsrm_realpath_r() 659 free_alloca(tmp, use_heap); in tsrm_realpath_r() 667 free_alloca(tmp, use_heap); in tsrm_realpath_r() 687 free_alloca(tmp, use_heap); in tsrm_realpath_r() 784 free_alloca(tmp, use_heap); in tsrm_realpath_r() 909 free_alloca(tmp, use_heap); in tsrm_realpath_r() 960 free_alloca(tmp, use_heap); in tsrm_realpath_r() 997 free_alloca(tmp, use_heap); in tsrm_realpath_r() 1218 ALLOCA_FLAG(use_heap) in virtual_chdir_file() [all …]
|
H A D | zend_string.h | 76 #define STR_ALLOCA_ALLOC(str, _len, use_heap) ZSTR_ALLOCA_ALLOC(str, _len, use_heap) in END_EXTERN_C() argument 77 #define STR_ALLOCA_INIT(str, s, len, use_heap) ZSTR_ALLOCA_INIT(str, s, len, use_heap) in END_EXTERN_C() argument 78 #define STR_ALLOCA_FREE(str, use_heap) ZSTR_ALLOCA_FREE(str, use_heap) in END_EXTERN_C() argument 117 #define ZSTR_ALLOCA_ALLOC(str, _len, use_heap) do { \ argument 118 …(str) = (zend_string *)do_alloca(ZEND_MM_ALIGNED_SIZE_EX(_ZSTR_STRUCT_SIZE(_len), 8), (use_heap));… 125 #define ZSTR_ALLOCA_INIT(str, s, len, use_heap) do { \ argument 126 ZSTR_ALLOCA_ALLOC(str, len, use_heap); \ 131 #define ZSTR_ALLOCA_FREE(str, use_heap) free_alloca(str, use_heap) argument
|
H A D | zend_portability.h | 205 # define do_alloca_ex(size, limit, use_heap) \ argument 206 ((use_heap = (UNEXPECTED((size) > (limit)))) ? emalloc(size) : alloca(size)) 207 # define do_alloca(size, use_heap) \ argument 208 do_alloca_ex(size, ZEND_ALLOCA_MAX_SIZE, use_heap) 209 # define free_alloca(p, use_heap) \ argument 210 do { if (UNEXPECTED(use_heap)) efree(p); } while (0) 214 # define do_alloca(p, use_heap) emalloc(p) argument 215 # define free_alloca(p, use_heap) efree(p) argument
|
H A D | zend_bitset.h | 44 #define ZEND_BITSET_ALLOCA(n, use_heap) \ argument 45 (zend_bitset)do_alloca((n) * ZEND_BITSET_ELM_SIZE, use_heap)
|
H A D | zend_constants.c | 503 ALLOCA_FLAG(use_heap) in zend_get_constant_ex() 507 lcname = do_alloca(lcname_len + 1, use_heap); in zend_get_constant_ex() 514 free_alloca(lcname, use_heap); in zend_get_constant_ex()
|
H A D | zend_opcode.c | 914 ALLOCA_FLAG(use_heap) in zend_calc_live_ranges() 916 uint32_t *last_use = do_alloca(sizeof(uint32_t) * op_array->T, use_heap); in zend_calc_live_ranges() 1007 free_alloca(last_use, use_heap); in zend_calc_live_ranges()
|
H A D | zend_object_handlers.c | 1418 ALLOCA_FLAG(use_heap); in zend_std_get_method() 1423 use_heap = 0; in zend_std_get_method() 1426 ZSTR_ALLOCA_ALLOC(lc_method_name, ZSTR_LEN(method_name), use_heap); in zend_std_get_method() 1432 ZSTR_ALLOCA_FREE(lc_method_name, use_heap); in zend_std_get_method() 1476 ZSTR_ALLOCA_FREE(lc_method_name, use_heap); in zend_std_get_method()
|
H A D | zend_inheritance.c | 3031 ALLOCA_FLAG(use_heap) in zend_do_link_class() 3033 SET_ALLOCA_FLAG(use_heap); in zend_do_link_class() 3048 …nterfaces = do_alloca(sizeof(zend_class_entry*) * (ce->num_traits + ce->num_interfaces), use_heap); in zend_do_link_class() 3054 free_alloca(traits_and_interfaces, use_heap); in zend_do_link_class() 3059 free_alloca(traits_and_interfaces, use_heap); in zend_do_link_class() 3084 free_alloca(traits_and_interfaces, use_heap); in zend_do_link_class() 3108 free_alloca(traits_and_interfaces, use_heap); in zend_do_link_class() 3256 free_alloca(traits_and_interfaces, use_heap); in zend_do_link_class()
|
/PHP-8.3/ext/standard/ |
H A D | browscap.c | 156 ALLOCA_FLAG(use_heap); in browscap_convert_pattern() 211 free_alloca(lc_pattern, use_heap); in browscap_convert_pattern() 243 ALLOCA_FLAG(use_heap); in browscap_intern_str_ci() 245 ZSTR_ALLOCA_ALLOC(lcname, ZSTR_LEN(str), use_heap); in browscap_intern_str_ci() 259 ZSTR_ALLOCA_FREE(lcname, use_heap); in browscap_intern_str_ci() 548 ALLOCA_FLAG(use_heap) in browser_reg_compare() 583 ZSTR_ALLOCA_FREE(pattern_lc, use_heap); in browser_reg_compare() 593 ZSTR_ALLOCA_FREE(pattern_lc, use_heap); in browser_reg_compare() 600 ZSTR_ALLOCA_FREE(pattern_lc, use_heap); in browser_reg_compare() 607 ZSTR_ALLOCA_FREE(pattern_lc, use_heap); in browser_reg_compare() [all …]
|
/PHP-8.3/ext/intl/collator/ |
H A D | collator_is_numeric.c | 70 ALLOCA_FLAG(use_heap = 0); in collator_u_strtod() 75 numbuf = (char *) do_alloca(length + 1, use_heap); in collator_u_strtod() 88 free_alloca(numbuf, use_heap); in collator_u_strtod()
|
/PHP-8.3/main/ |
H A D | php_variables.c | 117 ALLOCA_FLAG(use_heap) in php_register_variable_ex() 141 var = var_orig = do_alloca(var_len + 1, use_heap); in php_register_variable_ex() 159 free_alloca(var_orig, use_heap); in php_register_variable_ex() 173 free_alloca(var_orig, use_heap); in php_register_variable_ex() 188 free_alloca(var_orig, use_heap); in php_register_variable_ex() 217 free_alloca(var_orig, use_heap); in php_register_variable_ex() 256 free_alloca(var_orig, use_heap); in php_register_variable_ex() 262 free_alloca(var_orig, use_heap); in php_register_variable_ex() 305 free_alloca(var_orig, use_heap); in php_register_variable_ex() 328 free_alloca(var_orig, use_heap); in php_register_variable_ex()
|
H A D | SAPI.c | 1115 ALLOCA_FLAG(use_heap) in sapi_add_request_header() 1129 var = str = buf = do_alloca(var_len + 1, use_heap); in sapi_add_request_header() 1156 free_alloca(buf, use_heap); in sapi_add_request_header()
|
H A D | main.c | 2467 ALLOCA_FLAG(use_heap) in php_execute_script() 2473 old_cwd = do_alloca(OLD_CWD_SIZE, use_heap); in php_execute_script() 2554 free_alloca(old_cwd, use_heap); in php_execute_script() 2564 ALLOCA_FLAG(use_heap) in php_execute_simple_script() 2568 old_cwd = do_alloca(OLD_CWD_SIZE, use_heap); in php_execute_simple_script() 2591 free_alloca(old_cwd, use_heap); in php_execute_simple_script()
|
/PHP-8.3/ext/mysqlnd/ |
H A D | mysqlnd_auth.c | 753 ALLOCA_FLAG(use_heap); in mysqlnd_sha256_get_rsa_from_pem() 758 der_buf = do_alloca(der_len, use_heap); in mysqlnd_sha256_get_rsa_from_pem() 774 free_alloca(der_buf, use_heap); in mysqlnd_sha256_get_rsa_from_pem() 926 ALLOCA_FLAG(use_heap); in mysqlnd_sha256_auth_get_auth_data() 927 char *xor_str = do_alloca(passwd_len + 1, use_heap); in mysqlnd_sha256_auth_get_auth_data() 935 free_alloca(xor_str, use_heap); in mysqlnd_sha256_auth_get_auth_data() 1205 ALLOCA_FLAG(use_heap) in mysqlnd_caching_sha2_get_and_use_key() 1206 char *xor_str = do_alloca(passwd_len + 1, use_heap); in mysqlnd_caching_sha2_get_and_use_key() 1211 free_alloca(xor_str, use_heap); in mysqlnd_caching_sha2_get_and_use_key()
|
/PHP-8.3/sapi/cli/ |
H A D | php_cli_server.c | 399 ALLOCA_FLAG(use_heap) in get_mime_type() 400 char *ext_lower = do_alloca(ext_len + 1, use_heap); in get_mime_type() 403 free_alloca(ext_lower, use_heap); in get_mime_type() 426 ALLOCA_FLAG(use_heap) in add_response_header() 436 s = do_alloca(len + 1, use_heap); in add_response_header() 443 free_alloca(s, use_heap); in add_response_header() 2260 ALLOCA_FLAG(use_heap) in php_cli_server_dispatch_router() 2261 old_cwd = do_alloca(MAXPATHLEN, use_heap); in php_cli_server_dispatch_router() 2298 free_alloca(old_cwd, use_heap); in php_cli_server_dispatch_router()
|
/PHP-8.3/sapi/cgi/ |
H A D | cgi_main.c | 702 ALLOCA_FLAG(use_heap) in sapi_cgi_register_variables() 719 php_self = do_alloca(php_self_len + 1, use_heap); in sapi_cgi_register_variables() 743 free_alloca(php_self, use_heap); in sapi_cgi_register_variables() 1663 ALLOCA_FLAG(use_heap) 1674 s = do_alloca(len + 1, use_heap); 1681 free_alloca(s, use_heap);
|
/PHP-8.3/ext/opcache/jit/ |
H A D | zend_jit.c | 1717 ALLOCA_FLAG(use_heap); in zend_jit_compute_liveness() 1727 intervals = do_alloca(mem_size, use_heap); in zend_jit_compute_liveness() 2021 free_alloca(intervals, use_heap); in zend_jit_compute_liveness() 2026 free_alloca(intervals, use_heap); in zend_jit_compute_liveness() 2449 ALLOCA_FLAG(use_heap); in zend_jit_allocate_registers() 2457 candidates = ZEND_BITSET_ALLOCA(set_size, use_heap); in zend_jit_allocate_registers() 2470 free_alloca(candidates, use_heap); in zend_jit_allocate_registers() 2652 free_alloca(candidates, use_heap); in zend_jit_allocate_registers() 2659 free_alloca(candidates, use_heap); in zend_jit_allocate_registers()
|