Create type lookup tables early.

This is a partial revert and cleanup of
    https://android-review.googlesource.com/1143022
to create the type lookup tables before compilation.
Creating them too late increased the compilation time.

Test: m test-art-host-gtest
Test: testrunner.py --host --optimizing
Test: Manual, time dex2oat --compiler-filter=quicken.
Bug: 142680736
Bug: 29790079
Change-Id: Ied3f86a80b4f2aaacb5acc9716652f06bdc98c82
5 files changed