Change GetLocalObject(..., 0, ...) to GetLocalInstance().

On most java runtimes the 'this' variable is always in local variable
0. On Android it can be in any register however. To support this we
replace uses of GetLocalObject with local '0' with the JVMTI 1.2
function GetLocalInstance.

Bug: 62821960
Bug: 66903181
Bug: 66903662
Bug: 66904008
Test: ./art/tools/run-jdwp-tests.sh                                \
         --mode=host                                               \
         --debug                                                   \
         --variant=x64                                             \
         -Xplugin:$ANDROID_HOST_OUT/lib64/libopenjdkjvmtid.so      \
         --jdwp-path $ANDROID_HOST_OUT/lib64/libjdwp.so            \
         --expectations $PWD/art/tools/libjdwp_oj_art_failures.txt

Change-Id: I96e6a7214e74a9dba8f1f848af38774e96ff9743
2 files changed