[jit] Move the registration of jit icalls into a separate function.