comparison src/vim.h @ 28101:3bc0a639dfb0 v8.2.4575

patch 8.2.4575: Vim9: test for profiling still fails Commit: https://github.com/vim/vim/commit/139575de6653e7fd5807cb036dfb3684b815c519 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Mar 15 19:29:30 2022 +0000 patch 8.2.4575: Vim9: test for profiling still fails Problem: Vim9: test for profiling still fails. Solution: Update flags for profiling and breakpoints when obtaining the compile type. Do not set the FC_CLOSURE flag for a toplevel function.
author Bram Moolenaar <Bram@vim.org>
date Tue, 15 Mar 2022 20:30:03 +0100
parents b737bfa876c5
children 06535d568f74
comparison
equal deleted inserted replaced
28100:0b5711bd05a9 28101:3bc0a639dfb0
1837 CT_NONE, // use df_instr 1837 CT_NONE, // use df_instr
1838 CT_PROFILE, // use df_instr_prof 1838 CT_PROFILE, // use df_instr_prof
1839 CT_DEBUG // use df_instr_debug, overrules CT_PROFILE 1839 CT_DEBUG // use df_instr_debug, overrules CT_PROFILE
1840 } compiletype_T; 1840 } compiletype_T;
1841 1841
1842 // Keep in sync with INSTRUCTIONS().
1843 #ifdef FEAT_PROFILE
1844 # define COMPILE_TYPE(ufunc) (debug_break_level > 0 \
1845 || may_break_in_function(ufunc) \
1846 ? CT_DEBUG \
1847 : do_profiling == PROF_YES && (ufunc)->uf_profiling \
1848 ? CT_PROFILE : CT_NONE)
1849 #else
1850 # define COMPILE_TYPE(ufunc) debug_break_level > 0 \
1851 || may_break_in_function(ufunc) \
1852 ? CT_DEBUG \
1853 : CT_NONE
1854 #endif
1855
1856 /* 1842 /*
1857 * When compiling with 32 bit Perl time_t is 32 bits in the Perl code but 64 1843 * When compiling with 32 bit Perl time_t is 32 bits in the Perl code but 64
1858 * bits elsewhere. That causes memory corruption. Define time_T and use it 1844 * bits elsewhere. That causes memory corruption. Define time_T and use it
1859 * for global variables to avoid that. 1845 * for global variables to avoid that.
1860 */ 1846 */