commit | 9c18e81fb23d60ea77bdf4f3c2649296f26e4a95 | [log] [tgz] |
---|---|---|
author | Raymond Hettinger <python@rcn.com> | Mon Jun 21 16:31:15 2004 +0000 |
committer | Raymond Hettinger <python@rcn.com> | Mon Jun 21 16:31:15 2004 +0000 |
tree | b0a494cfa23bf97cbbd52019328a22c32db9e524 | |
parent | 2c9f889122b48395c1997b08dd328f33f64f1ecd [diff] [blame] |
Install two code generation optimizations that depend on NOP. Reduces the cost of "not" to almost zero.
diff --git a/Lib/opcode.py b/Lib/opcode.py index ae9f6cc..9517c43 100644 --- a/Lib/opcode.py +++ b/Lib/opcode.py
@@ -49,6 +49,7 @@ def_op('DUP_TOP', 4) def_op('ROT_FOUR', 5) +def_op('NOP', 9) def_op('UNARY_POSITIVE', 10) def_op('UNARY_NEGATIVE', 11) def_op('UNARY_NOT', 12)