diff --git a/crates/compiler-core/src/bytecode/instruction.rs b/crates/compiler-core/src/bytecode/instruction.rs index 31c1ef321..a4b6489ca 100644 --- a/crates/compiler-core/src/bytecode/instruction.rs +++ b/crates/compiler-core/src/bytecode/instruction.rs @@ -426,6 +426,8 @@ impl InstructionMetadata for Instruction { | Self::JumpForward { target: l } | Self::PopJumpIfTrue { target: l } | Self::PopJumpIfFalse { target: l } + | Self::PopJumpIfNone { target: l } + | Self::PopJumpIfNotNone { target: l } | Self::ForIter { target: l } | Self::Send { target: l } => Some(*l), _ => None, diff --git a/crates/stdlib/src/_opcode.rs b/crates/stdlib/src/_opcode.rs index 77455766d..cb85fbf09 100644 --- a/crates/stdlib/src/_opcode.rs +++ b/crates/stdlib/src/_opcode.rs @@ -34,8 +34,8 @@ mod _opcode { } impl Opcode { - // https://github.com/python/cpython/blob/bcee1c322115c581da27600f2ae55e5439c027eb/Include/opcode_ids.h#L238 - const HAVE_ARGUMENT: i32 = 44; + // https://github.com/python/cpython/blob/v3.14.2/Include/opcode_ids.h#L252 + const HAVE_ARGUMENT: i32 = 43; pub fn try_from_pyint(raw: PyIntRef, vm: &VirtualMachine) -> PyResult { let instruction = raw