Skip to main content

compute_gas_block_starts

Function compute_gas_block_starts 

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

Compute gas block starts per the JAM spec: {PC=0} ∪ {post-terminator PCs}.

Unlike compute_basic_block_starts, this does NOT include branch targets. Gas blocks are defined solely by terminator boundaries.