1
0
forked from aniani/vim

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

@@ -221,6 +221,7 @@ typedef struct {
typedef enum {
JUMP_ALWAYS,
JUMP_NEVER,
JUMP_IF_FALSE, // pop and jump if false
JUMP_AND_KEEP_IF_TRUE, // jump if top of stack is truthy, drop if not
JUMP_AND_KEEP_IF_FALSE, // jump if top of stack is falsy, drop if not