comparison Python/ceval.c @ 28759:3df0cf16defc legacy-trunk

Revert the previous enhancement to the bytecode optimizer. The additional code complexity and new NOP opcode were not worth it.
author Raymond Hettinger <python@rcn.com>
date Thu, 24 Apr 2003 05:45:23 +0000
parents ab4fbf8ebab3
children af53729d3cdd
comparison
equal deleted inserted replaced
28757:99e82dbaf0cc 28759:3df0cf16defc
870 It is essential that any operation that fails sets either 870 It is essential that any operation that fails sets either
871 x to NULL, err to nonzero, or why to anything but WHY_NOT, 871 x to NULL, err to nonzero, or why to anything but WHY_NOT,
872 and that no operation that succeeds does this! */ 872 and that no operation that succeeds does this! */
873 873
874 /* case STOP_CODE: this is an error! */ 874 /* case STOP_CODE: this is an error! */
875
876 case NOP:
877 goto fast_next_opcode;
878 875
879 case LOAD_FAST: 876 case LOAD_FAST:
880 x = GETLOCAL(oparg); 877 x = GETLOCAL(oparg);
881 if (x != NULL) { 878 if (x != NULL) {
882 Py_INCREF(x); 879 Py_INCREF(x);