#732: Makes the VM generic over the memory type, allowing reuse of relatively expensive-to-allocate VM memories through VmMemoryPool. Functions and traits which require VM initalization such as estimate_predicates now take either the memory or VmMemoryPool as an argument. The Interpterter::eq method now only compares accessible memory regions. Memory was renamed into MemoryInstance and Memory is a trait now.
Changed
Breaking
#743: Zeroes $flag on CALL, so that contracts can assume clean $flag state.
#737: Panic on instructions with non-zero reserved part.
Version v0.51.0
Added
reset
method to VM memory.Breaking
VmMemoryPool
. Functions and traits which require VM initalization such asestimate_predicates
now take either the memory orVmMemoryPool
as an argument. TheInterpterter::eq
method now only compares accessible memory regions.Memory
was renamed intoMemoryInstance
andMemory
is a trait now.Changed
Breaking
$flag
onCALL
, so that contracts can assume clean$flag
state.What's Changed
Full Changelog: https://github.com/FuelLabs/fuel-vm/compare/v0.50.0...v0.51.0