summaryrefslogtreecommitdiff
path: root/src/vim9execute.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2022-04-28 12:00:49 +0100
committerBram Moolenaar <Bram@vim.org>2022-04-28 12:00:49 +0100
commitf6ced9863f931758a4cee0b6546e77d21150806d (patch)
tree4ff0e3ccfb85d53897b4f29177985134d145d281 /src/vim9execute.c
parent95e4dd813a19236772dbe53eb9f605b4ff5199b2 (diff)
downloadvim-git-f6ced9863f931758a4cee0b6546e77d21150806d.tar.gz
patch 8.2.4836: Vim9: some lines not covered by testsv8.2.4836
Problem: Vim9: some lines not covered by tests. Solution: Remove dead code. Add disassemble tests.
Diffstat (limited to 'src/vim9execute.c')
-rw-r--r--src/vim9execute.c20
1 files changed, 4 insertions, 16 deletions
diff --git a/src/vim9execute.c b/src/vim9execute.c
index 7a65be331..4646968f5 100644
--- 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 *instr, int instr_count, ufunc_T *ufunc)
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 *instr, int instr_count, ufunc_T *ufunc)
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;