Lines Matching refs:ec_stack
79 garray_T ec_stack; // stack of typval_T values member
105 #define STACK_TV_BOT(idx) (((typval_T *)ectx->ec_stack.ga_data) + ectx->ec_stack.ga_len + (idx))
139 ectx->ec_stack.ga_len -= count - 1; in exe_newlist()
140 else if (GA_GROW_FAILS(&ectx->ec_stack, 1)) in exe_newlist()
143 ++ectx->ec_stack.ga_len; in exe_newlist()
361 if (GA_GROW_FAILS(&ectx->ec_stack, arg_to_add + STACK_FRAME_SIZE + varcount)) in call_dfunc()
386 ectx->ec_stack.ga_len += arg_to_add; in call_dfunc()
396 ectx->ec_frame_idx = ectx->ec_stack.ga_len; in call_dfunc()
408 ectx->ec_stack.ga_len += STACK_FRAME_SIZE + varcount; in call_dfunc()
438 ref->or_outer->out_stack = &ectx->ec_stack; in call_dfunc()
469 #define STACK_TV(idx) (((typval_T *)ectx->ec_stack.ga_data) + idx)
700 idx < ectx->ec_stack.ga_len - 1; ++idx) in func_return()
705 ret_idx = ectx->ec_stack.ga_len - 1; in func_return()
743 ectx->ec_stack.ga_len = top + 1; in func_return()
748 ectx->ec_stack.ga_len = top; in func_return()
773 ectx->ec_stack.ga_len -= argcount - 1; in call_prepare()
774 else if (GA_GROW_FAILS(&ectx->ec_stack, 1)) in call_prepare()
777 ++ectx->ec_stack.ga_len; in call_prepare()
1018 if (GA_GROW_FAILS(&ectx->ec_stack, pt->pt_argc)) in call_partial()
1022 ectx->ec_stack.ga_len += pt->pt_argc; in call_partial()
1441 pt->pt_outer.out_stack = &ectx->ec_stack; in fill_partial_and_closure()
1464 ++(((typval_T *)ectx->ec_stack.ga_data) + ectx->ec_frame_idx in fill_partial_and_closure()
1511 #define STACK_TV(idx) (((typval_T *)ectx->ec_stack.ga_data) + idx)
1515 #define STACK_TV_BOT(idx) (((typval_T *)ectx->ec_stack.ga_data) + ectx->ec_stack.ga_len + idx)
1518 #define STACK_TV_VAR(idx) (((typval_T *)ectx->ec_stack.ga_data) + ectx->ec_frame_idx + STACK_FRAME_…
1723 if (GA_GROW_FAILS(&ectx->ec_stack, 1)) in exec_instructions()
1728 ++ectx->ec_stack.ga_len; in exec_instructions()
1785 if (GA_GROW_FAILS(&ectx->ec_stack, 1)) in exec_instructions()
1794 ++ectx->ec_stack.ga_len; in exec_instructions()
1801 if (GA_GROW_FAILS(&ectx->ec_stack, 1)) in exec_instructions()
1807 ++ectx->ec_stack.ga_len; in exec_instructions()
1866 if (GA_GROW_FAILS(&ectx->ec_stack, 1)) in exec_instructions()
1874 ++ectx->ec_stack.ga_len; in exec_instructions()
1895 --ectx->ec_stack.ga_len; in exec_instructions()
1962 ectx->ec_stack.ga_len -= count; in exec_instructions()
2015 ectx->ec_stack.ga_len -= count; in exec_instructions()
2061 if (GA_GROW_FAILS(&ectx->ec_stack, 1)) in exec_instructions()
2064 ++ectx->ec_stack.ga_len; in exec_instructions()
2069 if (GA_GROW_FAILS(&ectx->ec_stack, 1)) in exec_instructions()
2072 ++ectx->ec_stack.ga_len; in exec_instructions()
2085 if (GA_GROW_FAILS(&ectx->ec_stack, 1)) in exec_instructions()
2088 ++ectx->ec_stack.ga_len; in exec_instructions()
2108 if (GA_GROW_FAILS(&ectx->ec_stack, 1)) in exec_instructions()
2111 ++ectx->ec_stack.ga_len; in exec_instructions()
2158 if (GA_GROW_FAILS(&ectx->ec_stack, 1)) in exec_instructions()
2161 ++ectx->ec_stack.ga_len; in exec_instructions()
2171 if (GA_GROW_FAILS(&ectx->ec_stack, 1)) in exec_instructions()
2177 ++ectx->ec_stack.ga_len; in exec_instructions()
2198 if (GA_GROW_FAILS(&ectx->ec_stack, 1)) in exec_instructions()
2205 ++ectx->ec_stack.ga_len; in exec_instructions()
2217 if (GA_GROW_FAILS(&ectx->ec_stack, 1)) in exec_instructions()
2222 ++ectx->ec_stack.ga_len; in exec_instructions()
2232 if (GA_GROW_FAILS(&ectx->ec_stack, 1)) in exec_instructions()
2237 ++ectx->ec_stack.ga_len; in exec_instructions()
2243 if (GA_GROW_FAILS(&ectx->ec_stack, 1)) in exec_instructions()
2252 ++ectx->ec_stack.ga_len; in exec_instructions()
2257 --ectx->ec_stack.ga_len; in exec_instructions()
2271 --ectx->ec_stack.ga_len; in exec_instructions()
2297 --ectx->ec_stack.ga_len; in exec_instructions()
2320 --ectx->ec_stack.ga_len; in exec_instructions()
2345 --ectx->ec_stack.ga_len; in exec_instructions()
2356 --ectx->ec_stack.ga_len; in exec_instructions()
2365 --ectx->ec_stack.ga_len; in exec_instructions()
2400 --ectx->ec_stack.ga_len; in exec_instructions()
2420 --ectx->ec_stack.ga_len; in exec_instructions()
2581 ectx->ec_stack.ga_len -= 3; in exec_instructions()
2690 ectx->ec_stack.ga_len -= 4; in exec_instructions()
2722 if (GA_GROW_FAILS(&ectx->ec_stack, 1)) in exec_instructions()
2725 ++ectx->ec_stack.ga_len; in exec_instructions()
2729 --ectx->ec_stack.ga_len; in exec_instructions()
2816 ectx->ec_stack.ga_len -= 2; in exec_instructions()
2894 ectx->ec_stack.ga_len -= 3; in exec_instructions()
2910 if (GA_GROW_FAILS(&ectx->ec_stack, 1)) in exec_instructions()
2914 ++ectx->ec_stack.ga_len; in exec_instructions()
2986 --ectx->ec_stack.ga_len; in exec_instructions()
3051 ectx->ec_stack.ga_len -= 2 * count - 1; in exec_instructions()
3052 else if (GA_GROW_FAILS(&ectx->ec_stack, 1)) in exec_instructions()
3055 ++ectx->ec_stack.ga_len; in exec_instructions()
3099 --ectx->ec_stack.ga_len; in exec_instructions()
3115 --ectx->ec_stack.ga_len; in exec_instructions()
3134 if (GA_GROW_FAILS(&ectx->ec_stack, 1)) in exec_instructions()
3137 ++ectx->ec_stack.ga_len; in exec_instructions()
3176 if (GA_GROW_FAILS(&ectx->ec_stack, 1)) in exec_instructions()
3185 ++ectx->ec_stack.ga_len; in exec_instructions()
3246 --ectx->ec_stack.ga_len; in exec_instructions()
3271 if (GA_GROW_FAILS(&ectx->ec_stack, 1)) in exec_instructions()
3294 ++ectx->ec_stack.ga_len; in exec_instructions()
3302 ++ectx->ec_stack.ga_len; in exec_instructions()
3327 ++ectx->ec_stack.ga_len; in exec_instructions()
3361 ++ectx->ec_stack.ga_len; in exec_instructions()
3386 trycmd->tcd_stack_len = ectx->ec_stack.ga_len; in exec_instructions()
3403 if (GA_GROW_FAILS(&ectx->ec_stack, 1)) in exec_instructions()
3406 ++ectx->ec_stack.ga_len; in exec_instructions()
3500 while (ectx->ec_stack.ga_len > trycmd->tcd_stack_len) in exec_instructions()
3502 --ectx->ec_stack.ga_len; in exec_instructions()
3527 --ectx->ec_stack.ga_len; in exec_instructions()
3581 --ectx->ec_stack.ga_len; in exec_instructions()
3623 --ectx->ec_stack.ga_len; in exec_instructions()
3667 --ectx->ec_stack.ga_len; in exec_instructions()
3698 --ectx->ec_stack.ga_len; in exec_instructions()
3722 --ectx->ec_stack.ga_len; in exec_instructions()
3744 --ectx->ec_stack.ga_len; in exec_instructions()
3767 --ectx->ec_stack.ga_len; in exec_instructions()
3787 --ectx->ec_stack.ga_len; in exec_instructions()
3810 --ectx->ec_stack.ga_len; in exec_instructions()
3831 --ectx->ec_stack.ga_len; in exec_instructions()
3839 --ectx->ec_stack.ga_len; in exec_instructions()
3896 --ectx->ec_stack.ga_len; in exec_instructions()
3921 --ectx->ec_stack.ga_len; in exec_instructions()
3935 --ectx->ec_stack.ga_len; in exec_instructions()
3959 ectx->ec_stack.ga_len -= is_slice ? 2 : 1; in exec_instructions()
4004 ectx->ec_stack.ga_len -= is_slice ? 2 : 1; in exec_instructions()
4043 ectx->ec_stack.ga_len -= is_slice ? 2 : 1; in exec_instructions()
4084 if (GA_GROW_FAILS(&ectx->ec_stack, 1)) in exec_instructions()
4086 ++ectx->ec_stack.ga_len; in exec_instructions()
4122 --ectx->ec_stack.ga_len; in exec_instructions()
4130 --ectx->ec_stack.ga_len; in exec_instructions()
4344 if (GA_GROW_FAILS(&ectx->ec_stack, 1)) in exec_instructions()
4346 ++ectx->ec_stack.ga_len; in exec_instructions()
4371 --ectx->ec_stack.ga_len; in exec_instructions()
4389 --ectx->ec_stack.ga_len; in exec_instructions()
4401 ectx->ec_stack.ga_len; in exec_instructions()
4446 if (GA_GROW_FAILS(&ectx->ec_stack, count - 1)) in exec_instructions()
4448 ectx->ec_stack.ga_len += count - 1; in exec_instructions()
4530 --ectx->ec_stack.ga_len; in exec_instructions()
4561 while (ectx->ec_stack.ga_len in exec_instructions()
4564 --ectx->ec_stack.ga_len; in exec_instructions()
4605 --ectx->ec_stack.ga_len; in exe_typval_instr()
4632 --ectx->ec_stack.ga_len; in exe_substitute_instr()
4677 #define STACK_TV(idx) (((typval_T *)ectx.ec_stack.ga_data) + idx) in call_def_function()
4681 #define STACK_TV_BOT(idx) (((typval_T *)ectx.ec_stack.ga_data) + ectx.ec_stack.ga_len + idx) in call_def_function()
4685 #define STACK_TV_VAR(idx) (((typval_T *)ectx.ec_stack.ga_data) + ectx.ec_frame_idx + STACK_FRAME_SI… in call_def_function()
4720 ga_init2(&ectx.ec_stack, sizeof(typval_T), 500); in call_def_function()
4721 if (GA_GROW_FAILS(&ectx.ec_stack, 20)) in call_def_function()
4772 ++ectx.ec_stack.ga_len; in call_def_function()
4809 --ectx.ec_stack.ga_len; in call_def_function()
4818 ++ectx.ec_stack.ga_len; in call_def_function()
4821 ++ectx.ec_stack.ga_len; in call_def_function()
4824 ectx.ec_frame_idx = ectx.ec_stack.ga_len; in call_def_function()
4867 STACK_TV(ectx.ec_stack.ga_len)->v_type = VAR_UNKNOWN; in call_def_function()
4868 ++ectx.ec_stack.ga_len; in call_def_function()
4878 ectx.ec_stack.ga_len += dfunc->df_varcount; in call_def_function()
4883 ++ectx.ec_stack.ga_len; in call_def_function()
4972 for (idx = 0; idx < ectx.ec_stack.ga_len; ++idx) in call_def_function()
4976 vim_free(ectx.ec_stack.ga_data); in call_def_function()