Lines Matching refs:instr

547     garray_T	*instr = &cctx->ctx_instr;  in generate_instr()  local
551 if (GA_GROW_FAILS(instr, 1)) in generate_instr()
553 isn = ((isn_T *)instr->ga_data) + instr->ga_len; in generate_instr()
556 ++instr->ga_len; in generate_instr()
2386 garray_T *instr = &cctx->ctx_instr; in misplaced_cmdmod() local
2389 && ((isn_T *)instr->ga_data)[instr->ga_len - 1].isn_type in misplaced_cmdmod()
2405 garray_T *instr = &cctx->ctx_instr; in current_instr_idx() local
2406 int idx = instr->ga_len; in current_instr_idx()
2410 if (cctx->ctx_has_cmdmod && ((isn_T *)instr->ga_data)[idx - 1] in current_instr_idx()
2417 if (((isn_T *)instr->ga_data)[idx - 1].isn_type == ISN_PROF_START) in current_instr_idx()
2423 if (((isn_T *)instr->ga_data)[idx - 1].isn_type == ISN_DEBUG) in current_instr_idx()
3300 isn_T *instr = NULL; in compile_string() local
3328 instr = cctx->ctx_instr.ga_data; in compile_string()
3329 instr[instr_count].isn_type = ISN_FINISH; in compile_string()
3334 isn->isn_arg.instr = instr; in compile_string()
3814 garray_T *instr = &cctx->ctx_instr; in compile_dict() local
3848 isn = ((isn_T *)instr->ga_data) + instr->ga_len - 1; in compile_dict()
5245 garray_T *instr = &cctx->ctx_instr; in compile_and_or() local
5329 *(((int *)end_ga.ga_data) + end_ga.ga_len) = instr->ga_len; in compile_and_or()
5391 isn = ((isn_T *)instr->ga_data) in compile_and_or()
5393 isn->isn_arg.jump.jump_where = instr->ga_len; in compile_and_or()
5493 garray_T *instr = &cctx->ctx_instr; in compile_expr1() local
5495 int alt_idx = instr->ga_len; in compile_expr1()
5548 end_idx = instr->ga_len; in compile_expr1()
5571 end_idx = instr->ga_len; in compile_expr1()
5575 isn = ((isn_T *)instr->ga_data) + alt_idx; in compile_expr1()
5576 isn->isn_arg.jump.jump_where = instr->ga_len; in compile_expr1()
5623 isn = ((isn_T *)instr->ga_data) + end_idx; in compile_expr1()
5624 isn->isn_arg.jump.jump_where = instr->ga_len; in compile_expr1()
6223 garray_T *instr = &cctx->ctx_instr; in generate_store_lhs() local
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()
6887 garray_T *instr = &cctx->ctx_instr; in compile_assignment() local
7071 instr_count = instr->ga_len; in compile_assignment()
7197 if (GA_GROW_FAILS(instr, 1)) in compile_assignment()
7591 garray_T *instr = &cctx->ctx_instr; in compile_jump_to_end() local
7598 endlabel->el_end_label = instr->ga_len; in compile_jump_to_end()
7607 garray_T *instr = &cctx->ctx_instr; in compile_fill_jump_to_end() local
7614 isn = ((isn_T *)instr->ga_data) + cur->el_end_label; in compile_fill_jump_to_end()
7717 garray_T *instr = &cctx->ctx_instr; in compile_if() local
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()
7796 garray_T *instr = &cctx->ctx_instr; in compile_elseif() local
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()
7837 if (GA_GROW_FAILS(instr, 1)) 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()
7860 isn = ((isn_T *)instr->ga_data) + scope->se_u.se_if.is_if_label; in compile_elseif()
7861 isn->isn_arg.jump.jump_where = instr->ga_len; in compile_elseif()
7864 ++instr->ga_len; in compile_elseif()
7869 if (GA_GROW_FAILS(instr, 1)) 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()
7947 garray_T *instr = &cctx->ctx_instr; in compile_else() local
7965 && ((isn_T *)instr->ga_data)[instr->ga_len - 1] in compile_else()
7969 --instr->ga_len; in compile_else()
7998 isn = ((isn_T *)instr->ga_data) + scope->se_u.se_if.is_if_label; in compile_else()
7999 isn->isn_arg.jump.jump_where = instr->ga_len; in compile_else()
8016 garray_T *instr = &cctx->ctx_instr; in compile_endif() local
8035 isn = ((isn_T *)instr->ga_data) + scope->se_u.se_if.is_if_label; in compile_endif()
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()
8094 garray_T *instr = &cctx->ctx_instr; in compile_for() local
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()
8326 garray_T *instr = &cctx->ctx_instr; in compile_endfor() local
8349 isn = ((isn_T *)instr->ga_data) + forscope->fs_top_label; in compile_endfor()
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()
8423 garray_T *instr = &cctx->ctx_instr; in compile_endwhile() local
8448 instr->ga_len, cctx); in compile_endwhile()
8590 garray_T *instr = &cctx->ctx_instr; in compile_try() local
8610 try_scope->se_u.se_try.ts_try_label = instr->ga_len; in compile_try()
8633 garray_T *instr = &cctx->ctx_instr; in compile_catch() local
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()
8674 isn = ((isn_T *)instr->ga_data) + scope->se_u.se_try.ts_try_label; in compile_catch()
8676 isn->isn_arg.try.try_ref->try_catch = instr->ga_len; in compile_catch()
8680 isn = ((isn_T *)instr->ga_data) + scope->se_u.se_try.ts_catch_label; 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()
8752 garray_T *instr = &cctx->ctx_instr; in compile_finally() local
8774 isn = ((isn_T *)instr->ga_data) + scope->se_u.se_try.ts_try_label; in compile_finally()
8781 this_instr = instr->ga_len; in compile_finally()
8784 && ((isn_T *)instr->ga_data)[this_instr - 1] in compile_finally()
8791 if (this_instr > 0 && ((isn_T *)instr->ga_data)[this_instr - 1] in compile_finally()
8808 isn = ((isn_T *)instr->ga_data) + scope->se_u.se_try.ts_catch_label; in compile_finally()
8825 garray_T *instr = &cctx->ctx_instr; in compile_endtry() local
8850 try_isn = ((isn_T *)instr->ga_data) + scope->se_u.se_try.ts_try_label; in compile_endtry()
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()
8877 isn_T *isn = ((isn_T *)instr->ga_data) 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()
9096 garray_T *instr = &cctx->ctx_instr; in compile_exec() local
9097 isn_T *isn = ((isn_T *)instr->ga_data) + instr->ga_len - 1; in compile_exec()
9104 --instr->ga_len; in compile_exec()
9313 isn_T *instr; in compile_substitute() local
9344 instr = cctx->ctx_instr.ga_data; in compile_substitute()
9345 instr[instr_count].isn_type = ISN_FINISH; in compile_substitute()
9353 delete_instr(instr + idx); in compile_substitute()
9354 vim_free(instr); in compile_substitute()
9358 isn->isn_arg.subs.subs_instr = instr; in compile_substitute()
9556 garray_T *instr; in compile_def_function() local
9612 instr = &cctx.ctx_instr; in compile_def_function()
9647 int jump_instr_idx = instr->ga_len; in compile_def_function()
9681 isn = ((isn_T *)instr->ga_data) + jump_instr_idx; in compile_def_function()
9682 isn->isn_arg.jumparg.jump_where = instr->ga_len; in compile_def_function()
10223 dfunc->df_instr_prof = instr->ga_data; in compile_def_function()
10224 dfunc->df_instr_prof_count = instr->ga_len; in compile_def_function()
10230 dfunc->df_instr_debug = instr->ga_data; in compile_def_function()
10231 dfunc->df_instr_debug_count = instr->ga_len; in compile_def_function()
10235 dfunc->df_instr = instr->ga_data; in compile_def_function()
10236 dfunc->df_instr_count = instr->ga_len; in compile_def_function()
10254 clear_instr_ga(instr); in compile_def_function()
10399 isn_T *list = isn->isn_arg.instr; in delete_instr()