[pypy-svn] rev 2443 - pypy/trunk/src/pypy/interpreter
tomek at codespeak.net
tomek at codespeak.net
Wed Dec 17 15:01:44 CET 2003
Author: tomek
Date: Wed Dec 17 15:01:43 2003
New Revision: 2443
Modified:
pypy/trunk/src/pypy/interpreter/pyopcode.py
Log:
small tidies :-)
Modified: pypy/trunk/src/pypy/interpreter/pyopcode.py
==============================================================================
--- pypy/trunk/src/pypy/interpreter/pyopcode.py (original)
+++ pypy/trunk/src/pypy/interpreter/pyopcode.py Wed Dec 17 15:01:43 2003
@@ -56,33 +56,25 @@
return ord(c)
def examineop(self):
- # XXX Testing trace object space
- # rxxxe Add test?
+ # XXX Testing trace object space - Add test?
c = ord(self.code.co_code[self.next_instr])
-
fn = self.dispatch_table[c]
- values = []
- 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
-
-## for ii in [1,2,3]:
-## if self.valuestack.depth() >= ii:
-## value = self.valuestack.top(ii - 1)
-## values.append(value)
-
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