mirror of
https://github.com/RustPython/RustPython.git
synced 2026-10-29 03:04:38 +08:00
align HAVE_ARGUMENT
This commit is contained in:
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,
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in new issue
Block a user