Add comments for Test and Snapshot
This commit is contained in:
parent
24f8a78709
commit
ccbf4441de
Notes:
git
2025-04-18 13:48:39 +00:00
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user