We think having a dicussion/RFC for registered based VM is necessary if it brings great value.
We first talked about how register allocation can be done in VM
-
we can collect the liveness first using ANF where scoping information could used as basic block so that traditional kill-gen analysis could be used.
-
Linear scan RA should be helpful here. Graph coloring needs more consideration about spilling. Also an object may in a register for a long while. Linear scan should satfisy our case as the liveness of each variable/object should be genearlly short. Linear scan is much easier to implement as well