Issue #19722: Added opcode.stack_effect(), which accurately

computes the stack effect of bytecode instructions.
This commit is contained in:
Larry Hastings 2013-11-23 14:49:22 -08:00
parent 8d0d369067
commit 3a9079742f
8 changed files with 177 additions and 8 deletions

View file

@ -54,6 +54,9 @@ PyAPI_FUNC(PyFutureFeatures *) PyFuture_FromASTObject(
/* _Py_Mangle is defined in compile.c */
PyAPI_FUNC(PyObject*) _Py_Mangle(PyObject *p, PyObject *name);
#define PY_INVALID_STACK_EFFECT INT_MAX
PyAPI_FUNC(int) PyCompile_OpcodeStackEffect(int opcode, int oparg);
#ifdef __cplusplus
}
#endif