Function analyze_legacy

Source
pub fn analyze_legacy(bytetecode: &[u8]) -> JumpTable
Expand description

Analyze the bytecode to find the jumpdests. Used to create a jump table that is needed for crate::LegacyAnalyzedBytecode. This function contains a hot loop and should be optimized as much as possible.

Undefined behavior if the bytecode does not end with a valid STOP opcode. Please check crate::LegacyAnalyzedBytecode::new for details on how the bytecode is validated.