@@ -169,7 +169,7 @@ pub enum Instruction {
169169 LoadFastLoadFast {
170170 arg : Arg < u32 > ,
171171 } = 88 , // Placeholder
172- LoadFromDictOrDeref ( Arg < NameIdx > ) = 89 , // Placeholder
172+ LoadFromDictOrDeref ( Arg < NameIdx > ) = 89 ,
173173 LoadFromDictOrGlobals ( Arg < NameIdx > ) = 90 , // Placeholder
174174 LoadGlobal ( Arg < NameIdx > ) = 91 ,
175175 LoadName ( Arg < NameIdx > ) = 92 ,
@@ -272,7 +272,6 @@ pub enum Instruction {
272272 target : Arg < Label > ,
273273 } = 130 ,
274274 JumpIfNotExcMatch ( Arg < Label > ) = 131 ,
275- LoadClassDeref ( Arg < NameIdx > ) = 132 ,
276275 SetExcInfo = 134 ,
277276 Subscript = 135 ,
278277 // ===== Pseudo Opcodes (252+) ======
@@ -337,7 +336,6 @@ impl TryFrom<u8> for Instruction {
337336 target : Arg :: marker ( ) ,
338337 } ) ,
339338 u8:: from ( Self :: JumpIfNotExcMatch ( Arg :: marker ( ) ) ) ,
340- u8:: from ( Self :: LoadClassDeref ( Arg :: marker ( ) ) ) ,
341339 u8:: from ( Self :: SetExcInfo ) ,
342340 u8:: from ( Self :: Subscript ) ,
343341 ] ;
@@ -428,7 +426,6 @@ impl Instruction {
428426 Self :: LoadName ( _) => 1 ,
429427 Self :: LoadGlobal ( _) => 1 ,
430428 Self :: LoadDeref ( _) => 1 ,
431- Self :: LoadClassDeref ( _) => 1 ,
432429 Self :: StoreFast ( _) => -1 ,
433430 Self :: StoreName ( _) => -1 ,
434431 Self :: StoreGlobal ( _) => -1 ,
@@ -438,6 +435,7 @@ impl Instruction {
438435 Self :: DeleteName ( _) => 0 ,
439436 Self :: DeleteGlobal ( _) => 0 ,
440437 Self :: DeleteDeref ( _) => 0 ,
438+ Self :: LoadFromDictOrDeref ( _) => 1 ,
441439 Self :: LoadClosure ( _) => 1 ,
442440 Self :: Subscript => -1 ,
443441 Self :: StoreSubscr => -3 ,
@@ -590,7 +588,33 @@ impl Instruction {
590588 Self :: UnaryNot => 0 ,
591589 Self :: GetYieldFromIter => 0 ,
592590 Self :: PushNull => 1 , // Push NULL for call protocol
593- _ => 0 ,
591+ Self :: Cache => 0 ,
592+ Self :: BinarySlice => 0 ,
593+ Self :: BinaryOpInplaceAddUnicode => 0 ,
594+ Self :: EndFor => 0 ,
595+ Self :: ExitInitCheck => 0 ,
596+ Self :: InterpreterExit => 0 ,
597+ Self :: LoadAssertionError => 0 ,
598+ Self :: LoadLocals => 0 ,
599+ Self :: ReturnGenerator => 0 ,
600+ Self :: StoreSlice => 0 ,
601+ Self :: DictMerge { .. } => 0 ,
602+ Self :: BuildConstKeyMap { .. } => 0 ,
603+ Self :: CopyFreeVars { .. } => 0 ,
604+ Self :: EnterExecutor => 0 ,
605+ Self :: JumpBackwardNoInterrupt { .. } => 0 ,
606+ Self :: JumpBackward { .. } => 0 ,
607+ Self :: JumpForward { .. } => 0 ,
608+ Self :: ListExtend { .. } => 0 ,
609+ Self :: LoadFastCheck ( _) => 0 ,
610+ Self :: LoadFastLoadFast { .. } => 0 ,
611+ Self :: LoadFromDictOrGlobals ( _) => 0 ,
612+ Self :: SetUpdate { .. } => 0 ,
613+ Self :: MakeCell ( _) => 0 ,
614+ Self :: LoadSuperAttr { .. } => 0 ,
615+ Self :: StoreFastStoreFast { .. } => 0 ,
616+ Self :: PopJumpIfNone { .. } => 0 ,
617+ Self :: PopJumpIfNotNone { .. } => 0 ,
594618 }
595619 }
596620
@@ -736,7 +760,7 @@ impl Instruction {
736760 }
737761 Self :: LoadAttrMethod { idx } => w ! ( LOAD_ATTR_METHOD , name = idx) ,
738762 Self :: LoadBuildClass => w ! ( LOAD_BUILD_CLASS ) ,
739- Self :: LoadClassDeref ( idx ) => w ! ( LOAD_CLASSDEREF , cell_name = idx ) ,
763+ Self :: LoadFromDictOrDeref ( i ) => w ! ( LOAD_FROM_DICT_OR_DEREF , cell_name = i ) ,
740764 Self :: LoadClosure ( i) => w ! ( LOAD_CLOSURE , cell_name = i) ,
741765 Self :: LoadConst { idx } => fmt_const ( "LOAD_CONST" , arg, f, idx) ,
742766 Self :: LoadDeref ( idx) => w ! ( LOAD_DEREF , cell_name = idx) ,
0 commit comments