Samsung / walrus

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

Rework exception setting in JIT #223

Closed zherczeg closed 7 months ago

zherczeg commented 8 months ago

Follows #220

zherczeg commented 8 months ago

The new approach does not require to reserve a register for exception handling. Also it does not generate handlers when they are not needed.

zherczeg commented 8 months ago

The patch is completely reworked to create trap handlers at the end of a function. This significantly simplified the patch. The recent branch optimizations in the jit compiler should make this approach good. The patch is ready for review.

zherczeg commented 7 months ago

Patch is reworked to use the constants.