Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Allow using 'kwnames' -- this adds 14 new opcodes
Not all of these are useful, but I think they all work.
It leaves another 14 CALL specializations that need to be split
(or need gh-106603, allowing oparg *and* one cache entry per uop).
  • Loading branch information
gvanrossum committed Jul 15, 2023
commit b9d070f4be45375c4f07f288df9eb2474e8bc92c
14 changes: 14 additions & 0 deletions Include/internal/pycore_opcode_metadata.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions Python/ceval.c
Original file line number Diff line number Diff line change
Expand Up @@ -2746,6 +2746,8 @@ _PyUopExecute(_PyExecutorObject *executor, _PyInterpreterFrame *frame, PyObject
int opcode;
uint64_t operand;
int oparg;
PyObject *kwnames = NULL; // Borrowed reference. Reset by CALL instructions.

for (;;) {
opcode = self->trace[pc].opcode;
operand = self->trace[pc].operand;
Expand Down
Loading