@@ -1476,7 +1476,7 @@ codegen_setup_annotations_scope(struct compiler *c, location loc,
1476
1476
ADDOP_I (c , loc , COMPARE_OP , (Py_NE << 5 ) | compare_masks [Py_NE ]);
1477
1477
NEW_JUMP_TARGET_LABEL (c , body );
1478
1478
ADDOP_JUMP (c , loc , POP_JUMP_IF_FALSE , body );
1479
- ADDOP (c , loc , NOT_TAKEN );
1479
+ ADDOP (c , NO_LOCATION , NOT_TAKEN );
1480
1480
ADDOP_I (c , loc , LOAD_COMMON_CONSTANT , CONSTANT_NOTIMPLEMENTEDERROR );
1481
1481
ADDOP_I (c , loc , RAISE_VARARGS , 1 );
1482
1482
USE_LABEL (c , body );
@@ -2806,13 +2806,13 @@ codegen_jump_if(struct compiler *c, location loc,
2806
2806
ADDOP_COMPARE (c , LOC (e ), asdl_seq_GET (e -> v .Compare .ops , i ));
2807
2807
ADDOP (c , LOC (e ), TO_BOOL );
2808
2808
ADDOP_JUMP (c , LOC (e ), POP_JUMP_IF_FALSE , cleanup );
2809
- ADDOP (c , loc , NOT_TAKEN );
2809
+ ADDOP (c , NO_LOCATION , NOT_TAKEN );
2810
2810
}
2811
2811
VISIT (c , expr , (expr_ty )asdl_seq_GET (e -> v .Compare .comparators , n ));
2812
2812
ADDOP_COMPARE (c , LOC (e ), asdl_seq_GET (e -> v .Compare .ops , n ));
2813
2813
ADDOP (c , LOC (e ), TO_BOOL );
2814
2814
ADDOP_JUMP (c , LOC (e ), cond ? POP_JUMP_IF_TRUE : POP_JUMP_IF_FALSE , next );
2815
- ADDOP (c , LOC ( e ) , NOT_TAKEN );
2815
+ ADDOP (c , NO_LOCATION , NOT_TAKEN );
2816
2816
NEW_JUMP_TARGET_LABEL (c , end );
2817
2817
ADDOP_JUMP (c , NO_LOCATION , JUMP_NO_INTERRUPT , end );
2818
2818
@@ -2837,7 +2837,7 @@ codegen_jump_if(struct compiler *c, location loc,
2837
2837
VISIT (c , expr , e );
2838
2838
ADDOP (c , LOC (e ), TO_BOOL );
2839
2839
ADDOP_JUMP (c , LOC (e ), cond ? POP_JUMP_IF_TRUE : POP_JUMP_IF_FALSE , next );
2840
- ADDOP (c , LOC ( e ) , NOT_TAKEN );
2840
+ ADDOP (c , NO_LOCATION , NOT_TAKEN );
2841
2841
return SUCCESS ;
2842
2842
}
2843
2843
@@ -2961,7 +2961,7 @@ codegen_for(struct compiler *c, stmt_ty s)
2961
2961
2962
2962
USE_LABEL (c , start );
2963
2963
ADDOP_JUMP (c , loc , FOR_ITER , cleanup );
2964
- ADDOP (c , loc , NOT_TAKEN );
2964
+ ADDOP (c , NO_LOCATION , NOT_TAKEN );
2965
2965
2966
2966
/* Add NOP to ensure correct line tracing of multiline for statements.
2967
2967
* It will be removed later if redundant.
@@ -3342,7 +3342,7 @@ codegen_try_except(struct compiler *c, stmt_ty s)
3342
3342
VISIT (c , expr , handler -> v .ExceptHandler .type );
3343
3343
ADDOP (c , loc , CHECK_EXC_MATCH );
3344
3344
ADDOP_JUMP (c , loc , POP_JUMP_IF_FALSE , except );
3345
- ADDOP (c , loc , NOT_TAKEN );
3345
+ ADDOP (c , NO_LOCATION , NOT_TAKEN );
3346
3346
}
3347
3347
if (handler -> v .ExceptHandler .name ) {
3348
3348
NEW_JUMP_TARGET_LABEL (c , cleanup_end );
@@ -3537,7 +3537,7 @@ codegen_try_star_except(struct compiler *c, stmt_ty s)
3537
3537
ADDOP (c , loc , CHECK_EG_MATCH );
3538
3538
ADDOP_I (c , loc , COPY , 1 );
3539
3539
ADDOP_JUMP (c , loc , POP_JUMP_IF_NONE , no_match );
3540
- ADDOP (c , loc , NOT_TAKEN );
3540
+ ADDOP (c , NO_LOCATION , NOT_TAKEN );
3541
3541
}
3542
3542
3543
3543
NEW_JUMP_TARGET_LABEL (c , cleanup_end );
@@ -4502,7 +4502,7 @@ codegen_compare(struct compiler *c, expr_ty e)
4502
4502
ADDOP_I (c , loc , COPY , 1 );
4503
4503
ADDOP (c , loc , TO_BOOL );
4504
4504
ADDOP_JUMP (c , loc , POP_JUMP_IF_FALSE , cleanup );
4505
- ADDOP (c , loc , NOT_TAKEN );
4505
+ ADDOP (c , NO_LOCATION , NOT_TAKEN );
4506
4506
ADDOP (c , loc , POP_TOP );
4507
4507
}
4508
4508
VISIT (c , expr , (expr_ty )asdl_seq_GET (e -> v .Compare .comparators , n ));
@@ -5201,7 +5201,7 @@ compiler_sync_comprehension_generator(struct compiler *c, location loc,
5201
5201
depth ++ ;
5202
5202
USE_LABEL (c , start );
5203
5203
ADDOP_JUMP (c , LOC (gen -> iter ), FOR_ITER , anchor );
5204
- ADDOP (c , loc , NOT_TAKEN );
5204
+ ADDOP (c , NO_LOCATION , NOT_TAKEN );
5205
5205
}
5206
5206
VISIT (c , expr , gen -> target );
5207
5207
@@ -6590,7 +6590,7 @@ jump_to_fail_pop(struct compiler *c, location loc,
6590
6590
RETURN_IF_ERROR (ensure_fail_pop (c , pc , pops ));
6591
6591
ADDOP_JUMP (c , loc , op , pc -> fail_pop [pops ]);
6592
6592
if (op != JUMP ) {
6593
- ADDOP (c , loc , NOT_TAKEN );
6593
+ ADDOP (c , NO_LOCATION , NOT_TAKEN );
6594
6594
}
6595
6595
return SUCCESS ;
6596
6596
}
0 commit comments