[pypy-svn] rev 2506 - pypy/trunk/src/pypy/interpreter
hpk at codespeak.net
hpk at codespeak.net
Thu Dec 18 15:49:58 CET 2003
Author: hpk
Date: Thu Dec 18 15:49:57 2003
New Revision: 2506
Modified:
pypy/trunk/src/pypy/interpreter/pyopcode.py
Log:
scrap the examineop because the revised traceobjspace approach
doesn'T need it (hopefully :-)
Modified: pypy/trunk/src/pypy/interpreter/pyopcode.py
==============================================================================
--- pypy/trunk/src/pypy/interpreter/pyopcode.py (original)
+++ pypy/trunk/src/pypy/interpreter/pyopcode.py Thu Dec 18 15:49:57 2003
@@ -55,26 +55,6 @@
self.next_instr += 1
return ord(c)
- def examineop(self):
- # XXX Testing trace object space - Add test?
-
- c = ord(self.code.co_code[self.next_instr])
- fn = self.dispatch_table[c]
-
- if hasattr(fn, "operationname"):
- fn_name = fn.operationname
- else:
- fn_name = fn.__name__
-
- arg = ""
- if fn.has_arg:
- lo = ord(self.code.co_code[self.next_instr + 1])
- hi = ord(self.code.co_code[self.next_instr + 2])
- arg = (hi<<8) + lo
-
- return c, fn_name, arg, self.next_instr
-
-
def get_index(self):
return index
More information about the Pypy-commit
mailing list