Skip to content

Commit 771650a

Browse files
committed
align HAVE_ARGUMENT
1 parent 691d281 commit 771650a

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

crates/compiler-core/src/bytecode/instruction.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -426,6 +426,8 @@ impl InstructionMetadata for Instruction {
426426
| Self::JumpForward { target: l }
427427
| Self::PopJumpIfTrue { target: l }
428428
| Self::PopJumpIfFalse { target: l }
429+
| Self::PopJumpIfNone { target: l }
430+
| Self::PopJumpIfNotNone { target: l }
429431
| Self::ForIter { target: l }
430432
| Self::Send { target: l } => Some(*l),
431433
_ => None,

crates/stdlib/src/_opcode.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ mod _opcode {
3434
}
3535

3636
impl Opcode {
37-
// https://github.com/python/cpython/blob/bcee1c322115c581da27600f2ae55e5439c027eb/Include/opcode_ids.h#L238
38-
const HAVE_ARGUMENT: i32 = 44;
37+
// https://github.com/python/cpython/blob/v3.14.2/Include/opcode_ids.h#L252
38+
const HAVE_ARGUMENT: i32 = 43;
3939

4040
pub fn try_from_pyint(raw: PyIntRef, vm: &VirtualMachine) -> PyResult<Self> {
4141
let instruction = raw

0 commit comments

Comments
 (0)