@@ -71,7 +71,7 @@ pub enum Instruction {
71
71
LoadGlobal ( usize ) ,
72
72
CallFunction ( usize , usize ) , // nb_args, nb_kwargs
73
73
RaiseVarargs ( u16 ) ,
74
- MakeFunction ( bool , bool , bool , bool ) , // has_defaults, has_kwdefaults, has_annotations, has_closure
74
+ MakeFunction { has_defaults : bool , has_kwdefaults : bool , has_annotations : bool , has_closure : bool } ,
75
75
BuildConstKeyMap ( usize ) ,
76
76
}
77
77
@@ -158,7 +158,12 @@ impl<'a, I> Iterator for InstructionDecoder<I> where I: Iterator<Item=&'a u8> {
158
158
125 => Instruction :: StoreFast ( oparg as usize ) ,
159
159
130 => Instruction :: RaiseVarargs ( self . read_argument ( ) as u16 ) ,
160
160
131 => Instruction :: CallFunction ( oparg as usize , 0 ) ,
161
- 132 => Instruction :: MakeFunction ( oparg & 0x01 != 0 , oparg & 0x02 != 0 , oparg & 0x04 != 0 , oparg & 0x08 != 0 ) ,
161
+ 132 => Instruction :: MakeFunction {
162
+ has_defaults : oparg & 0x01 != 0 ,
163
+ has_kwdefaults : oparg & 0x02 != 0 ,
164
+ has_annotations : oparg & 0x04 != 0 ,
165
+ has_closure : oparg & 0x08 != 0 ,
166
+ } ,
162
167
156 => Instruction :: BuildConstKeyMap ( oparg as usize ) ,
163
168
144 => { self . arg_prefix = Some ( self . read_argument ( ) ) ; Instruction :: Nop } ,
164
169
_ => panic ! ( format!( "Opcode not supported: {:?}" , ( opcode, oparg) ) ) ,
0 commit comments