Add comments for Test and Snapshot

This commit is contained in:
Max Bernstein 2025-02-13 09:17:41 -05:00 committed by Takashi Kokubun
parent 24f8a78709
commit ccbf4441de
Notes: git 2025-04-18 13:48:39 +00:00

View File

@ -85,6 +85,8 @@ pub enum Insn {
NewArray { count: usize },
ArraySet { idx: usize, val: Opnd },
ArrayDup { val: Opnd },
// Check if the value is truthy and "return" a C boolean. In reality, we will likely fuse this
// with IfTrue/IfFalse in the backend to generate jcc.
Test { val: Opnd },
Defined { op_type: usize, obj: VALUE, pushval: VALUE, v: Opnd },
GetConstantPath { ic: *const u8 },
@ -93,6 +95,9 @@ pub enum Insn {
//SetIvar {},
//GetIvar {},
// Own a FrameState so that instructions can look up their dominating FrameState when
// generating deopt side-exits and frame reconstruction metadata. Does not directly generate
// any code.
Snapshot { state: FrameState },
// Unconditional jump