Fix incorrect image pointer size for unstarted runtime

In unstarted runtime, we should use image pointer
size from current runtime, not kRuntimePointerSize
for invoke method. Because in host dex2oat, the
kRuntimePointerSize is always k64, and then invoke
method could get a null ArtMethod object in compiling
boot image for arch 32, such cause a native crash issue.

Bug: 176012754
Test: m test-art-host-gtest-unstarted_runtime_test

Signed-off-by: liulvping <liulvping@xiaomi.com>
Change-Id: I8ff4cf013cbe94114c38edfdf30ff509a047a761
5 files changed