Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
In the new runtime we have no AOT support yet.
The solution we decided to use is to leverage IR persistence code (currently mildly bitrotted) to save/load the IR for whatever we are AOT'ing. This has an interesting side-effect of working 100% of the time (since IR can interpret any saved IR) as opposed to the old AOT support which might fail if a method or body is too large. It has a downside in load time will be increased because it has not yet been compiled to Java bytecode.
Packaging of this serialization can either be a new suffix like '.rbj' or it can be stuffed into a .class file as byte. This has yet to be determined.