Clean up collecting app image string references.

Record the number of references while assigning bin slots
and collect these references as AppImageReferenceOffsetInfo
afterwards, without any other translation.

Test: m test-art-host-gtest
Test: testrunner.py --host --optimizing
Test: aosp_taimen-userdebug boots.
Test: run-gtests.sh
Test: testrunner.py --target --optimizing
Bug: 26687569
Change-Id: Ieeb0530129cac9a0af5af80fd73cd668d27aff3e
2 files changed