Home
last modified time | relevance | path

Searched refs:use_heap (Results 1 – 25 of 38) sorted by relevance

12

/PHP-8.1/Zend/Optimizer/
H A Dzend_worklist.h31 #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)
74 #define ZEND_WORKLIST_ALLOCA(w, _len, use_heap) do { \ argument
75 …ZEND_MM_ALIGNED_SIZE(sizeof(int) * _len) + sizeof(zend_ulong) * zend_bitset_len(_len), use_heap); \
82 #define ZEND_WORKLIST_FREE_ALLOCA(w, use_heap) \ argument
83 free_alloca((w)->stack.buf, use_heap)
H A Dnop_removal.c39 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()
104 free_alloca(shiftlist, use_heap); in zend_optimizer_nop_removal()
H A Dzend_call_graph.c54 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()
190 ALLOCA_FLAG(use_heap); in zend_analyze_recursion()
192 visited = ZEND_BITSET_ALLOCA(set_len, use_heap); in zend_analyze_recursion()
215 free_alloca(visited, use_heap); in zend_analyze_recursion()
H A Descape_analysis.c83 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()
378 ALLOCA_FLAG(use_heap) in zend_ssa_escape_analysis()
399 ees = do_alloca(sizeof(int) * ssa_vars_count, use_heap); in zend_ssa_escape_analysis()
520 free_alloca(ees, use_heap); in zend_ssa_escape_analysis()
H A Dpass3.c60 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()
358 free_alloca(jmp_hitlist, use_heap); in zend_optimizer_pass3()
H A Dzend_dfg.c290 ALLOCA_FLAG(use_heap); in zend_build_dfg()
291 worklist = ZEND_BITSET_ALLOCA(worklist_len, use_heap); in zend_build_dfg()
327 free_alloca(worklist, use_heap); in zend_build_dfg()
H A Dzend_inference.c500 ALLOCA_FLAG(use_heap); in zend_ssa_find_false_dependencies()
543 free_alloca(worklist, use_heap); in zend_ssa_find_false_dependencies()
1753 ALLOCA_FLAG(use_heap) in zend_infer_ranges_warmup()
1843 free_alloca(worklist, use_heap); in zend_infer_ranges_warmup()
1855 ALLOCA_FLAG(use_heap); in zend_infer_ranges()
1959 free_alloca(worklist, use_heap); in zend_infer_ranges()
4216 ALLOCA_FLAG(use_heap) in zend_type_narrowing()
4249 free_alloca(visited, use_heap); in zend_type_narrowing()
4258 free_alloca(visited, use_heap); in zend_type_narrowing()
4529 ALLOCA_FLAG(use_heap); in zend_infer_types()
[all …]
H A Dzend_cfg.c691 ALLOCA_FLAG(use_heap) in zend_cfg_compute_dominators_tree()
692 int *postnum = do_alloca(sizeof(int) * cfg->blocks_count, use_heap); in zend_cfg_compute_dominators_tree()
771 free_alloca(postnum, use_heap); in zend_cfg_compute_dominators_tree()
/PHP-8.1/Zend/
H A Dzend_virtual_cwd.c509 ALLOCA_FLAG(use_heap) in tsrm_realpath_r()
645 free_alloca(tmp, use_heap); in tsrm_realpath_r()
658 free_alloca(tmp, use_heap); in tsrm_realpath_r()
666 free_alloca(tmp, use_heap); in tsrm_realpath_r()
686 free_alloca(tmp, use_heap); in tsrm_realpath_r()
783 free_alloca(tmp, use_heap); in tsrm_realpath_r()
908 free_alloca(tmp, use_heap); in tsrm_realpath_r()
959 free_alloca(tmp, use_heap); in tsrm_realpath_r()
996 free_alloca(tmp, use_heap); in tsrm_realpath_r()
1208 ALLOCA_FLAG(use_heap) in virtual_chdir_file()
[all …]
H A Dzend_string.h76 #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
95 #define ZSTR_ALLOCA_ALLOC(str, _len, use_heap) do { \ in END_EXTERN_C() argument
96 …(str) = (zend_string *)do_alloca(ZEND_MM_ALIGNED_SIZE_EX(_ZSTR_STRUCT_SIZE(_len), 8), (use_heap));… in END_EXTERN_C()
103 #define ZSTR_ALLOCA_INIT(str, s, len, use_heap) do { \ argument
104 ZSTR_ALLOCA_ALLOC(str, len, use_heap); \
109 #define ZSTR_ALLOCA_FREE(str, use_heap) free_alloca(str, use_heap) argument
H A Dzend_portability.h354 # define do_alloca_ex(size, limit, use_heap) \ argument
355 ((use_heap = (UNEXPECTED((size) > (limit)))) ? emalloc(size) : alloca(size))
356 # define do_alloca(size, use_heap) \ argument
357 do_alloca_ex(size, ZEND_ALLOCA_MAX_SIZE, use_heap)
358 # define free_alloca(p, use_heap) \ argument
359 do { if (UNEXPECTED(use_heap)) efree(p); } while (0)
363 # define do_alloca(p, use_heap) emalloc(p) argument
364 # define free_alloca(p, use_heap) efree(p) argument
H A Dzend_bitset.h37 #define ZEND_BITSET_ALLOCA(n, use_heap) \ argument
38 (zend_bitset)do_alloca((n) * ZEND_BITSET_ELM_SIZE, use_heap)
H A Dzend_constants.c511 ALLOCA_FLAG(use_heap) in zend_get_constant_ex()
515 lcname = do_alloca(lcname_len + 1, use_heap); in zend_get_constant_ex()
522 free_alloca(lcname, use_heap); in zend_get_constant_ex()
H A Dzend_object_handlers.c1316 ALLOCA_FLAG(use_heap); in zend_std_get_method()
1321 use_heap = 0; in zend_std_get_method()
1324 ZSTR_ALLOCA_ALLOC(lc_method_name, ZSTR_LEN(method_name), use_heap); in zend_std_get_method()
1330 ZSTR_ALLOCA_FREE(lc_method_name, use_heap); in zend_std_get_method()
1374 ZSTR_ALLOCA_FREE(lc_method_name, use_heap); in zend_std_get_method()
H A Dzend_inheritance.c2710 ALLOCA_FLAG(use_heap) in zend_do_link_class()
2712 SET_ALLOCA_FLAG(use_heap); in zend_do_link_class()
2727 …nterfaces = do_alloca(sizeof(zend_class_entry*) * (ce->num_traits + ce->num_interfaces), use_heap); in zend_do_link_class()
2733 free_alloca(traits_and_interfaces, use_heap); in zend_do_link_class()
2738 free_alloca(traits_and_interfaces, use_heap); in zend_do_link_class()
2763 free_alloca(traits_and_interfaces, use_heap); in zend_do_link_class()
2787 free_alloca(traits_and_interfaces, use_heap); in zend_do_link_class()
2934 free_alloca(traits_and_interfaces, use_heap); in zend_do_link_class()
H A Dzend_opcode.c894 ALLOCA_FLAG(use_heap) in zend_calc_live_ranges()
896 uint32_t *last_use = do_alloca(sizeof(uint32_t) * op_array->T, use_heap); in zend_calc_live_ranges()
987 free_alloca(last_use, use_heap); in zend_calc_live_ranges()
/PHP-8.1/ext/standard/
H A Dbrowscap.c156 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.1/ext/intl/collator/
H A Dcollator_is_numeric.c70 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.1/main/
H A Dphp_variables.c82 ALLOCA_FLAG(use_heap) in php_register_variable_ex()
106 var = var_orig = do_alloca(var_len + 1, use_heap); in php_register_variable_ex()
124 free_alloca(var_orig, use_heap); in php_register_variable_ex()
138 free_alloca(var_orig, use_heap); in php_register_variable_ex()
153 free_alloca(var_orig, use_heap); in php_register_variable_ex()
182 free_alloca(var_orig, use_heap); in php_register_variable_ex()
221 free_alloca(var_orig, use_heap); in php_register_variable_ex()
227 free_alloca(var_orig, use_heap); in php_register_variable_ex()
270 free_alloca(var_orig, use_heap); in php_register_variable_ex()
293 free_alloca(var_orig, use_heap); in php_register_variable_ex()
H A DSAPI.c1110 ALLOCA_FLAG(use_heap) in sapi_add_request_header()
1124 var = str = buf = do_alloca(var_len + 1, use_heap); in sapi_add_request_header()
1151 free_alloca(buf, use_heap); in sapi_add_request_header()
H A Dmain.c2490 ALLOCA_FLAG(use_heap) in php_execute_script()
2496 old_cwd = do_alloca(OLD_CWD_SIZE, use_heap); in php_execute_script()
2577 free_alloca(old_cwd, use_heap); in php_execute_script()
2587 ALLOCA_FLAG(use_heap) in php_execute_simple_script()
2591 old_cwd = do_alloca(OLD_CWD_SIZE, use_heap); in php_execute_simple_script()
2614 free_alloca(old_cwd, use_heap); in php_execute_simple_script()
/PHP-8.1/ext/mysqlnd/
H A Dmysqlnd_auth.c753 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.1/sapi/cli/
H A Dphp_cli_server.c391 ALLOCA_FLAG(use_heap) in get_mime_type()
392 char *ext_lower = do_alloca(ext_len + 1, use_heap); in get_mime_type()
395 free_alloca(ext_lower, use_heap); in get_mime_type()
427 ALLOCA_FLAG(use_heap) in add_response_header()
437 s = do_alloca(len + 1, use_heap); in add_response_header()
444 free_alloca(s, use_heap); in add_response_header()
2170 ALLOCA_FLAG(use_heap) in php_cli_server_dispatch_router()
2171 old_cwd = do_alloca(MAXPATHLEN, use_heap); in php_cli_server_dispatch_router()
2196 free_alloca(old_cwd, use_heap); in php_cli_server_dispatch_router()
/PHP-8.1/sapi/cgi/
H A Dcgi_main.c701 ALLOCA_FLAG(use_heap) in sapi_cgi_register_variables()
718 php_self = do_alloca(php_self_len + 1, use_heap); in sapi_cgi_register_variables()
742 free_alloca(php_self, use_heap); in sapi_cgi_register_variables()
1665 ALLOCA_FLAG(use_heap)
1676 s = do_alloca(len + 1, use_heap);
1683 free_alloca(s, use_heap);
/PHP-8.1/ext/opcache/jit/
H A Dzend_jit.c1704 ALLOCA_FLAG(use_heap); in zend_jit_compute_liveness()
1714 intervals = do_alloca(mem_size, use_heap); in zend_jit_compute_liveness()
2008 free_alloca(intervals, use_heap); in zend_jit_compute_liveness()
2013 free_alloca(intervals, use_heap); in zend_jit_compute_liveness()
2436 ALLOCA_FLAG(use_heap); in zend_jit_allocate_registers()
2444 candidates = ZEND_BITSET_ALLOCA(set_size, use_heap); in zend_jit_allocate_registers()
2457 free_alloca(candidates, use_heap); in zend_jit_allocate_registers()
2639 free_alloca(candidates, use_heap); in zend_jit_allocate_registers()
2646 free_alloca(candidates, use_heap); in zend_jit_allocate_registers()

Completed in 104 milliseconds

12