mirror of
https://github.com/python/cpython.git
synced 2026-04-14 07:41:00 +00:00
gh-139757: Add _GUARD_NOS_COMPACT_ASCII for compact ascii optimization (gh-143332)
This commit is contained in:
parent
18f3c59e57
commit
315f474d11
8 changed files with 1082 additions and 933 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue