gh-139757: Add _GUARD_NOS_COMPACT_ASCII for compact ascii optimization (gh-143332)

This commit is contained in:
Donghee Na 2026-01-02 20:58:14 +09:00 committed by GitHub
parent 18f3c59e57
commit 315f474d11
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 1082 additions and 933 deletions

View file

@ -412,6 +412,10 @@ dummy_func(void) {
sym_set_type(nos, &PyUnicode_Type);
}
op(_GUARD_NOS_COMPACT_ASCII, (nos, unused -- nos, unused)) {
sym_set_type(nos, &PyUnicode_Type);
}
op(_GUARD_TOS_UNICODE, (value -- value)) {
if (sym_matches_type(value, &PyUnicode_Type)) {
REPLACE_OP(this_instr, _NOP, 0, 0);