Rewrite static/instance field search by index. am: 4026117163 am: 3e3b305238

Original change: https://android-review.googlesource.com/c/platform/art/+/1736295

Change-Id: Icc4994da4e1d47b6f91282e38c936af9d1289090