Improve perf when ignore illegal is off.

Most users will have it on, but this improves perf a bit when it isn't.
Merge pull request #2655 from unknownbrackets/jit-minor

Improve perf when ignore illegal is off