@@ -639,11 +639,7 @@ STATIC void cpython_c_if_cond(compiler_t *comp, mp_parse_node_t pn, bool jump_if
639639
640640 // nothing special, fall back to default compiling for node and jump
641641 compile_node (comp , pn );
642- if (jump_if == false) {
643- EMIT_ARG (pop_jump_if_false , label );
644- } else {
645- EMIT_ARG (pop_jump_if_true , label );
646- }
642+ EMIT_ARG (pop_jump_if , jump_if , label );
647643}
648644#endif
649645
@@ -711,11 +707,7 @@ STATIC void c_if_cond(compiler_t *comp, mp_parse_node_t pn, bool jump_if, int la
711707
712708 // nothing special, fall back to default compiling for node and jump
713709 compile_node (comp , pn );
714- if (jump_if == false) {
715- EMIT_ARG (pop_jump_if_false , label );
716- } else {
717- EMIT_ARG (pop_jump_if_true , label );
718- }
710+ EMIT_ARG (pop_jump_if , jump_if , label );
719711#endif
720712}
721713
@@ -1825,7 +1817,7 @@ STATIC void compile_for_stmt_optimised_range(compiler_t *comp, mp_parse_node_t p
18251817 } else {
18261818 EMIT_ARG (binary_op , MP_BINARY_OP_MORE );
18271819 }
1828- EMIT_ARG (pop_jump_if_true , top_label );
1820+ EMIT_ARG (pop_jump_if , true , top_label );
18291821
18301822 // break/continue apply to outer loop (if any) in the else block
18311823 END_BREAK_CONTINUE_BLOCK
@@ -1971,7 +1963,7 @@ STATIC void compile_try_except(compiler_t *comp, mp_parse_node_t pn_body, int n_
19711963 EMIT (dup_top );
19721964 compile_node (comp , pns_exception_expr );
19731965 EMIT_ARG (binary_op , MP_BINARY_OP_EXCEPTION_MATCH );
1974- EMIT_ARG (pop_jump_if_false , end_finally_label );
1966+ EMIT_ARG (pop_jump_if , false , end_finally_label );
19751967 }
19761968
19771969 EMIT (pop_top );
@@ -2267,7 +2259,7 @@ STATIC void compile_or_test(compiler_t *comp, mp_parse_node_struct_t *pns) {
22672259 for (int i = 0 ; i < n ; i += 1 ) {
22682260 compile_node (comp , pns -> nodes [i ]);
22692261 if (i + 1 < n ) {
2270- EMIT_ARG (jump_if_true_or_pop , l_end );
2262+ EMIT_ARG (jump_if_or_pop , true , l_end );
22712263 }
22722264 }
22732265 EMIT_ARG (label_assign , l_end );
@@ -2279,7 +2271,7 @@ STATIC void compile_and_test(compiler_t *comp, mp_parse_node_struct_t *pns) {
22792271 for (int i = 0 ; i < n ; i += 1 ) {
22802272 compile_node (comp , pns -> nodes [i ]);
22812273 if (i + 1 < n ) {
2282- EMIT_ARG (jump_if_false_or_pop , l_end );
2274+ EMIT_ARG (jump_if_or_pop , false , l_end );
22832275 }
22842276 }
22852277 EMIT_ARG (label_assign , l_end );
@@ -2332,7 +2324,7 @@ STATIC void compile_comparison(compiler_t *comp, mp_parse_node_struct_t *pns) {
23322324 }
23332325 }
23342326 if (i + 2 < num_nodes ) {
2335- EMIT_ARG (jump_if_false_or_pop , l_fail );
2327+ EMIT_ARG (jump_if_or_pop , false , l_fail );
23362328 }
23372329 }
23382330 if (multi ) {
0 commit comments