summaryrefslogtreecommitdiffstats
path: root/Lib/opcode.py
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2004-06-21 16:31:15 (GMT)
committerRaymond Hettinger <python@rcn.com>2004-06-21 16:31:15 (GMT)
commit9c18e81fb23d60ea77bdf4f3c2649296f26e4a95 (patch)
treeb0a494cfa23bf97cbbd52019328a22c32db9e524 /Lib/opcode.py
parent2c9f889122b48395c1997b08dd328f33f64f1ecd (diff)
downloadcpython-9c18e81fb23d60ea77bdf4f3c2649296f26e4a95.zip
cpython-9c18e81fb23d60ea77bdf4f3c2649296f26e4a95.tar.gz
cpython-9c18e81fb23d60ea77bdf4f3c2649296f26e4a95.tar.bz2
Install two code generation optimizations that depend on NOP.
Reduces the cost of "not" to almost zero.
Diffstat (limited to 'Lib/opcode.py')
-rw-r--r--Lib/opcode.py1
1 files changed, 1 insertions, 0 deletions
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('ROT_THREE', 3)
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)