0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -04:00

patch 8.2.3442: Vim9: || and && are not handled at compile time

Problem:    Vim9: || and && are not handled at compile time when possible.
Solution:   When using constants generate fewer instructions.
This commit is contained in:
Bram Moolenaar
2021-09-16 16:15:07 +02:00
parent ee2cbcd99c
commit 1a7ee4dd11
5 changed files with 138 additions and 39 deletions

View File

@@ -5487,6 +5487,9 @@ list_instructions(char *pfx, isn_T *instr, int instr_count, ufunc_T *ufunc)
case JUMP_ALWAYS:
when = "JUMP";
break;
case JUMP_NEVER:
iemsg("JUMP_NEVER should not be used");
break;
case JUMP_AND_KEEP_IF_TRUE:
when = "JUMP_AND_KEEP_IF_TRUE";
break;