Skip to main content

compute_gas_blocks

Function compute_gas_blocks 

Source
pub fn compute_gas_blocks(
    code: &[u8],
    bitmask: &[u8],
    jump_table: &[u32],
) -> Vec<bool>
Expand description

Compute gas block start bitmap from raw code+bitmask (no full Args decoding). Returns Vec<bool> indexed by PVM byte offset. True = this PC starts a gas block.