@@ -373,7 +373,7 @@ def bug42562():
373373
374374%3d LOAD_GLOBAL 0 (Exception)
375375 CHECK_EXC_MATCH
376- POP_JUMP_IF_FALSE 36 (to 72)
376+ POP_JUMP_FORWARD_IF_FALSE 18 (to 72)
377377 STORE_FAST 0 (e)
378378
379379%3d LOAD_FAST 0 (e)
@@ -685,7 +685,15 @@ def test_widths(self):
685685 for opcode , opname in enumerate (dis .opname ):
686686 if opname in ('BUILD_MAP_UNPACK_WITH_CALL' ,
687687 'BUILD_TUPLE_UNPACK_WITH_CALL' ,
688- 'JUMP_BACKWARD_NO_INTERRUPT' ):
688+ 'JUMP_BACKWARD_NO_INTERRUPT' ,
689+ 'POP_JUMP_FORWARD_IF_NONE' ,
690+ 'POP_JUMP_BACKWARD_IF_NONE' ,
691+ 'POP_JUMP_FORWARD_IF_NOT_NONE' ,
692+ 'POP_JUMP_BACKWARD_IF_NOT_NONE' ,
693+ 'POP_JUMP_FORWARD_IF_TRUE' ,
694+ 'POP_JUMP_BACKWARD_IF_TRUE' ,
695+ 'POP_JUMP_FORWARD_IF_FALSE' ,
696+ 'POP_JUMP_BACKWARD_IF_FALSE' ):
689697 continue
690698 with self .subTest (opname = opname ):
691699 width = dis ._OPNAME_WIDTH
@@ -1227,12 +1235,12 @@ def _prepare_test_cases():
12271235 Instruction (opname = 'LOAD_FAST' , opcode = 124 , arg = 0 , argval = 'i' , argrepr = 'i' , offset = 66 , starts_line = 5 , is_jump_target = False , positions = None ),
12281236 Instruction (opname = 'LOAD_CONST' , opcode = 100 , arg = 2 , argval = 4 , argrepr = '4' , offset = 68 , starts_line = None , is_jump_target = False , positions = None ),
12291237 Instruction (opname = 'COMPARE_OP' , opcode = 107 , arg = 0 , argval = '<' , argrepr = '<' , offset = 70 , starts_line = None , is_jump_target = False , positions = None ),
1230- Instruction (opname = 'POP_JUMP_IF_FALSE ' , opcode = 114 , arg = 40 , argval = 80 , argrepr = 'to 80' , offset = 76 , starts_line = None , is_jump_target = False , positions = None ),
1238+ Instruction (opname = 'POP_JUMP_FORWARD_IF_FALSE ' , opcode = 114 , arg = 1 , argval = 80 , argrepr = 'to 80' , offset = 76 , starts_line = None , is_jump_target = False , positions = None ),
12311239 Instruction (opname = 'JUMP_BACKWARD' , opcode = 140 , arg = 24 , argval = 32 , argrepr = 'to 32' , offset = 78 , starts_line = 6 , is_jump_target = False , positions = None ),
12321240 Instruction (opname = 'LOAD_FAST' , opcode = 124 , arg = 0 , argval = 'i' , argrepr = 'i' , offset = 80 , starts_line = 7 , is_jump_target = True , positions = None ),
12331241 Instruction (opname = 'LOAD_CONST' , opcode = 100 , arg = 3 , argval = 6 , argrepr = '6' , offset = 82 , starts_line = None , is_jump_target = False , positions = None ),
12341242 Instruction (opname = 'COMPARE_OP' , opcode = 107 , arg = 4 , argval = '>' , argrepr = '>' , offset = 84 , starts_line = None , is_jump_target = False , positions = None ),
1235- Instruction (opname = 'POP_JUMP_IF_FALSE ' , opcode = 114 , arg = 48 , argval = 96 , argrepr = 'to 96' , offset = 90 , starts_line = None , is_jump_target = False , positions = None ),
1243+ Instruction (opname = 'POP_JUMP_FORWARD_IF_FALSE ' , opcode = 114 , arg = 2 , argval = 96 , argrepr = 'to 96' , offset = 90 , starts_line = None , is_jump_target = False , positions = None ),
12361244 Instruction (opname = 'POP_TOP' , opcode = 1 , arg = None , argval = None , argrepr = '' , offset = 92 , starts_line = 8 , is_jump_target = False , positions = None ),
12371245 Instruction (opname = 'JUMP_FORWARD' , opcode = 110 , arg = 16 , argval = 128 , argrepr = 'to 128' , offset = 94 , starts_line = None , is_jump_target = False , positions = None ),
12381246 Instruction (opname = 'JUMP_BACKWARD' , opcode = 140 , arg = 33 , argval = 32 , argrepr = 'to 32' , offset = 96 , starts_line = 7 , is_jump_target = True , positions = None ),
@@ -1242,7 +1250,7 @@ def _prepare_test_cases():
12421250 Instruction (opname = 'CALL' , opcode = 171 , arg = 1 , argval = 1 , argrepr = '' , offset = 116 , starts_line = None , is_jump_target = False , positions = None ),
12431251 Instruction (opname = 'POP_TOP' , opcode = 1 , arg = None , argval = None , argrepr = '' , offset = 126 , starts_line = None , is_jump_target = False , positions = None ),
12441252 Instruction (opname = 'LOAD_FAST' , opcode = 124 , arg = 0 , argval = 'i' , argrepr = 'i' , offset = 128 , starts_line = 11 , is_jump_target = True , positions = None ),
1245- Instruction (opname = 'POP_JUMP_IF_FALSE ' , opcode = 114 , arg = 102 , argval = 204 , argrepr = 'to 204' , offset = 130 , starts_line = None , is_jump_target = False , positions = None ),
1253+ Instruction (opname = 'POP_JUMP_FORWARD_IF_FALSE ' , opcode = 114 , arg = 36 , argval = 204 , argrepr = 'to 204' , offset = 130 , starts_line = None , is_jump_target = False , positions = None ),
12461254 Instruction (opname = 'LOAD_GLOBAL' , opcode = 116 , arg = 3 , argval = 'print' , argrepr = 'NULL + print' , offset = 132 , starts_line = 12 , is_jump_target = True , positions = None ),
12471255 Instruction (opname = 'LOAD_FAST' , opcode = 124 , arg = 0 , argval = 'i' , argrepr = 'i' , offset = 144 , starts_line = None , is_jump_target = False , positions = None ),
12481256 Instruction (opname = 'PRECALL' , opcode = 166 , arg = 1 , argval = 1 , argrepr = '' , offset = 146 , starts_line = None , is_jump_target = False , positions = None ),
@@ -1255,15 +1263,15 @@ def _prepare_test_cases():
12551263 Instruction (opname = 'LOAD_FAST' , opcode = 124 , arg = 0 , argval = 'i' , argrepr = 'i' , offset = 172 , starts_line = 14 , is_jump_target = False , positions = None ),
12561264 Instruction (opname = 'LOAD_CONST' , opcode = 100 , arg = 3 , argval = 6 , argrepr = '6' , offset = 174 , starts_line = None , is_jump_target = False , positions = None ),
12571265 Instruction (opname = 'COMPARE_OP' , opcode = 107 , arg = 4 , argval = '>' , argrepr = '>' , offset = 176 , starts_line = None , is_jump_target = False , positions = None ),
1258- Instruction (opname = 'POP_JUMP_IF_FALSE ' , opcode = 114 , arg = 93 , argval = 186 , argrepr = 'to 186' , offset = 182 , starts_line = None , is_jump_target = False , positions = None ),
1266+ Instruction (opname = 'POP_JUMP_FORWARD_IF_FALSE ' , opcode = 114 , arg = 1 , argval = 186 , argrepr = 'to 186' , offset = 182 , starts_line = None , is_jump_target = False , positions = None ),
12591267 Instruction (opname = 'JUMP_BACKWARD' , opcode = 140 , arg = 29 , argval = 128 , argrepr = 'to 128' , offset = 184 , starts_line = 15 , is_jump_target = False , positions = None ),
12601268 Instruction (opname = 'LOAD_FAST' , opcode = 124 , arg = 0 , argval = 'i' , argrepr = 'i' , offset = 186 , starts_line = 16 , is_jump_target = True , positions = None ),
12611269 Instruction (opname = 'LOAD_CONST' , opcode = 100 , arg = 2 , argval = 4 , argrepr = '4' , offset = 188 , starts_line = None , is_jump_target = False , positions = None ),
12621270 Instruction (opname = 'COMPARE_OP' , opcode = 107 , arg = 0 , argval = '<' , argrepr = '<' , offset = 190 , starts_line = None , is_jump_target = False , positions = None ),
1263- Instruction (opname = 'POP_JUMP_IF_FALSE ' , opcode = 114 , arg = 100 , argval = 200 , argrepr = 'to 200' , offset = 196 , starts_line = None , is_jump_target = False , positions = None ),
1271+ Instruction (opname = 'POP_JUMP_FORWARD_IF_FALSE ' , opcode = 114 , arg = 1 , argval = 200 , argrepr = 'to 200' , offset = 196 , starts_line = None , is_jump_target = False , positions = None ),
12641272 Instruction (opname = 'JUMP_FORWARD' , opcode = 110 , arg = 17 , argval = 234 , argrepr = 'to 234' , offset = 198 , starts_line = 17 , is_jump_target = False , positions = None ),
12651273 Instruction (opname = 'LOAD_FAST' , opcode = 124 , arg = 0 , argval = 'i' , argrepr = 'i' , offset = 200 , starts_line = 11 , is_jump_target = True , positions = None ),
1266- Instruction (opname = 'POP_JUMP_IF_TRUE ' , opcode = 115 , arg = 66 , argval = 132 , argrepr = 'to 132' , offset = 202 , starts_line = None , is_jump_target = False , positions = None ),
1274+ Instruction (opname = 'POP_JUMP_BACKWARD_IF_TRUE ' , opcode = 176 , arg = 36 , argval = 132 , argrepr = 'to 132' , offset = 202 , starts_line = None , is_jump_target = False , positions = None ),
12671275 Instruction (opname = 'LOAD_GLOBAL' , opcode = 116 , arg = 3 , argval = 'print' , argrepr = 'NULL + print' , offset = 204 , starts_line = 19 , is_jump_target = True , positions = None ),
12681276 Instruction (opname = 'LOAD_CONST' , opcode = 100 , arg = 6 , argval = 'Who let lolcatz into this test suite?' , argrepr = "'Who let lolcatz into this test suite?'" , offset = 216 , starts_line = None , is_jump_target = False , positions = None ),
12691277 Instruction (opname = 'PRECALL' , opcode = 166 , arg = 1 , argval = 1 , argrepr = '' , offset = 218 , starts_line = None , is_jump_target = False , positions = None ),
@@ -1291,7 +1299,7 @@ def _prepare_test_cases():
12911299 Instruction (opname = 'JUMP_FORWARD' , opcode = 110 , arg = 11 , argval = 328 , argrepr = 'to 328' , offset = 304 , starts_line = None , is_jump_target = False , positions = None ),
12921300 Instruction (opname = 'PUSH_EXC_INFO' , opcode = 35 , arg = None , argval = None , argrepr = '' , offset = 306 , starts_line = None , is_jump_target = False , positions = None ),
12931301 Instruction (opname = 'WITH_EXCEPT_START' , opcode = 49 , arg = None , argval = None , argrepr = '' , offset = 308 , starts_line = None , is_jump_target = False , positions = None ),
1294- Instruction (opname = 'POP_JUMP_IF_TRUE ' , opcode = 115 , arg = 160 , argval = 320 , argrepr = 'to 320' , offset = 310 , starts_line = None , is_jump_target = False , positions = None ),
1302+ Instruction (opname = 'POP_JUMP_FORWARD_IF_TRUE ' , opcode = 115 , arg = 4 , argval = 320 , argrepr = 'to 320' , offset = 310 , starts_line = None , is_jump_target = False , positions = None ),
12951303 Instruction (opname = 'RERAISE' , opcode = 119 , arg = 2 , argval = 2 , argrepr = '' , offset = 312 , starts_line = None , is_jump_target = False , positions = None ),
12961304 Instruction (opname = 'COPY' , opcode = 120 , arg = 3 , argval = 3 , argrepr = '' , offset = 314 , starts_line = None , is_jump_target = False , positions = None ),
12971305 Instruction (opname = 'POP_EXCEPT' , opcode = 89 , arg = None , argval = None , argrepr = '' , offset = 316 , starts_line = None , is_jump_target = False , positions = None ),
@@ -1304,7 +1312,7 @@ def _prepare_test_cases():
13041312 Instruction (opname = 'PUSH_EXC_INFO' , opcode = 35 , arg = None , argval = None , argrepr = '' , offset = 330 , starts_line = None , is_jump_target = False , positions = None ),
13051313 Instruction (opname = 'LOAD_GLOBAL' , opcode = 116 , arg = 4 , argval = 'ZeroDivisionError' , argrepr = 'ZeroDivisionError' , offset = 332 , starts_line = 22 , is_jump_target = False , positions = None ),
13061314 Instruction (opname = 'CHECK_EXC_MATCH' , opcode = 36 , arg = None , argval = None , argrepr = '' , offset = 344 , starts_line = None , is_jump_target = False , positions = None ),
1307- Instruction (opname = 'POP_JUMP_IF_FALSE ' , opcode = 114 , arg = 192 , argval = 384 , argrepr = 'to 384' , offset = 346 , starts_line = None , is_jump_target = False , positions = None ),
1315+ Instruction (opname = 'POP_JUMP_FORWARD_IF_FALSE ' , opcode = 114 , arg = 18 , argval = 384 , argrepr = 'to 384' , offset = 346 , starts_line = None , is_jump_target = False , positions = None ),
13081316 Instruction (opname = 'POP_TOP' , opcode = 1 , arg = None , argval = None , argrepr = '' , offset = 348 , starts_line = None , is_jump_target = False , positions = None ),
13091317 Instruction (opname = 'LOAD_GLOBAL' , opcode = 116 , arg = 3 , argval = 'print' , argrepr = 'NULL + print' , offset = 350 , starts_line = 23 , is_jump_target = False , positions = None ),
13101318 Instruction (opname = 'LOAD_CONST' , opcode = 100 , arg = 9 , argval = 'Here we go, here we go, here we go...' , argrepr = "'Here we go, here we go, here we go...'" , offset = 362 , starts_line = None , is_jump_target = False , positions = None ),
0 commit comments