mirror of
https://github.com/python/cpython.git
synced 2026-01-05 23:12:38 +00:00
gh-134584: Eliminate redundant refcounting from _CALL_TYPE_1 (GH-135818)
This commit is contained in:
parent
c8b80f5e23
commit
25c294b6ea
11 changed files with 1047 additions and 819 deletions
|
|
@ -446,7 +446,9 @@ const uint16_t op_without_push[MAX_UOP_ID + 1] = {
|
|||
[_POP_TOP_LOAD_CONST_INLINE] = _POP_TOP,
|
||||
[_POP_TOP_LOAD_CONST_INLINE_BORROW] = _POP_TOP,
|
||||
[_POP_TWO_LOAD_CONST_INLINE_BORROW] = _POP_TWO,
|
||||
[_POP_CALL_ONE_LOAD_CONST_INLINE_BORROW] = _POP_CALL_ONE,
|
||||
[_POP_CALL_TWO_LOAD_CONST_INLINE_BORROW] = _POP_CALL_TWO,
|
||||
[_SHUFFLE_2_LOAD_CONST_INLINE_BORROW] = _POP_CALL_ONE_LOAD_CONST_INLINE_BORROW,
|
||||
};
|
||||
|
||||
const bool op_skip[MAX_UOP_ID + 1] = {
|
||||
|
|
@ -458,6 +460,10 @@ const bool op_skip[MAX_UOP_ID + 1] = {
|
|||
|
||||
const uint16_t op_without_pop[MAX_UOP_ID + 1] = {
|
||||
[_POP_TOP] = _NOP,
|
||||
[_POP_TOP_NOP] = _NOP,
|
||||
[_POP_TOP_INT] = _NOP,
|
||||
[_POP_TOP_FLOAT] = _NOP,
|
||||
[_POP_TOP_UNICODE] = _NOP,
|
||||
[_POP_TOP_LOAD_CONST_INLINE] = _LOAD_CONST_INLINE,
|
||||
[_POP_TOP_LOAD_CONST_INLINE_BORROW] = _LOAD_CONST_INLINE_BORROW,
|
||||
[_POP_TWO] = _POP_TOP,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue