Skip to main content

MATCH_DISPATCH_CONST

Constant MATCH_DISPATCH_CONST 

Source
pub const MATCH_DISPATCH_CONST: u8 = 0x7B;
Expand description

Like MATCH_DISPATCH but every entry carries an inline result instead of a jump offset. When an entry matches, the result is pushed directly onto the stack and the match body is skipped entirely.

Encoding: MATCH_DISPATCH_CONST count:u8 default_offset:i16 [(kind:u8, expected:u64, result:u64) × count]

Hit → pop subject, push result NanValue. Miss → pop subject, ip += default_offset (execute default arm body).

Emitted when ALL dispatchable arms have constant bodies (literals).