This patch adds a way to quickly check if there are throwing instructions
between two instructions in the same basic block.
To do so, we first number all instructions in a BB starting from 0 and
incrementing the counter every time we hit a throwing instruction. If
2 instructions have the same number, there is no throwing instruction
between them.
What happens if NI is the first instruction in the block? Or is that impossible in this context?