llst
llst copied to clipboard
Keep statistic of calls in the image and apply it when image is loaded
Currently Jit compiler uses statistic of calls that is collected during invokation of sendMessage() stub. Then it is used by method patcher in order to optimize the call graph and to inject direct calls where it is possible.
This call info is stored only in the runtime memory and lost on exit. We need to dump it to the image file and then bring it back on the image load procedure. This allows us to recreate all optimizations in code on the very start without loosing time in stub calls.