Prepare for sharing JIT code after fork.

Only encode classes/strings/methods that are in a boot image.

Bug: 119800099
Test: boot
Change-Id: I7ed8ce2ce876ad1c6c1678939cafe4808a67bef4
3 files changed