3 ms·
Yep, register allocators are really low priority early on if you're making a JIT(or AOT) compiler for a dynamic language such as JS or Python since there are mu
by whizzter 5y ago
Yep, register allocators are really low priority early on if you're making a JIT(or AOT) compiler for a dynamic language such as JS or Python since there are much larger gains made by just avoiding the interpreter and high level optimizations avoiding type tests since they introduce branches, skipping reference counting, etc.
Once all that is done a register allocator starts becoming relevant, and even then you probably want another kind of allocator than is mainstream for lowlevel languages since you might not be doing a full-method compilation or a compilation that shouldn't require a full de-optimization if an divergent type is detected.