[Git][ghc/ghc][wip/9.14.2-backports] 5 commits: JS: fix array index for registers