Samsung / walrus

WebAssembly Lightweight RUntime
Apache License 2.0
35 stars 10 forks source link

Start implementing comfigurable temporaries #220

Closed zherczeg closed 5 months ago

zherczeg commented 5 months ago

This is the first patch of a larger scope rework. It starts to add configurable temporary registers to some instruction categories. I am not sure this will be enough in the long run, so there might be several rework rounds before it gets its final shape. But I hope it is a good start. The configurable temporaries will be needed for dynamic register allocation.

zherczeg commented 5 months ago

Btw it adds static information to instructions, which could be stored in some general read only data structure (one item for every byte code). However, I am unsure how could I do it efficiently. This would probably make the original byte code descriptor generator macros ugly.