comparison src/vim9execute.c @ 28625:56860e29ce5d v8.2.4836

patch 8.2.4836: Vim9: some lines not covered by tests Commit: https://github.com/vim/vim/commit/f6ced9863f931758a4cee0b6546e77d21150806d Author: Bram Moolenaar <Bram@vim.org> Date: Thu Apr 28 12:00:49 2022 +0100 patch 8.2.4836: Vim9: some lines not covered by tests Problem: Vim9: some lines not covered by tests. Solution: Remove dead code. Add disassemble tests.
author Bram Moolenaar <Bram@vim.org>
date Thu, 28 Apr 2022 13:15:04 +0200
parents 1d92ba691dc4
children bfd8e25fa207
comparison
equal deleted inserted replaced
28624:cfe842c7e379 28625:56860e29ce5d
3786 if (error) 3786 if (error)
3787 goto on_error; 3787 goto on_error;
3788 } 3788 }
3789 else 3789 else
3790 jump = tv2bool(tv); 3790 jump = tv2bool(tv);
3791 if (when == JUMP_IF_FALSE 3791 if (when == JUMP_IF_FALSE || when == JUMP_IF_COND_FALSE)
3792 || when == JUMP_AND_KEEP_IF_FALSE
3793 || when == JUMP_IF_COND_FALSE)
3794 jump = !jump; 3792 jump = !jump;
3795 if (when == JUMP_IF_FALSE || !jump) 3793 if (when == JUMP_IF_FALSE || !jump)
3796 { 3794 {
3797 // drop the value from the stack 3795 // drop the value from the stack
3798 clear_tv(tv); 3796 clear_tv(tv);
5660 else 5658 else
5661 smsg("%s%4d STORE $%lld", pfx, current, 5659 smsg("%s%4d STORE $%lld", pfx, current,
5662 iptr->isn_arg.number); 5660 iptr->isn_arg.number);
5663 break; 5661 break;
5664 case ISN_STOREOUTER: 5662 case ISN_STOREOUTER:
5665 { 5663 smsg("%s%4d STOREOUTER level %d $%d", pfx, current,
5666 if (iptr->isn_arg.number < 0) 5664 iptr->isn_arg.outer.outer_depth,
5667 smsg("%s%4d STOREOUTEr level %d arg[%d]", pfx, current, 5665 iptr->isn_arg.outer.outer_idx);
5668 iptr->isn_arg.outer.outer_depth,
5669 iptr->isn_arg.outer.outer_idx + STACK_FRAME_SIZE);
5670 else
5671 smsg("%s%4d STOREOUTER level %d $%d", pfx, current,
5672 iptr->isn_arg.outer.outer_depth,
5673 iptr->isn_arg.outer.outer_idx);
5674 }
5675 break; 5666 break;
5676 case ISN_STOREV: 5667 case ISN_STOREV:
5677 smsg("%s%4d STOREV v:%s", pfx, current, 5668 smsg("%s%4d STOREV v:%s", pfx, current,
5678 get_vim_var_name(iptr->isn_arg.number)); 5669 get_vim_var_name(iptr->isn_arg.number));
5679 break; 5670 break;
5932 case JUMP_AND_KEEP_IF_TRUE: 5923 case JUMP_AND_KEEP_IF_TRUE:
5933 when = "JUMP_AND_KEEP_IF_TRUE"; 5924 when = "JUMP_AND_KEEP_IF_TRUE";
5934 break; 5925 break;
5935 case JUMP_IF_FALSE: 5926 case JUMP_IF_FALSE:
5936 when = "JUMP_IF_FALSE"; 5927 when = "JUMP_IF_FALSE";
5937 break;
5938 case JUMP_AND_KEEP_IF_FALSE:
5939 when = "JUMP_AND_KEEP_IF_FALSE";
5940 break; 5928 break;
5941 case JUMP_IF_COND_FALSE: 5929 case JUMP_IF_COND_FALSE:
5942 when = "JUMP_IF_COND_FALSE"; 5930 when = "JUMP_IF_COND_FALSE";
5943 break; 5931 break;
5944 case JUMP_IF_COND_TRUE: 5932 case JUMP_IF_COND_TRUE: