mirror of
https://github.com/python/cpython.git
synced 2025-07-07 19:35:27 +00:00
GH-118093: Add tier two support for BINARY_OP_INPLACE_ADD_UNICODE (GH-122253)
This commit is contained in:
parent
1d607fe759
commit
d9efa45d74
8 changed files with 241 additions and 153 deletions
|
@ -875,6 +875,15 @@ top: // Jump here after _PUSH_FRAME or likely branches
|
|||
goto done;
|
||||
}
|
||||
|
||||
if (uop == _BINARY_OP_INPLACE_ADD_UNICODE) {
|
||||
assert(i + 1 == nuops);
|
||||
_Py_CODEUNIT *next_instr = instr + 1 + _PyOpcode_Caches[_PyOpcode_Deopt[opcode]];
|
||||
assert(next_instr->op.code == STORE_FAST);
|
||||
operand = next_instr->op.arg;
|
||||
// Skip the STORE_FAST:
|
||||
instr++;
|
||||
}
|
||||
|
||||
// All other instructions
|
||||
ADD_TO_TRACE(uop, oparg, operand, target);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue