Home
last modified time | relevance | path

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

12

/php-src/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)
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 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()
93 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()
169 free_alloca(call_stack, use_heap); in zend_analyze_calls()
206 ALLOCA_FLAG(use_heap); in zend_analyze_recursion()
208 visited = ZEND_BITSET_ALLOCA(set_len, use_heap); in zend_analyze_recursion()
231 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()
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 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()
237 free_alloca(jmp_hitlist, use_heap); in zend_optimizer_pass3()
H A Dzend_dfg.c292 ALLOCA_FLAG(use_heap); in zend_build_dfg()
293 worklist = ZEND_BITSET_ALLOCA(worklist_len, use_heap); in zend_build_dfg()
329 free_alloca(worklist, use_heap); in zend_build_dfg()
H A Dzend_inference.c498 ALLOCA_FLAG(use_heap); in zend_ssa_find_false_dependencies()
541 free_alloca(worklist, use_heap); in zend_ssa_find_false_dependencies()
1730 ALLOCA_FLAG(use_heap) in zend_infer_ranges_warmup()
1820 free_alloca(worklist, use_heap); in zend_infer_ranges_warmup()
1832 ALLOCA_FLAG(use_heap); in zend_infer_ranges()
1936 free_alloca(worklist, use_heap); in zend_infer_ranges()
4440 ALLOCA_FLAG(use_heap) in zend_type_narrowing()
4473 free_alloca(visited, use_heap); in zend_type_narrowing()
4482 free_alloca(visited, use_heap); in zend_type_narrowing()
4710 ALLOCA_FLAG(use_heap); in zend_infer_types()
[all …]
H A Dzend_cfg.c683 ALLOCA_FLAG(use_heap) in zend_cfg_compute_dominators_tree()
684 int *postnum = do_alloca(sizeof(int) * cfg->blocks_count, use_heap); in zend_cfg_compute_dominators_tree()
761 free_alloca(postnum, use_heap); in zend_cfg_compute_dominators_tree()
H A Dblock_pass.c1053 ALLOCA_FLAG(use_heap); in assemble_code_blocks()
1055 map = (uint32_t *)do_alloca(sizeof(uint32_t) * op_array->last_try_catch, use_heap); in assemble_code_blocks()
1098 free_alloca(map, use_heap); in assemble_code_blocks()
/php-src/Zend/
H A Dzend_virtual_cwd.c507 ALLOCA_FLAG(use_heap) in tsrm_realpath_r()
644 free_alloca(tmp, use_heap); in tsrm_realpath_r()
657 free_alloca(tmp, use_heap); in tsrm_realpath_r()
665 free_alloca(tmp, use_heap); in tsrm_realpath_r()
685 free_alloca(tmp, use_heap); in tsrm_realpath_r()
782 free_alloca(tmp, use_heap); in tsrm_realpath_r()
907 free_alloca(tmp, use_heap); in tsrm_realpath_r()
958 free_alloca(tmp, use_heap); in tsrm_realpath_r()
995 free_alloca(tmp, use_heap); in tsrm_realpath_r()
1216 ALLOCA_FLAG(use_heap) in virtual_chdir_file()
[all …]
H A Dzend_string.h78 #define STR_ALLOCA_ALLOC(str, _len, use_heap) ZSTR_ALLOCA_ALLOC(str, _len, use_heap) in END_EXTERN_C() argument
79 #define STR_ALLOCA_INIT(str, s, len, use_heap) ZSTR_ALLOCA_INIT(str, s, len, use_heap) in END_EXTERN_C() argument
80 #define STR_ALLOCA_FREE(str, use_heap) ZSTR_ALLOCA_FREE(str, use_heap) in END_EXTERN_C() argument
119 #define ZSTR_ALLOCA_ALLOC(str, _len, use_heap) do { \ argument
120 …(str) = (zend_string *)do_alloca(ZEND_MM_ALIGNED_SIZE_EX(_ZSTR_STRUCT_SIZE(_len), 8), (use_heap));…
127 #define ZSTR_ALLOCA_INIT(str, s, len, use_heap) do { \ argument
128 ZSTR_ALLOCA_ALLOC(str, len, use_heap); \
133 #define ZSTR_ALLOCA_FREE(str, use_heap) free_alloca(str, use_heap) argument
H A Dzend_portability.h214 # define do_alloca_ex(size, limit, use_heap) \ argument
215 ((use_heap = (UNEXPECTED((size) > (limit)))) ? emalloc(size) : alloca(size))
216 # define do_alloca(size, use_heap) \ argument
217 do_alloca_ex(size, ZEND_ALLOCA_MAX_SIZE, use_heap)
218 # define free_alloca(p, use_heap) \ argument
219 do { if (UNEXPECTED(use_heap)) efree(p); } while (0)
223 # define do_alloca(p, use_heap) emalloc(p) argument
224 # define free_alloca(p, use_heap) efree(p) argument
H A Dzend_bitset.h44 #define ZEND_BITSET_ALLOCA(n, use_heap) \ argument
45 (zend_bitset)do_alloca((n) * ZEND_BITSET_ELM_SIZE, use_heap)
H A Dzend_constants.c433 ALLOCA_FLAG(use_heap) in zend_get_constant_ex()
437 lcname = do_alloca(lcname_len + 1, use_heap); in zend_get_constant_ex()
444 free_alloca(lcname, use_heap); in zend_get_constant_ex()
H A Dzend_opcode.c932 ALLOCA_FLAG(use_heap) in zend_calc_live_ranges()
934 uint32_t *last_use = do_alloca(sizeof(uint32_t) * op_array->T, use_heap); in zend_calc_live_ranges()
1025 free_alloca(last_use, use_heap); in zend_calc_live_ranges()
H A Dzend_object_handlers.c1769 ALLOCA_FLAG(use_heap); in zend_std_get_method()
1774 use_heap = 0; in zend_std_get_method()
1777 ZSTR_ALLOCA_ALLOC(lc_method_name, ZSTR_LEN(method_name), use_heap); in zend_std_get_method()
1783 ZSTR_ALLOCA_FREE(lc_method_name, use_heap); in zend_std_get_method()
1827 ZSTR_ALLOCA_FREE(lc_method_name, use_heap); in zend_std_get_method()
H A Dzend_inheritance.c3450 ALLOCA_FLAG(use_heap) in zend_do_link_class()
3452 SET_ALLOCA_FLAG(use_heap); in zend_do_link_class()
3467 …nterfaces = do_alloca(sizeof(zend_class_entry*) * (ce->num_traits + ce->num_interfaces), use_heap); in zend_do_link_class()
3473 free_alloca(traits_and_interfaces, use_heap); in zend_do_link_class()
3478 free_alloca(traits_and_interfaces, use_heap); in zend_do_link_class()
3503 free_alloca(traits_and_interfaces, use_heap); in zend_do_link_class()
3527 free_alloca(traits_and_interfaces, use_heap); in zend_do_link_class()
3694 free_alloca(traits_and_interfaces, use_heap); in zend_do_link_class()
/php-src/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-src/ext/standard/
H A Dbrowscap.c236 ALLOCA_FLAG(use_heap); in browscap_intern_str_ci()
238 ZSTR_ALLOCA_ALLOC(lcname, ZSTR_LEN(str), use_heap); in browscap_intern_str_ci()
252 ZSTR_ALLOCA_FREE(lcname, use_heap); in browscap_intern_str_ci()
628 ALLOCA_FLAG(use_heap) in browser_reg_compare()
633 ZSTR_ALLOCA_ALLOC(pattern_lc, ZSTR_LEN(entry->pattern), use_heap); in browser_reg_compare()
645 ZSTR_ALLOCA_FREE(pattern_lc, use_heap); in browser_reg_compare()
656 ZSTR_ALLOCA_FREE(pattern_lc, use_heap); in browser_reg_compare()
696 ZSTR_ALLOCA_FREE(pattern_lc, use_heap); in browser_reg_compare()
/php-src/main/
H A Dphp_variables.c118 ALLOCA_FLAG(use_heap) in php_register_variable_ex()
142 var = var_orig = do_alloca(var_len + 1, use_heap); in php_register_variable_ex()
160 free_alloca(var_orig, use_heap); in php_register_variable_ex()
174 free_alloca(var_orig, use_heap); in php_register_variable_ex()
189 free_alloca(var_orig, use_heap); in php_register_variable_ex()
218 free_alloca(var_orig, use_heap); in php_register_variable_ex()
257 free_alloca(var_orig, use_heap); in php_register_variable_ex()
263 free_alloca(var_orig, use_heap); in php_register_variable_ex()
306 free_alloca(var_orig, use_heap); in php_register_variable_ex()
329 free_alloca(var_orig, use_heap); in php_register_variable_ex()
H A DSAPI.c1115 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 Dmain.c2511 ALLOCA_FLAG(use_heap) in php_execute_script_ex()
2517 old_cwd = do_alloca(OLD_CWD_SIZE, use_heap); in php_execute_script_ex()
2608 free_alloca(old_cwd, use_heap); in php_execute_script_ex()
2624 ALLOCA_FLAG(use_heap) in php_execute_simple_script()
2628 old_cwd = do_alloca(OLD_CWD_SIZE, use_heap); in php_execute_simple_script()
2651 free_alloca(old_cwd, use_heap); in php_execute_simple_script()
/php-src/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-src/sapi/cli/
H A Dphp_cli_server.c399 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()
2257 ALLOCA_FLAG(use_heap) in php_cli_server_dispatch_router()
2258 old_cwd = do_alloca(MAXPATHLEN, use_heap); in php_cli_server_dispatch_router()
2288 free_alloca(old_cwd, use_heap); in php_cli_server_dispatch_router()
/php-src/sapi/cgi/
H A Dcgi_main.c705 ALLOCA_FLAG(use_heap) in sapi_cgi_register_variables()
722 php_self = do_alloca(php_self_len + 1, use_heap); in sapi_cgi_register_variables()
746 free_alloca(php_self, use_heap); in sapi_cgi_register_variables()
1666 ALLOCA_FLAG(use_heap)
1677 s = do_alloca(len + 1, use_heap);
1684 free_alloca(s, use_heap);

Completed in 99 milliseconds

12