nanojit: pathological testing mode with minimal register sets



Baseline JIT (CodegenLIR)
6 years ago
6 years ago


(Reporter: pnkfelix, Unassigned)



We need to more agressively test how register spills are handled across our JIT.

One way to achieve this effect is to carefully craft input tests and pray.

A more effective way is to introduce specialized compilation mode(s) that limits the number of available registers to some minimal set where compilation can just barely hobble along but every temporary ends up being spilled to the stack.

(There are further pathological testing modes one can imagine for other aspects of the JIT, e.g. testing that we handle large offsets into the stack frame properly. This is a just a good starting project with much expected bang-for-buck.)

Comment 1

6 years ago
There is a precedent in the PPC and MIPS backend, a compiler switch enables PEDANTIC mode.  However it isn't used in testing (bad) and it's a headache because its a compiler switch.  A runtime switch would be more useful.
You need to log in before you can comment on or make changes to this bug.