|
|
|
|
|
by MaxBarraclough
2113 days ago
|
|
That doesn't sound right. How would a trace-based JIT be easier to implement? There was a research project which made HotSpot into a trace-based JIT. It reported both faster compilation times, and superior quality of generated code. (I don't know if the HotSpot folks ever considered adopting the changes.) http://www.ssw.jku.at/Research/Papers/Haeubl11/ |
|
When compiling at method-granularity, with incomplete information about types, complex features are required e.g. On-Stack Replacement (if the current method becomes "hot", it needs to be replaced by a compiled version), Inline Caches, Hidden Classes and Deoptimization.
In a trace-based JIT, all these features can be replaced by "just compile another trace".