@@ -1464,9 +1464,9 @@ void compile_for_stmt_optimised_range(compiler_t *comp, mp_parse_node_t pn_var,
14641464 compile_node (comp , pn_var );
14651465 compile_node (comp , pn_end );
14661466 if (MP_PARSE_NODE_LEAF_ARG (pn_step ) >= 0 ) {
1467- EMIT (compare_op , RT_COMPARE_OP_LESS );
1467+ EMIT (binary_op , RT_COMPARE_OP_LESS );
14681468 } else {
1469- EMIT (compare_op , RT_COMPARE_OP_MORE );
1469+ EMIT (binary_op , RT_COMPARE_OP_MORE );
14701470 }
14711471 EMIT (pop_jump_if_true , top_label );
14721472
@@ -1610,7 +1610,7 @@ void compile_try_except(compiler_t *comp, mp_parse_node_t pn_body, int n_except,
16101610 }
16111611 EMIT (dup_top );
16121612 compile_node (comp , pns_exception_expr );
1613- EMIT (compare_op , RT_COMPARE_OP_EXCEPTION_MATCH );
1613+ EMIT (binary_op , RT_COMPARE_OP_EXCEPTION_MATCH );
16141614 EMIT (pop_jump_if_false , end_finally_label );
16151615 }
16161616
@@ -1925,29 +1925,29 @@ void compile_comparison(compiler_t *comp, mp_parse_node_struct_t *pns) {
19251925 EMIT (rot_three );
19261926 }
19271927 if (MP_PARSE_NODE_IS_TOKEN_KIND (pns -> nodes [i ], MP_TOKEN_OP_LESS )) {
1928- EMIT (compare_op , RT_COMPARE_OP_LESS );
1928+ EMIT (binary_op , RT_COMPARE_OP_LESS );
19291929 } else if (MP_PARSE_NODE_IS_TOKEN_KIND (pns -> nodes [i ], MP_TOKEN_OP_MORE )) {
1930- EMIT (compare_op , RT_COMPARE_OP_MORE );
1930+ EMIT (binary_op , RT_COMPARE_OP_MORE );
19311931 } else if (MP_PARSE_NODE_IS_TOKEN_KIND (pns -> nodes [i ], MP_TOKEN_OP_DBL_EQUAL )) {
1932- EMIT (compare_op , RT_COMPARE_OP_EQUAL );
1932+ EMIT (binary_op , RT_COMPARE_OP_EQUAL );
19331933 } else if (MP_PARSE_NODE_IS_TOKEN_KIND (pns -> nodes [i ], MP_TOKEN_OP_LESS_EQUAL )) {
1934- EMIT (compare_op , RT_COMPARE_OP_LESS_EQUAL );
1934+ EMIT (binary_op , RT_COMPARE_OP_LESS_EQUAL );
19351935 } else if (MP_PARSE_NODE_IS_TOKEN_KIND (pns -> nodes [i ], MP_TOKEN_OP_MORE_EQUAL )) {
1936- EMIT (compare_op , RT_COMPARE_OP_MORE_EQUAL );
1936+ EMIT (binary_op , RT_COMPARE_OP_MORE_EQUAL );
19371937 } else if (MP_PARSE_NODE_IS_TOKEN_KIND (pns -> nodes [i ], MP_TOKEN_OP_NOT_EQUAL )) {
1938- EMIT (compare_op , RT_COMPARE_OP_NOT_EQUAL );
1938+ EMIT (binary_op , RT_COMPARE_OP_NOT_EQUAL );
19391939 } else if (MP_PARSE_NODE_IS_TOKEN_KIND (pns -> nodes [i ], MP_TOKEN_KW_IN )) {
1940- EMIT (compare_op , RT_COMPARE_OP_IN );
1940+ EMIT (binary_op , RT_COMPARE_OP_IN );
19411941 } else if (MP_PARSE_NODE_IS_STRUCT (pns -> nodes [i ])) {
19421942 mp_parse_node_struct_t * pns2 = (mp_parse_node_struct_t * )pns -> nodes [i ];
19431943 int kind = MP_PARSE_NODE_STRUCT_KIND (pns2 );
19441944 if (kind == PN_comp_op_not_in ) {
1945- EMIT (compare_op , RT_COMPARE_OP_NOT_IN );
1945+ EMIT (binary_op , RT_COMPARE_OP_NOT_IN );
19461946 } else if (kind == PN_comp_op_is ) {
19471947 if (MP_PARSE_NODE_IS_NULL (pns2 -> nodes [0 ])) {
1948- EMIT (compare_op , RT_COMPARE_OP_IS );
1948+ EMIT (binary_op , RT_COMPARE_OP_IS );
19491949 } else {
1950- EMIT (compare_op , RT_COMPARE_OP_IS_NOT );
1950+ EMIT (binary_op , RT_COMPARE_OP_IS_NOT );
19511951 }
19521952 } else {
19531953 // shouldn't happen
0 commit comments