align HAVE_ARGUMENT

This commit is contained in:
Jeong YunWon committed 2026-01-24 16:09:40 +09:00
1 parent 691d2816f9
commit 771650a012
2 files changed
+4 -2

No files matched your search

@@ -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,
+2 -2
View File
@@ -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<Self> {
let instruction = raw