Inline some type checks of instanceof and checkcast in nterp.

Spotted in an app-startup profile that the type checks are hot.
Implement for arm/arm64/x64, and a reduced version on x86 due to lack of
available registers.

Test: test.py
Bug: 112676029
Change-Id: If2c2517b4012e5fc5d12b240ad3b8c28de261cec
7 files changed