// For now:
// lhs
// if peek() is nothing then goto nothingCase
// existsCase:
// goto done
// nothingCase:
// pop // drop lhs
// rhs
// done:
// TODO if we had a jmpNotNothing (exactly like jmpNothing but with the condition reversed)
// we could avoid jumping over a jump here:
// lhs
// if peek() is not nothing then goto done
// pop // drop lhs
// rhs
// done:
Add jmpNotNothing vm instruction can avoid a jmp instruction for fillEmpty
- related to
-
SERVER-71494 Add jmpFalse vm instruction
-
- Closed
-