Change j.l.r.Field to use ArtField index instead of dexFileIndex

Using the dexFileIndex to determine the ArtField a
java.lang.reflect.Field object points to requires us to use a
dex-cache and to update all existing Field objects if this index
changes (for example due to class redefinition). This could be rather
slow. This replaces the dex-file index with the index into the
declaring class's SFields/IFields arrays where the specified ArtMethod
is stored.

Bug: 149236640
Test: ./test.py --host
Change-Id: I3598909a770aff317011091f33707773f3928c56
2 files changed