mirror of
https://github.com/python/cpython
synced 2026-09-29 12:10:30 +03:00
gh-106149: Simplify stack depth calculation. Replace asserts by exceptions. (#107255)
This commit is contained in:
parent
14d074e1fb
commit
b0202a4e5d
4 changed files with 91 additions and 42 deletions
|
|
@ -89,8 +89,8 @@ int _PyCfgBuilder_Init(_PyCfgBuilder *g);
|
|||
void _PyCfgBuilder_Fini(_PyCfgBuilder *g);
|
||||
|
||||
int _PyCfg_OptimizeCodeUnit(_PyCfgBuilder *g, PyObject *consts, PyObject *const_cache,
|
||||
int code_flags, int nlocals, int nparams, int firstlineno);
|
||||
int _PyCfg_Stackdepth(_PyCfgBasicblock *entryblock, int code_flags);
|
||||
int nlocals, int nparams, int firstlineno);
|
||||
int _PyCfg_Stackdepth(_PyCfgBuilder *g);
|
||||
void _PyCfg_ConvertPseudoOps(_PyCfgBasicblock *entryblock);
|
||||
int _PyCfg_ResolveJumps(_PyCfgBuilder *g);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue