gh-105481: add flags to each instr in the opcode metadata table, to replace opcode.hasarg/hasname/hasconst (#105482)
This commit is contained in:
@@ -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])
|
||||
|
||||
Reference in New Issue
Block a user