Mercurial > vim
diff 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 |
line wrap: on
line diff
--- a/src/vim9execute.c +++ b/src/vim9execute.c @@ -3788,9 +3788,7 @@ exec_instructions(ectx_T *ectx) } else jump = tv2bool(tv); - if (when == JUMP_IF_FALSE - || when == JUMP_AND_KEEP_IF_FALSE - || when == JUMP_IF_COND_FALSE) + if (when == JUMP_IF_FALSE || when == JUMP_IF_COND_FALSE) jump = !jump; if (when == JUMP_IF_FALSE || !jump) { @@ -5662,16 +5660,9 @@ list_instructions(char *pfx, isn_T *inst iptr->isn_arg.number); break; case ISN_STOREOUTER: - { - if (iptr->isn_arg.number < 0) - smsg("%s%4d STOREOUTEr level %d arg[%d]", pfx, current, - iptr->isn_arg.outer.outer_depth, - iptr->isn_arg.outer.outer_idx + STACK_FRAME_SIZE); - else - smsg("%s%4d STOREOUTER level %d $%d", pfx, current, - iptr->isn_arg.outer.outer_depth, - iptr->isn_arg.outer.outer_idx); - } + smsg("%s%4d STOREOUTER level %d $%d", pfx, current, + iptr->isn_arg.outer.outer_depth, + iptr->isn_arg.outer.outer_idx); break; case ISN_STOREV: smsg("%s%4d STOREV v:%s", pfx, current, @@ -5935,9 +5926,6 @@ list_instructions(char *pfx, isn_T *inst case JUMP_IF_FALSE: when = "JUMP_IF_FALSE"; break; - case JUMP_AND_KEEP_IF_FALSE: - when = "JUMP_AND_KEEP_IF_FALSE"; - break; case JUMP_IF_COND_FALSE: when = "JUMP_IF_COND_FALSE"; break;