mirror of
https://github.com/python/cpython.git
synced 2025-07-23 19:25:40 +00:00
use stack altering macros here
This commit is contained in:
parent
6d46a91dc0
commit
b1715f131f
1 changed files with 7 additions and 7 deletions
|
@ -2537,14 +2537,14 @@ PyEval_EvalFrameEx(PyFrameObject *f, int throwflag)
|
||||||
v = SECOND();
|
v = SECOND();
|
||||||
w = THIRD();
|
w = THIRD();
|
||||||
tp = FOURTH();
|
tp = FOURTH();
|
||||||
exc = stack_pointer[-5];
|
exc = PEEK(5);
|
||||||
tb = stack_pointer[-6];
|
tb = PEEK(6);
|
||||||
exit_func = stack_pointer[-7];
|
exit_func = PEEK(7);
|
||||||
stack_pointer[-7] = tb;
|
SET_VALUE(7, tb);
|
||||||
stack_pointer[-6] = exc;
|
SET_VALUE(6, exc);
|
||||||
stack_pointer[-5] = tp;
|
SET_VALUE(5, tp);
|
||||||
/* UNWIND_EXCEPT_BLOCK will pop this off. */
|
/* UNWIND_EXCEPT_BLOCK will pop this off. */
|
||||||
FOURTH() = NULL;
|
SET_FOURTH(NULL);
|
||||||
/* We just shifted the stack down, so we have
|
/* We just shifted the stack down, so we have
|
||||||
to tell the except handler block that the
|
to tell the except handler block that the
|
||||||
values are lower than it expects. */
|
values are lower than it expects. */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue