AOT inlined method lookup should stay within dex file.

Rewrite the AOT inlined method lookup and guard against
crossing dex file boundary. The compiler does not currently
support inlining across dex files, so this is an indication
of multiple dex files defining the same class and the AOT
code having used a definition which is not used at runtime.

Test: m test-art-host-gtest
Test: testrunner.py --host --optimizing --jit
Test: Pixel 2 XL boots.
Test: testrunner.py --target --optimizing --jit
Bug: 74410240

(cherry picked from commit 63a9f3e9e1b9fb8d98d8ca9abe626f3aa11e5692)

Change-Id: Ibe9792f952d0c963b8560f10d57a951e227b24aa
1 file changed