This PR makes a few minor improvements to the gas metering system to support more complex use cases such as control flow reconstruction or gas profiling.
It adds a helper function SimpleInstruction::to_opcode
load_resource now passes address & type to the client
The branch instruction callbacks now pass the target offset to the client
The iterator arguments in the GasMeter callbacks now have the Clone bound, allowing clients to go over the items multiple times
The changes have been split into individual commits to make them easy to review.
This PR makes a few minor improvements to the gas metering system to support more complex use cases such as control flow reconstruction or gas profiling.
SimpleInstruction::to_opcode
load_resource
now passes address & type to the clientGasMeter
callbacks now have theClone
bound, allowing clients to go over the items multiple timesThe changes have been split into individual commits to make them easy to review.