go-interpreter / wagon

wagon, a WebAssembly-based Go interpreter, for Go.
BSD 3-Clause "New" or "Revised" License
903 stars 148 forks source link

sames very simple register alloction in JIT #139

Open carltraveler opened 5 years ago

carltraveler commented 5 years ago

is that because of the stack operation mostly converted to memory operation, and few register used?

twitchyliquid64 commented 5 years ago

The JIT does not implement any register allocation, and my experiment (in one of the branches on my fork) did not show any performance improvement from implementing it.

I think any improved performance is totally masked by the lack of support for branching in the JIT - it always falls back to interpreting for branching and control flow management.