3 ms·
Hm, that's a good point. For some reason I assumed it would trace through unconditional branches, but the post I linked to does indeed say "I terminate the trac
by thristian 16y ago
Hm, that's a good point. For some reason I assumed it would trace through unconditional branches, but the post I linked to does indeed say "I terminate the trace after any branch instruction", not "any conditional branch instruction". That seems like quite a missed opportunity; I wonder why the code has that restriction.
- daeken 16y agoIn the context of a JIT, you have a tradeoff to make: do you exhaust all possibilities for optimization, or do you do as little as possible to get something running. That's why you have things like Hotspot, where they initially do as little as possible to get things rolling, then optimize heavily as it finds bottlenecks. This is no easy task.