add is compile function in jit