Pass methods array to GetMethodsSliceRangeUnchecked

Aim to prevent cases where a different method array is used in the
caller than is used to compare end_offset against the number of
methods.

Test: test-art-host
Bug: 66940748
Change-Id: I53e6ed8192babfa3bbb0f2cde08a1e8e3008426a
2 files changed