@@ -2054,30 +2054,28 @@ dummy_func(
2054
2054
JUMPBY (INLINE_CACHE_ENTRIES_STORE_ATTR );
2055
2055
}
2056
2056
2057
- // stack effect: (__0 -- )
2058
- inst (COMPARE_OP ) {
2057
+ // family(compare_op) = {
2058
+ // COMPARE_OP,
2059
+ // COMPARE_OP_FLOAT_JUMP,
2060
+ // COMPARE_OP_INT_JUMP,
2061
+ // COMPARE_OP_STR_JUMP,
2062
+ // };
2063
+
2064
+ inst (COMPARE_OP , (unused /1 , left , right , unused /1 -- res )) {
2059
2065
_PyCompareOpCache * cache = (_PyCompareOpCache * )next_instr ;
2060
2066
if (ADAPTIVE_COUNTER_IS_ZERO (cache -> counter )) {
2061
2067
assert (cframe .use_tracing == 0 );
2062
- PyObject * right = TOP ();
2063
- PyObject * left = SECOND ();
2064
2068
next_instr -- ;
2065
2069
_Py_Specialize_CompareOp (left , right , next_instr , oparg );
2066
2070
DISPATCH_SAME_OPARG ();
2067
2071
}
2068
2072
STAT_INC (COMPARE_OP , deferred );
2069
2073
DECREMENT_ADAPTIVE_COUNTER (cache -> counter );
2070
2074
assert (oparg <= Py_GE );
2071
- PyObject * right = POP ();
2072
- PyObject * left = TOP ();
2073
- PyObject * res = PyObject_RichCompare (left , right , oparg );
2074
- SET_TOP (res );
2075
+ res = PyObject_RichCompare (left , right , oparg );
2075
2076
Py_DECREF (left );
2076
2077
Py_DECREF (right );
2077
- if (res == NULL ) {
2078
- goto error ;
2079
- }
2080
- JUMPBY (INLINE_CACHE_ENTRIES_COMPARE_OP );
2078
+ ERROR_IF (res == NULL , error );
2081
2079
}
2082
2080
2083
2081
// stack effect: (__0 -- )
@@ -3689,9 +3687,6 @@ dummy_func(
3689
3687
3690
3688
// Future families go below this point //
3691
3689
3692
- family (binary_subscr ) = {
3693
- BINARY_SUBSCR , BINARY_SUBSCR_DICT ,
3694
- BINARY_SUBSCR_GETITEM , BINARY_SUBSCR_LIST_INT , BINARY_SUBSCR_TUPLE_INT };
3695
3690
family (call ) = {
3696
3691
CALL , CALL_PY_EXACT_ARGS ,
3697
3692
CALL_PY_WITH_DEFAULTS , CALL_BOUND_METHOD_EXACT_ARGS , CALL_BUILTIN_CLASS ,
@@ -3700,9 +3695,6 @@ family(call) = {
3700
3695
CALL_NO_KW_LIST_APPEND , CALL_NO_KW_METHOD_DESCRIPTOR_FAST , CALL_NO_KW_METHOD_DESCRIPTOR_NOARGS ,
3701
3696
CALL_NO_KW_METHOD_DESCRIPTOR_O , CALL_NO_KW_STR_1 , CALL_NO_KW_TUPLE_1 ,
3702
3697
CALL_NO_KW_TYPE_1 };
3703
- family (compare_op ) = {
3704
- COMPARE_OP , COMPARE_OP_FLOAT_JUMP ,
3705
- COMPARE_OP_INT_JUMP , COMPARE_OP_STR_JUMP };
3706
3698
family (for_iter ) = {
3707
3699
FOR_ITER , FOR_ITER_LIST ,
3708
3700
FOR_ITER_RANGE };
0 commit comments