diff Python/ceval.c @ 5014:0bfac89afc83 legacy-trunk

Changes for frame object speedup: - get fastlocals differently - call newframeobject() with fewer arguments - toss getowner(), which was unused anyway
author Guido van Rossum <guido@python.org>
date Mon, 20 Jan 1997 04:26:20 +0000
parents ae3b46a73765
children 001a5042b181
line wrap: on
line diff
--- a/Python/ceval.c	Mon Jan 20 04:20:52 1997 +0000
+++ b/Python/ceval.c	Mon Jan 20 04:26:20 1997 +0000
@@ -403,17 +403,14 @@
 			current_frame,		/*back*/
 			co,			/*code*/
 			globals,		/*globals*/
-			locals,			/*locals*/
-			owner,			/*owner*/
-			co->co_stacksize,	/*nvalues*/
-			CO_MAXBLOCKS);		/*nblocks*/
+			locals);		/*locals*/
 	if (f == NULL)
 		return NULL;
 
 	current_frame = f;
 
 	if (co->co_nlocals > 0)
-		fastlocals = ((listobject *)f->f_fastlocals)->ob_item;
+		fastlocals = f->f_localsplus;
 
 	if (co->co_argcount > 0 ||
 	    co->co_flags & (CO_VARARGS | CO_VARKEYWORDS)) {
@@ -2130,15 +2127,6 @@
 }
 
 object *
-getowner()
-{
-	if (current_frame == NULL)
-		return NULL;
-	else
-		return current_frame->f_owner;
-}
-
-object *
 getframe()
 {
 	return (object *)current_frame;