diff options
author | Mark Shannon <mark@hotpy.org> | 2022-02-18 17:19:08 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-18 17:19:08 (GMT) |
commit | cf345e945f48f54785799390c2e92c5310847bd4 (patch) | |
tree | af28be223953ba50ff6d0c5110af7a8c2a6c4f84 /Python/specialize.c | |
parent | e2c28616ce6c3cdb1013c415125220a0b86b86a1 (diff) | |
download | cpython-cf345e945f48f54785799390c2e92c5310847bd4.zip cpython-cf345e945f48f54785799390c2e92c5310847bd4.tar.gz cpython-cf345e945f48f54785799390c2e92c5310847bd4.tar.bz2 |
bpo-46329: Change calling sequence (again) (GH-31373)
* Change calling sequence: Add PUSH_NULL. Merge PRECALL_FUNCTION and PRECALL_METHOD into PRECALL.
Diffstat (limited to 'Python/specialize.c')
-rw-r--r-- | Python/specialize.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Python/specialize.c b/Python/specialize.c index 5fd7d09..7dd12c7 100644 --- a/Python/specialize.c +++ b/Python/specialize.c @@ -178,8 +178,7 @@ print_spec_stats(FILE *out, OpcodeStats *stats) /* Mark some opcodes as specializable for stats, * even though we don't specialize them yet. */ fprintf(out, "opcode[%d].specializable : 1\n", FOR_ITER); - fprintf(out, "opcode[%d].specializable : 1\n", PRECALL_FUNCTION); - fprintf(out, "opcode[%d].specializable : 1\n", PRECALL_METHOD); + fprintf(out, "opcode[%d].specializable : 1\n", PRECALL); fprintf(out, "opcode[%d].specializable : 1\n", UNPACK_SEQUENCE); for (int i = 0; i < 256; i++) { if (adaptive_opcodes[i]) { @@ -1528,7 +1527,7 @@ specialize_method_descriptor( } assert(_list_append != NULL); if (nargs == 2 && descr == _list_append) { - assert(_Py_OPCODE(instr[-1]) == PRECALL_METHOD); + assert(_Py_OPCODE(instr[-1]) == PRECALL); cache[-1].obj.obj = (PyObject *)_list_append; *instr = _Py_MAKECODEUNIT(CALL_NO_KW_LIST_APPEND, _Py_OPARG(*instr)); return 0; |