FuelLabs / fuel-vm

Fuel v2 interpreter in Rust
Other
358 stars 88 forks source link

New function call/return helper opcodes #857

Open Dentosal opened 1 month ago

Dentosal commented 1 month ago

$is being the basis of jumps is something we should get rid of. I'd like to introduce two new opcodes:

MitchTurner commented 3 weeks ago

https://translate.google.com/?sl=pl&tl=en&text=sraj&op=translate

MitchTurner commented 3 weeks ago

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.