5972294d
by Francis De Brabandere at 2026-04-06T18:42:49+02:00
vbscript: Fast-path stack_pop_bool for VT_BOOL.
Skip the expensive VariantChangeType call in stack_pop_bool when the
variant is already VT_BOOL, which is the common case after comparison
operators (OP_gt, OP_lt, OP_equal, etc.). Every If, ElseIf, While,
and Do-While condition goes through jmp_false/jmp_true which calls
stack_pop_bool, so this eliminates a redundant VT_BOOL-to-VT_BOOL
conversion on every branch.