diff --git a/Lib/_opcode_metadata.py b/Lib/_opcode_metadata.py index e72a76a57..40cd95cca 100644 --- a/Lib/_opcode_metadata.py +++ b/Lib/_opcode_metadata.py @@ -136,7 +136,6 @@ opmap = { 'JUMP_IF_FALSE_OR_POP': 129, 'JUMP_IF_TRUE_OR_POP': 130, 'JUMP_IF_NOT_EXC_MATCH': 131, - 'LOAD_CLASS_DEREF': 132, 'SET_EXC_INFO': 134, 'SUBSCRIPT': 135, 'RESUME': 149, diff --git a/crates/codegen/src/compile.rs b/crates/codegen/src/compile.rs index bbc8d4235..3370111e6 100644 --- a/crates/codegen/src/compile.rs +++ b/crates/codegen/src/compile.rs @@ -1561,7 +1561,7 @@ impl Compiler { NameUsage::Load => { // Special case for class scope if self.ctx.in_class && !self.ctx.in_func() { - Instruction::LoadClassDeref + Instruction::LoadFromDictOrDeref } else { Instruction::LoadDeref } diff --git a/crates/compiler-core/src/bytecode.rs b/crates/compiler-core/src/bytecode.rs index 010e414cc..8c4790e03 100644 --- a/crates/compiler-core/src/bytecode.rs +++ b/crates/compiler-core/src/bytecode.rs @@ -829,7 +829,7 @@ pub enum Instruction { LoadFastLoadFast { arg: Arg, } = 88, // Placeholder - LoadFromDictOrDeref(Arg) = 89, // Placeholder + LoadFromDictOrDeref(Arg) = 89, LoadFromDictOrGlobals(Arg) = 90, // Placeholder LoadGlobal(Arg) = 91, LoadName(Arg) = 92, @@ -932,7 +932,6 @@ pub enum Instruction { target: Arg