jit: extra functions for opcode insertion