Open Dentosal opened 1 month ago
$is being the basis of jumps is something we should get rid of. I'd like to introduce two new opcodes:
$is
JMPA $reg imm
SRAJ $reta reg/imm
https://translate.google.com/?sl=pl&tl=en&text=sraj&op=translate
It sounds like this would optimize a lot of places where the compiler adds 3 opcodes, and this would replace those spots with 1. It would be a nice improvement to bytecode size.
$is
being the basis of jumps is something we should get rid of. I'd like to introduce two new opcodes:JMPA $reg imm
: jump to absolute address in register plus immediateSRAJ $reta reg/imm
store return address and jump to "function"