Rewrite pointer array relocation in ImageWriter.

Visit vtables and iftables through their classes to avoid
a HashSet<> and save both memory and compilation time.

Test: m test-art-host-gtest
Test: testrunner.py --host --optimizing
Bug: 175869411
Change-Id: Ib0862127a2e52035c064cc736468fb9556258ec4
2 files changed