@@ -842,7 +842,7 @@ pub enum Instruction {
842842 LoadFastLoadFast {
843843 arg : Arg < u32 > ,
844844 } = 88 , // Placeholder
845- LoadFromDictOrDeref ( Arg < NameIdx > ) = 89 , // Placeholder
845+ LoadFromDictOrDeref ( Arg < NameIdx > ) = 89 ,
846846 LoadFromDictOrGlobals ( Arg < NameIdx > ) = 90 , // Placeholder
847847 LoadGlobal ( Arg < NameIdx > ) = 91 ,
848848 LoadName ( Arg < NameIdx > ) = 92 ,
@@ -945,7 +945,6 @@ pub enum Instruction {
945945 target : Arg < Label > ,
946946 } = 130 ,
947947 JumpIfNotExcMatch ( Arg < Label > ) = 131 ,
948- LoadClassDeref ( Arg < NameIdx > ) = 132 ,
949948 SetExcInfo = 134 ,
950949 Subscript = 135 ,
951950 // ===== Pseudo Opcodes (252+) ======
@@ -1010,7 +1009,6 @@ impl TryFrom<u8> for Instruction {
10101009 target : Arg :: marker ( ) ,
10111010 } ) ,
10121011 u8:: from ( Self :: JumpIfNotExcMatch ( Arg :: marker ( ) ) ) ,
1013- u8:: from ( Self :: LoadClassDeref ( Arg :: marker ( ) ) ) ,
10141012 u8:: from ( Self :: SetExcInfo ) ,
10151013 u8:: from ( Self :: Subscript ) ,
10161014 ] ;
@@ -1805,14 +1803,14 @@ impl Instruction {
18051803 Nop => 0 ,
18061804 ImportName { .. } => -1 ,
18071805 ImportFrom { .. } => 1 ,
1808- LoadFast ( _) | LoadFastAndClear ( _) | LoadName ( _) | LoadGlobal ( _) | LoadDeref ( _)
1809- | LoadClassDeref ( _) => 1 ,
1806+ LoadFast ( _) | LoadFastAndClear ( _) | LoadName ( _) | LoadGlobal ( _) | LoadDeref ( _) => 1 ,
18101807 StoreFast ( _) | StoreName ( _) | StoreGlobal ( _) | StoreDeref ( _) => -1 ,
18111808 StoreFastLoadFast { .. } => 0 , // pop 1, push 1
18121809 DeleteFast ( _) | DeleteName ( _) | DeleteGlobal ( _) | DeleteDeref ( _) => 0 ,
18131810 LoadClosure ( _) => 1 ,
18141811 Subscript => -1 ,
18151812 StoreSubscr => -3 ,
1813+ LoadFromDictOrDeref ( _) => 1 ,
18161814 DeleteSubscr => -2 ,
18171815 LoadAttr { .. } => 0 ,
18181816 // LoadAttrMethod: pop obj, push method + self_or_null
@@ -1950,7 +1948,33 @@ impl Instruction {
19501948 UnaryNot => 0 ,
19511949 GetYieldFromIter => 0 ,
19521950 PushNull => 1 , // Push NULL for call protocol
1953- _ => 0 ,
1951+ Cache => 0 ,
1952+ BinarySlice => 0 ,
1953+ BinaryOpInplaceAddUnicode => 0 ,
1954+ EndFor => 0 ,
1955+ ExitInitCheck => 0 ,
1956+ InterpreterExit => 0 ,
1957+ LoadAssertionError => 0 ,
1958+ LoadLocals => 0 ,
1959+ ReturnGenerator => 0 ,
1960+ StoreSlice => 0 ,
1961+ DictMerge { .. } => 0 ,
1962+ BuildConstKeyMap { .. } => 0 ,
1963+ CopyFreeVars { .. } => 0 ,
1964+ EnterExecutor => 0 ,
1965+ JumpBackwardNoInterrupt { .. } => 0 ,
1966+ JumpBackward { .. } => 0 ,
1967+ JumpForward { .. } => 0 ,
1968+ ListExtend { .. } => 0 ,
1969+ LoadFastCheck ( _) => 0 ,
1970+ LoadFastLoadFast { .. } => 0 ,
1971+ LoadFromDictOrGlobals ( _) => 0 ,
1972+ SetUpdate { .. } => 0 ,
1973+ MakeCell ( _) => 0 ,
1974+ LoadSuperAttr { .. } => 0 ,
1975+ StoreFastStoreFast { .. } => 0 ,
1976+ PopJumpIfNone { .. } => 0 ,
1977+ PopJumpIfNotNone { .. } => 0 ,
19541978 }
19551979 }
19561980
@@ -2096,7 +2120,7 @@ impl Instruction {
20962120 }
20972121 LoadAttrMethod { idx } => w ! ( LOAD_ATTR_METHOD , name = idx) ,
20982122 LoadBuildClass => w ! ( LOAD_BUILD_CLASS ) ,
2099- LoadClassDeref ( idx ) => w ! ( LOAD_CLASSDEREF , cell_name = idx ) ,
2123+ LoadFromDictOrDeref ( i ) => w ! ( LOAD_FROM_DICT_OR_DEREF , cell_name = i ) ,
21002124 LoadClosure ( i) => w ! ( LOAD_CLOSURE , cell_name = i) ,
21012125 LoadConst { idx } => fmt_const ( "LOAD_CONST" , arg, f, idx) ,
21022126 LoadDeref ( idx) => w ! ( LOAD_DEREF , cell_name = idx) ,
0 commit comments