[Python-checkins] r73617 - python/branches/py3k/Python/ceval.c

benjamin.peterson python-checkins at python.org
Sun Jun 28 18:21:53 CEST 2009


Author: benjamin.peterson
Date: Sun Jun 28 18:21:52 2009
New Revision: 73617

Log:
use stack altering macros here

Modified:
   python/branches/py3k/Python/ceval.c

Modified: python/branches/py3k/Python/ceval.c
==============================================================================
--- python/branches/py3k/Python/ceval.c	(original)
+++ python/branches/py3k/Python/ceval.c	Sun Jun 28 18:21:52 2009
@@ -2537,14 +2537,14 @@
 			        v = SECOND();
 				w = THIRD();
 				tp = FOURTH();
-				exc = stack_pointer[-5];
-				tb = stack_pointer[-6];
-				exit_func = stack_pointer[-7];
-				stack_pointer[-7] = tb;
-				stack_pointer[-6] = exc;
-				stack_pointer[-5] = tp;
+				exc = PEEK(5);
+				tb = PEEK(6);
+				exit_func = PEEK(7);
+				SET_VALUE(7, tb);
+				SET_VALUE(6, exc);
+				SET_VALUE(5, tp);
 				/* UNWIND_EXCEPT_BLOCK will pop this off. */
-				FOURTH() = NULL;
+				SET_FOURTH(NULL);
 				/* We just shifted the stack down, so we have
 				   to tell the except handler block that the
 				   values are lower than it expects. */


More information about the Python-checkins mailing list