Skip to main content

BYTECODE_PADDING

Constant BYTECODE_PADDING 

Source
pub const BYTECODE_PADDING: usize = 33;
Expand description

Trailing STOP bytes appended to every bytecode so the dispatch loop can read the next opcode without a bounds check. 33 is the widest single-opcode advance (PUSH32: 1 opcode byte + 32 immediate bytes), so pc can never step past the padding regardless of which opcode sits at the last real byte.