[Python-checkins] python/dist/src/Python ceval.c,2.381,2.382

rhettinger at users.sourceforge.net rhettinger at users.sourceforge.net
Fri Mar 12 04:12:25 EST 2004


Update of /cvsroot/python/python/dist/src/Python
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30207

Modified Files:
	ceval.c 
Log Message:
Move the code for BREAK and CONTINUE_LOOP to be near FOR_ITER.
Makes it more likely that all loop operations are in the cache
at the same time.



Index: ceval.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Python/ceval.c,v
retrieving revision 2.381
retrieving revision 2.382
diff -C2 -d -r2.381 -r2.382
*** ceval.c	12 Mar 2004 08:41:36 -0000	2.381
--- ceval.c	12 Mar 2004 09:12:22 -0000	2.382
***************
*** 1584,1596 ****
  		default: switch (opcode) {
  #endif
- 		case BREAK_LOOP:
- 			why = WHY_BREAK;
- 			goto fast_block_end;
- 
- 		case CONTINUE_LOOP:
- 			retval = PyInt_FromLong(oparg);
- 			why = WHY_CONTINUE;
- 			goto fast_block_end;
- 
  		case RAISE_VARARGS:
  			u = v = w = NULL;
--- 1584,1587 ----
***************
*** 2110,2113 ****
--- 2101,2113 ----
  			continue;
  
+ 		case BREAK_LOOP:
+ 			why = WHY_BREAK;
+ 			goto fast_block_end;
+ 
+ 		case CONTINUE_LOOP:
+ 			retval = PyInt_FromLong(oparg);
+ 			why = WHY_CONTINUE;
+ 			goto fast_block_end;
+ 
  		case SETUP_LOOP:
  		case SETUP_EXCEPT:




More information about the Python-checkins mailing list