JIT: use register indirect for indirect jumps (#25251)
authorAndy Ayers <andya@microsoft.com>
Thu, 20 Jun 2019 19:04:54 +0000 (12:04 -0700)
committerGitHub <noreply@github.com>
Thu, 20 Jun 2019 19:04:54 +0000 (12:04 -0700)
commitf163abbd16d35032e4450a09c548cb804cf36a85
treef48a751f5ec82e7cf2992f3dc4797284bab0984e
parentb1ea5ede9393be013477d270b3496e868b8bae20
JIT: use register indirect for indirect jumps (#25251)

If we are jumping to another method via an indirection cell, the cell address
may be too far from the jump to address via a RIP-relative indirection. So
instead, load the target address into RAX and jump register indirect.

Fixes #22342.
src/jit/codegencommon.cpp
src/jit/emitxarch.cpp