Skip to content

Commit 35efe77

Browse files
committed
Add predicate symbol to truthiness case-switch
1 parent 6ea3f8c commit 35efe77

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

Python/optimizer_symbols.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,9 @@ _PyUOpSymPrint(JitOptRef ref)
113113
case JIT_SYM_COMPACT_INT:
114114
printf("<compact_int at %p>", (void *)sym);
115115
break;
116+
case JIT_SYM_PREDICATE_TAG:
117+
printf("<predicate at %p>", (void *)sym);
118+
break;
116119
default:
117120
printf("<tag=%d at %p>", sym->tag, (void *)sym);
118121
break;
@@ -666,6 +669,7 @@ _Py_uop_sym_truthiness(JitOptContext *ctx, JitOptRef ref)
666669
case JIT_SYM_NON_NULL_TAG:
667670
case JIT_SYM_UNKNOWN_TAG:
668671
case JIT_SYM_COMPACT_INT:
672+
case JIT_SYM_PREDICATE_TAG:
669673
return -1;
670674
case JIT_SYM_KNOWN_CLASS_TAG:
671675
/* TODO :

0 commit comments

Comments
 (0)