diff --git a/Python/bytecodes.c b/Python/bytecodes.c index b4d21f51715b63..97190485205345 100644 --- a/Python/bytecodes.c +++ b/Python/bytecodes.c @@ -2924,7 +2924,7 @@ dummy_func( }; specializing op(_SPECIALIZE_FOR_ITER, (counter/1, iter -- iter)) { - #if ENABLE_SPECIALIZATION + #if ENABLE_SPECIALIZATION_FT if (ADAPTIVE_COUNTER_TRIGGERS(counter)) { next_instr = this_instr; _Py_Specialize_ForIter(iter, next_instr, oparg); @@ -2932,7 +2932,7 @@ dummy_func( } OPCODE_DEFERRED_INC(FOR_ITER); ADVANCE_ADAPTIVE_COUNTER(this_instr[1].counter); - #endif /* ENABLE_SPECIALIZATION */ + #endif /* ENABLE_SPECIALIZATION_FT */ } replaced op(_FOR_ITER, (iter -- iter, next)) { diff --git a/Python/generated_cases.c.h b/Python/generated_cases.c.h index 7af1643270f621..eaedb2af082937 100644 --- a/Python/generated_cases.c.h +++ b/Python/generated_cases.c.h @@ -3912,7 +3912,7 @@ iter = stack_pointer[-1]; uint16_t counter = read_u16(&this_instr[1].cache); (void)counter; - #if ENABLE_SPECIALIZATION + #if ENABLE_SPECIALIZATION_FT if (ADAPTIVE_COUNTER_TRIGGERS(counter)) { next_instr = this_instr; _PyFrame_SetStackPointer(frame, stack_pointer); @@ -3922,7 +3922,7 @@ } OPCODE_DEFERRED_INC(FOR_ITER); ADVANCE_ADAPTIVE_COUNTER(this_instr[1].counter); - #endif /* ENABLE_SPECIALIZATION */ + #endif /* ENABLE_SPECIALIZATION_FT */ } // _FOR_ITER { diff --git a/Python/specialize.c b/Python/specialize.c index 2fc3b2f15a58eb..61e7c699d1df27 100644 --- a/Python/specialize.c +++ b/Python/specialize.c @@ -2698,7 +2698,7 @@ int void _Py_Specialize_ForIter(_PyStackRef iter, _Py_CODEUNIT *instr, int oparg) { - assert(ENABLE_SPECIALIZATION); + assert(ENABLE_SPECIALIZATION_FT); assert(_PyOpcode_Caches[FOR_ITER] == INLINE_CACHE_ENTRIES_FOR_ITER); _PyForIterCache *cache = (_PyForIterCache *)(instr + 1); PyObject *iter_o = PyStackRef_AsPyObjectBorrow(iter);