ART: Templatize DexFileVerifier::CheckIntraIdSection().

And use macros in DexFileVerifier::CheckIntraSection() to
avoid code duplication.

This is a follow-up to
    https://android-review.googlesource.com/672438
but the improvements in instruction count measured on host
with "perf stat dexdump2 -c <large apk>" are absolutely
insignificant (0.0003%).

Test: Rely on TreeHugger.
Change-Id: I95fd3b2f7f2d767e5446dd71552b34ea55f4bd47
2 files changed