Lines Matching refs:ga_len
224 for (idx = 0; idx < cctx->ctx_locals.ga_len; ++idx) in lookup_local()
287 *idxp = idx - (cctx->ctx_ufunc->uf_args.ga_len in arg_exists()
553 isn = ((isn_T *)instr->ga_data) + instr->ga_len; in generate_instr()
556 ++instr->ga_len; in generate_instr()
572 stack->ga_len -= drop; in generate_instr_drop()
590 ((type_T **)stack->ga_data)[stack->ga_len] = type == NULL ? &t_any : type; in generate_instr_type()
591 ++stack->ga_len; in generate_instr_type()
608 isn->isn_arg.debug.dbg_var_names_len = dfunc->df_var_names.ga_len; in generate_instr_debug()
627 type = ((type_T **)stack->ga_data) + stack->ga_len + offset; in may_generate_2STRING()
734 (((type_T **)stack->ga_data)[stack->ga_len - 1]) = &t_list_any; in generate_add_instr()
774 type1 = ((type_T **)stack->ga_data)[stack->ga_len - 2]; in generate_two_op()
775 type2 = ((type_T **)stack->ga_data)[stack->ga_len - 1]; in generate_two_op()
830 ((type_T **)stack->ga_data)[stack->ga_len - 1] = type; in generate_two_op()
922 type1 = ((type_T **)stack->ga_data)[stack->ga_len - 2]->tt_type; in generate_COMPARE()
923 type2 = ((type_T **)stack->ga_data)[stack->ga_len - 1]->tt_type; in generate_COMPARE()
934 if (stack->ga_len >= 2) in generate_COMPARE()
936 --stack->ga_len; in generate_COMPARE()
937 ((type_T **)stack->ga_data)[stack->ga_len - 1] = &t_bool; in generate_COMPARE()
960 ((type_T **)stack->ga_data)[stack->ga_len + offset] = &t_bool; in generate_2BOOL()
979 ((type_T **)stack->ga_data)[stack->ga_len - 1] = &t_bool; in generate_COND2BOOL()
1002 ((type_T **)stack->ga_data)[stack->ga_len + offset] = expected; in generate_TYPECHECK()
1115 type = ((type_T **)stack->ga_data)[stack->ga_len - 1]; in bool_on_stack()
1143 ((type_T **)stack->ga_data)[stack->ga_len - 1] = &t_number_bool; in generate_PUSHNR()
1301 type_T *type = ((type_T **)stack->ga_data)[stack->ga_len in generate_GETITEM()
1322 ((type_T **)stack->ga_data)[stack->ga_len] = item_type; in generate_GETITEM()
1323 ++stack->ga_len; in generate_GETITEM()
1614 ((type_T **)stack->ga_data) + stack->ga_len, count, 1, in generate_NEWLIST()
1619 stack->ga_len -= count; in generate_NEWLIST()
1624 ((type_T **)stack->ga_data)[stack->ga_len] = type; in generate_NEWLIST()
1625 ++stack->ga_len; in generate_NEWLIST()
1650 ((type_T **)stack->ga_data) + stack->ga_len, count, 2, in generate_NEWDICT()
1655 stack->ga_len -= 2 * count; in generate_NEWDICT()
1660 ((type_T **)stack->ga_data)[stack->ga_len] = type; in generate_NEWDICT()
1661 ++stack->ga_len; in generate_NEWDICT()
1688 ((type_T **)stack->ga_data)[stack->ga_len] = in generate_FUNCREF()
1690 ++stack->ga_len; in generate_FUNCREF()
1758 if (when != JUMP_ALWAYS && stack->ga_len > 0) in generate_JUMP()
1759 --stack->ga_len; in generate_JUMP()
1794 ((type_T **)stack->ga_data)[stack->ga_len] = &t_any; in generate_FOR()
1795 ++stack->ga_len; in generate_FOR()
1848 argtypes = ((type_T **)stack->ga_data) + stack->ga_len - argcount; in generate_BCALL()
1872 stack->ga_len -= argcount; in generate_BCALL()
1875 ((type_T **)stack->ga_data)[stack->ga_len] = in generate_BCALL()
1877 ++stack->ga_len; in generate_BCALL()
1900 list_type = ((type_T **)stack->ga_data)[stack->ga_len - 2]; in generate_LISTAPPEND()
1901 item_type = ((type_T **)stack->ga_data)[stack->ga_len - 1]; in generate_LISTAPPEND()
1909 --stack->ga_len; // drop the argument in generate_LISTAPPEND()
1924 item_type = ((type_T **)stack->ga_data)[stack->ga_len - 1]; in generate_BLOBAPPEND()
1931 --stack->ga_len; // drop the argument in generate_BLOBAPPEND()
1982 int regular_args = ufunc->uf_args.ga_len; in generate_CALL()
1991 if (argcount < regular_args - ufunc->uf_def_args.ga_len) in generate_CALL()
2007 actual = ((type_T **)stack->ga_data)[stack->ga_len - argcount + i]; in generate_CALL()
2009 && i >= regular_args - ufunc->uf_def_args.ga_len) in generate_CALL()
2062 stack->ga_len -= argcount; // drop the arguments in generate_CALL()
2066 ((type_T **)stack->ga_data)[stack->ga_len] = ufunc->uf_ret_type; in generate_CALL()
2067 ++stack->ga_len; in generate_CALL()
2087 stack->ga_len -= argcount; // drop the arguments in generate_UCALL()
2091 ((type_T **)stack->ga_data)[stack->ga_len] = &t_any; in generate_UCALL()
2092 ++stack->ga_len; in generate_UCALL()
2141 stack->ga_len + offset]; in generate_PCALL()
2177 stack->ga_len -= argcount; // drop the arguments in generate_PCALL()
2180 ((type_T **)stack->ga_data)[stack->ga_len - 1] = ret_type; in generate_PCALL()
2206 type = ((type_T **)stack->ga_data)[stack->ga_len - 1]; in generate_STRINGMEMBER()
2219 ((type_T **)stack->ga_data)[stack->ga_len - 1] = in generate_STRINGMEMBER()
2299 ((type_T **)stack->ga_data)[stack->ga_len] = &t_any; in generate_LEGACY_EVAL()
2300 ++stack->ga_len; in generate_LEGACY_EVAL()
2331 ((type_T **)stack->ga_data)[stack->ga_len] = &t_number; in generate_RANGE()
2332 ++stack->ga_len; in generate_RANGE()
2389 && ((isn_T *)instr->ga_data)[instr->ga_len - 1].isn_type in misplaced_cmdmod()
2406 int idx = instr->ga_len; in current_instr_idx()
2465 lvar = ((lvar_T *)cctx->ctx_locals.ga_data) + cctx->ctx_locals.ga_len++; in reserve_local()
2473 lvar->lv_idx = dfunc->df_var_names.ga_len; in reserve_local()
2484 ++dfunc->df_var_names.ga_len; in reserve_local()
2495 if (cctx->ctx_locals.ga_len > new_top) in unwind_locals()
2500 for (idx = new_top; idx < cctx->ctx_locals.ga_len; ++idx) in unwind_locals()
2506 cctx->ctx_locals.ga_len = new_top; in unwind_locals()
2575 for (idx = 0; idx < si->sn_var_vals.ga_len; ++idx) in get_script_item_idx()
2600 for (idx = 0; idx < cctx->ctx_imports.ga_len; ++idx) in find_imported()
2623 for (idx = 0; idx < si->sn_imports.ga_len; ++idx) in find_imported_in_script()
2643 for (idx = 0; idx < cctx->ctx_imports.ga_len; ++idx) in free_imported()
2662 while (++lnum < cctx->ctx_ufunc->uf_lines.ga_len) in peek_next_line_from_context()
2714 if (cctx->ctx_lnum >= cctx->ctx_ufunc->uf_lines.ga_len) in next_line_from_context()
2894 typep = ((type_T **)stack->ga_data) + stack->ga_len in compile_member()
2897 idxtype = ((type_T **)stack->ga_data)[stack->ga_len - 1]; in compile_member()
2907 idxtype = ((type_T **)stack->ga_data)[stack->ga_len - 2]; in compile_member()
3283 for (idx = 0; idx < gap->ga_len; ++idx) in clear_instr_ga()
3303 --cctx->ctx_type_stack.ga_len; in compile_string()
3307 cctx->ctx_instr.ga_len = 0; in compile_string()
3321 ++cctx->ctx_type_stack.ga_len; in compile_string()
3327 instr_count = cctx->ctx_instr.ga_len; in compile_string()
3365 instr_count = cctx->ctx_instr.ga_len; in compile_arguments()
3371 && cctx->ctx_instr.ga_len == instr_count + 1) in compile_arguments()
3512 stack->ga_len - 2]; in compile_call()
3560 type_T *type = ((type_T **)stack->ga_data)[stack->ga_len - 1]; in compile_call()
3742 size_t off = *arg - ((char_u **)gap->ga_data)[gap->ga_len - 1]; in compile_lambda()
3848 isn = ((isn_T *)instr->ga_data) + instr->ga_len - 1; in compile_dict()
4234 type = ((type_T **)stack->ga_data)[stack->ga_len - 1]; in compile_leader()
4363 type = ((type_T **)stack->ga_data)[stack->ga_len - 1]; in compile_subscript()
4398 int type_idx_start = stack->ga_len; in compile_subscript()
4400 int expr_isn_start = cctx->ctx_instr.ga_len; in compile_subscript()
4413 expr_isn_end = cctx->ctx_instr.ga_len; in compile_subscript()
4433 arg_isn_count = cctx->ctx_instr.ga_len - expr_isn_end; in compile_subscript()
4457 * (stack->ga_len - type_idx_start - 1)); in compile_subscript()
4458 ((type_T **)stack->ga_data)[stack->ga_len - 1] = type; in compile_subscript()
4461 type = ((type_T **)stack->ga_data)[stack->ga_len - 1]; in compile_subscript()
4929 actual = ((type_T **)stack->ga_data)[stack->ga_len - 1]; in compile_expr7t()
5329 *(((int *)end_ga.ga_data) + end_ga.ga_len) = instr->ga_len; in compile_and_or()
5330 ++end_ga.ga_len; in compile_and_or()
5382 if (end_ga.ga_len > 0) in compile_and_or()
5386 while (end_ga.ga_len > 0) in compile_and_or()
5390 --end_ga.ga_len; in compile_and_or()
5392 + *(((int *)end_ga.ga_data) + end_ga.ga_len); in compile_and_or()
5393 isn->isn_arg.jump.jump_where = instr->ga_len; in compile_and_or()
5495 int alt_idx = instr->ga_len; in compile_expr1()
5548 end_idx = instr->ga_len; in compile_expr1()
5552 type1 = ((type_T **)stack->ga_data)[stack->ga_len]; in compile_expr1()
5568 --stack->ga_len; in compile_expr1()
5569 type1 = ((type_T **)stack->ga_data)[stack->ga_len]; in compile_expr1()
5571 end_idx = instr->ga_len; in compile_expr1()
5576 isn->isn_arg.jump.jump_where = instr->ga_len; in compile_expr1()
5619 typep = ((type_T **)stack->ga_data) + stack->ga_len - 1; in compile_expr1()
5624 isn->isn_arg.jump.jump_where = instr->ga_len; in compile_expr1()
5701 stack_type = ((type_T **)stack->ga_data)[stack->ga_len - 1]; in compile_return()
5767 if (cctx->ctx_lnum >= cctx->ctx_ufunc->uf_lines.ga_len - 1) in exarg_getline()
6224 isn_T *isn = ((isn_T *)instr->ga_data) + instr->ga_len - 1; in generate_store_lhs()
6229 && instr->ga_len == instr_count + 1 in generate_store_lhs()
6238 if (stack->ga_len > 0) in generate_store_lhs()
6239 --stack->ga_len; in generate_store_lhs()
6688 int lines_len = cctx->ctx_ufunc->uf_lines.ga_len; in compile_load_lhs()
6696 cctx->ctx_ufunc->uf_lines.ga_len = cctx->ctx_lnum + 1; in compile_load_lhs()
6699 cctx->ctx_ufunc->uf_lines.ga_len = lines_len; in compile_load_lhs()
6708 lhs->lhs_type = stack->ga_len == 0 ? &t_void in compile_load_lhs()
6709 : ((type_T **)stack->ga_data)[stack->ga_len - 1]; in compile_load_lhs()
6804 type = ((type_T **)stack->ga_data)[stack->ga_len - 2]; in compile_assign_unlet()
6809 type = ((type_T **)stack->ga_data)[stack->ga_len - 1]; in compile_assign_unlet()
6985 stacktype = stack->ga_len == 0 ? &t_void in compile_assignment()
6986 : ((type_T **)stack->ga_data)[stack->ga_len - 1]; in compile_assignment()
7071 instr_count = instr->ga_len; in compile_assignment()
7081 --cctx->ctx_locals.ga_len; in compile_assignment()
7086 ++cctx->ctx_locals.ga_len; in compile_assignment()
7091 ++cctx->ctx_locals.ga_len; in compile_assignment()
7111 rhs_type = stack->ga_len == 0 ? &t_void in compile_assignment()
7112 : ((type_T **)stack->ga_data)[stack->ga_len - 1]; in compile_assignment()
7262 stacktype = ((type_T **)stack->ga_data)[stack->ga_len - 1]; in compile_assignment()
7598 endlabel->el_end_label = instr->ga_len; in compile_jump_to_end()
7646 scope->se_local_count = cctx->ctx_locals.ga_len; in new_scope()
7718 int instr_count = instr->ga_len; in compile_if()
7736 else if (instr->ga_len == instr_count && ppconst.pp_used == 1) in compile_if()
7771 scope->se_u.se_if.is_if_label = instr->ga_len; in compile_if()
7797 int instr_count = instr->ga_len; in compile_elseif()
7822 instr->ga_len = current_instr_idx(cctx); in compile_elseif()
7835 if (((isn_T *)instr->ga_data)[instr->ga_len - 1].isn_type == ISN_CMDMOD) in compile_elseif()
7839 ((isn_T *)instr->ga_data)[instr->ga_len] = in compile_elseif()
7840 ((isn_T *)instr->ga_data)[instr->ga_len - 1]; in compile_elseif()
7841 --instr->ga_len; in compile_elseif()
7847 if (cctx->ctx_compile_type == CT_DEBUG && instr->ga_len > 0 in compile_elseif()
7848 && ((isn_T *)instr->ga_data)[instr->ga_len - 1] in compile_elseif()
7851 --instr->ga_len; in compile_elseif()
7852 debug_isn = ((isn_T *)instr->ga_data)[instr->ga_len]; in compile_elseif()
7861 isn->isn_arg.jump.jump_where = instr->ga_len; in compile_elseif()
7864 ++instr->ga_len; in compile_elseif()
7871 ((isn_T *)instr->ga_data)[instr->ga_len] = debug_isn; in compile_elseif()
7872 ++instr->ga_len; in compile_elseif()
7886 instr_count = instr->ga_len; in compile_elseif()
7893 instr_count = instr->ga_len; in compile_elseif()
7909 else if (instr->ga_len == instr_count && ppconst.pp_used == 1) in compile_elseif()
7936 scope->se_u.se_if.is_if_label = instr->ga_len; in compile_elseif()
7965 && ((isn_T *)instr->ga_data)[instr->ga_len - 1] in compile_else()
7969 --instr->ga_len; in compile_else()
7999 isn->isn_arg.jump.jump_where = instr->ga_len; in compile_else()
8036 isn->isn_arg.jump.jump_where = instr->ga_len; in compile_endif()
8039 compile_fill_jump_to_end(&ifscope->is_end_label, instr->ga_len, cctx); in compile_endif()
8129 if (cctx->ctx_compile_type == CT_DEBUG && instr->ga_len > 0 in compile_for()
8130 && ((isn_T *)instr->ga_data)[instr->ga_len - 1] in compile_for()
8133 --instr->ga_len; in compile_for()
8134 prev_lnum = ((isn_T *)instr->ga_data)[instr->ga_len] in compile_for()
8166 vartype = ((type_T **)stack->ga_data)[stack->ga_len - 1]; in compile_for()
8211 --stack->ga_len; in compile_for()
8214 ((type_T **)stack->ga_data)[stack->ga_len] = in compile_for()
8216 ++stack->ga_len; in compile_for()
8350 isn->isn_arg.forloop.for_end = instr->ga_len; in compile_endfor()
8353 compile_fill_jump_to_end(&forscope->fs_end_label, instr->ga_len, cctx); in compile_endfor()
8448 instr->ga_len, cctx); in compile_endwhile()
8610 try_scope->se_u.se_try.ts_try_label = instr->ga_len; in compile_try()
8663 && instr->ga_len > 0 in compile_catch()
8664 && ((isn_T *)instr->ga_data)[instr->ga_len - 1] in compile_catch()
8666 --instr->ga_len; in compile_catch()
8676 isn->isn_arg.try.try_ref->try_catch = instr->ga_len; in compile_catch()
8681 isn->isn_arg.jump.jump_where = instr->ga_len; in compile_catch()
8735 scope->se_u.se_try.ts_catch_label = instr->ga_len; in compile_catch()
8781 this_instr = instr->ga_len; in compile_finally()
8862 && ((isn_T *)instr->ga_data)[instr->ga_len - 1] in compile_endtry()
8866 --instr->ga_len; in compile_endtry()
8872 instr->ga_len, cctx); in compile_endtry()
8879 isn->isn_arg.jump.jump_where = instr->ga_len; in compile_endtry()
8889 try_isn->isn_arg.try.try_ref->try_endtry = instr->ga_len; in compile_endtry()
8977 type = ((type_T **)stack->ga_data)[stack->ga_len - 1]; in compile_mult_expr()
9097 isn_T *isn = ((isn_T *)instr->ga_data) + instr->ga_len - 1; in compile_exec()
9104 --instr->ga_len; in compile_exec()
9321 cctx->ctx_instr.ga_len = 0; in compile_substitute()
9343 instr_count = cctx->ctx_instr.ga_len; in compile_substitute()
9507 if (def_functions.ga_len == 0) in add_def_function()
9513 ++def_functions.ga_len; in add_def_function()
9519 dfunc = ((dfunc_T *)def_functions.ga_data) + def_functions.ga_len; in add_def_function()
9521 dfunc->df_idx = def_functions.ga_len; in add_def_function()
9527 ++def_functions.ga_len; in add_def_function()
9629 if (ufunc->uf_def_args.ga_len > 0) in compile_def_function()
9631 int count = ufunc->uf_def_args.ga_len; in compile_def_function()
9632 int first_def_arg = ufunc->uf_args.ga_len - count; in compile_def_function()
9647 int jump_instr_idx = instr->ga_len; in compile_def_function()
9666 val_type = ((type_T **)stack->ga_data)[stack->ga_len - 1]; in compile_def_function()
9682 isn->isn_arg.jumparg.jump_where = instr->ga_len; in compile_def_function()
9688 ufunc->uf_args_visible = ufunc->uf_args.ga_len; in compile_def_function()
9720 if (cctx.ctx_lnum >= ufunc->uf_lines.ga_len) in compile_def_function()
10178 if (cctx.ctx_type_stack.ga_len < 0) in compile_def_function()
10224 dfunc->df_instr_prof_count = instr->ga_len; in compile_def_function()
10231 dfunc->df_instr_debug_count = instr->ga_len; in compile_def_function()
10236 dfunc->df_instr_count = instr->ga_len; in compile_def_function()
10238 dfunc->df_varcount = dfunc->df_var_names.ga_len; in compile_def_function()
10261 && ufunc->uf_dfunc_idx == def_functions.ga_len - 1) in compile_def_function()
10263 --def_functions.ga_len; in compile_def_function()
10305 int argcount = ufunc->uf_args.ga_len; in set_function_type()
10324 argcount - ufunc->uf_def_args.ga_len; in set_function_type()
10689 for (idx = 0; idx < def_functions.ga_len; ++idx) in free_def_functions()