The kind of an activation record, encoded into the lower 3 bits of
a FrameMarker u64. Mirrors LuaJIT’s FRAME_* enum from
lj_frame.h:18-22.
Lua corresponds to a Lua-level function activation; its PC field
holds the next bytecode index to execute on resume.
Cont corresponds to a native continuation frame (luna’s Cont
variant of CallFrame). luna doesn’t currently emit separate
FRAME_C / FRAME_VARG markers — those PUC distinctions are encoded
elsewhere (e.g., Frame.from_c).
A native continuation frame (pcall, xpcall, metamethod
continuation, etc.). The upper bits hold a frame delta to the
previous frame’s base — not a PC. Continuations have no Lua PC.
Decode a tag value (the lower 3 bits of a marker) back into a
FrameKind. Returns None for invalid tag values; the caller
is expected to treat that as a corrupt frame.