mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
gh-105481: add flags to each instr in the opcode metadata table, to replace opcode.hasarg/hasname/hasconst (#105482)
This commit is contained in:
parent
2211454fe2
commit
be2779c0cb
6 changed files with 681 additions and 625 deletions
|
@ -219,6 +219,11 @@ GETITEM(PyObject *v, Py_ssize_t i) {
|
|||
#define STACK_SHRINK(n) BASIC_STACKADJ(-(n))
|
||||
#endif
|
||||
|
||||
|
||||
/* Data access macros */
|
||||
#define FRAME_CO_CONSTS (frame->f_code->co_consts)
|
||||
#define FRAME_CO_NAMES (frame->f_code->co_names)
|
||||
|
||||
/* Local variable macros */
|
||||
|
||||
#define GETLOCAL(i) (frame->localsplus[i])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue