summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorBrandt Bucher <brandtbucher@microsoft.com>2023-09-13 17:25:45 (GMT)
committerGitHub <noreply@github.com>2023-09-13 17:25:45 (GMT)
commit22e65eecaad3f5337862319687047afe9861e1ef (patch)
tree19089993cd9ec4d1930521c1c3df3cb22b0b9ddc /Objects
parent987b4bc0870e1e29a88275dc3fa39bf2c3dcc763 (diff)
downloadcpython-22e65eecaad3f5337862319687047afe9861e1ef.zip
cpython-22e65eecaad3f5337862319687047afe9861e1ef.tar.gz
cpython-22e65eecaad3f5337862319687047afe9861e1ef.tar.bz2
GH-105848: Replace KW_NAMES + CALL with LOAD_CONST + CALL_KW (GH-109300)
Diffstat (limited to 'Objects')
-rw-r--r--Objects/frameobject.c14
1 files changed, 2 insertions, 12 deletions
diff --git a/Objects/frameobject.c b/Objects/frameobject.c
index 53764a4..d754443 100644
--- a/Objects/frameobject.c
+++ b/Objects/frameobject.c
@@ -411,10 +411,10 @@ mark_stacks(PyCodeObject *code_obj, int len)
case LOAD_GLOBAL:
{
int j = oparg;
+ next_stack = push_value(next_stack, Object);
if (j & 1) {
next_stack = push_value(next_stack, Null);
}
- next_stack = push_value(next_stack, Object);
stacks[next_i] = next_stack;
break;
}
@@ -424,22 +424,12 @@ mark_stacks(PyCodeObject *code_obj, int len)
int j = oparg;
if (j & 1) {
next_stack = pop_value(next_stack);
- next_stack = push_value(next_stack, Null);
next_stack = push_value(next_stack, Object);
+ next_stack = push_value(next_stack, Null);
}
stacks[next_i] = next_stack;
break;
}
- case CALL:
- {
- int args = oparg;
- for (int j = 0; j < args+2; j++) {
- next_stack = pop_value(next_stack);
- }
- next_stack = push_value(next_stack, Object);
- stacks[next_i] = next_stack;
- break;
- }
case SWAP:
{
int n = oparg;