From 139102b24adb4fcd431785a3b5b38c4edbf3a515 Mon Sep 17 00:00:00 2001 From: Maxime Chevalier-Boisvert Date: Thu, 6 Feb 2025 11:17:02 -0500 Subject: [PATCH] Add comments --- zjit/src/ir.rs | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/zjit/src/ir.rs b/zjit/src/ir.rs index 1f9911742f..e39ca8bfcc 100644 --- a/zjit/src/ir.rs +++ b/zjit/src/ir.rs @@ -21,6 +21,14 @@ enum Insn { // Control flow instructions Return { val: Opnd }, + + // Unconditional jump + // Jump { target: BlockId }, + + // TODO: + // Conditional branch instructions + // IfTrue { val: Opnd, target: BlockId, } + // IfFalse { val: Opnd, target: BlockId, } } #[derive(Default, Debug, PartialEq)] @@ -34,6 +42,9 @@ impl Block { #[derive(Debug, PartialEq)] struct Function { + // TODO: + // ISEQ this function refers to + entry_block: BlockId, insns: Vec, blocks: Vec, @@ -65,7 +76,7 @@ enum RubyOpcode { struct FrameState { // TODO: // Ruby bytecode instruction pointer - // pc: + // pc: *mut VALUE, stack: Vec, locals: Vec,