[pypy-svn] r65408 - pypy/branch/pyjitpl5-experiments/pypy/jit/backend/llgraph

antocuni at codespeak.net antocuni at codespeak.net
Mon May 25 14:09:46 CEST 2009


Author: antocuni
Date: Mon May 25 14:09:44 2009
New Revision: 65408

Modified:
   pypy/branch/pyjitpl5-experiments/pypy/jit/backend/llgraph/runner.py
Log:
make reprs of oo descrs more readable



Modified: pypy/branch/pyjitpl5-experiments/pypy/jit/backend/llgraph/runner.py
==============================================================================
--- pypy/branch/pyjitpl5-experiments/pypy/jit/backend/llgraph/runner.py	(original)
+++ pypy/branch/pyjitpl5-experiments/pypy/jit/backend/llgraph/runner.py	Mon May 25 14:09:44 2009
@@ -593,6 +593,9 @@
                 return boxresult(RESULT, res)
         self.callmeth = callmeth
 
+    def __repr__(self):
+        return '<MethDescr %r>' % self.methname
+
 class TypeDescr(OODescr):
 
     create = None
@@ -633,6 +636,9 @@
         self.getarraylength = getarraylength
         self.instanceof = instanceof
 
+    def __repr__(self):
+        return '<TypeDescr %s>' % self.TYPE._short_name()
+
 class FieldDescr(OODescr):
 
     getfield = None
@@ -662,6 +668,9 @@
         return self.TYPE == other.TYPE and \
             self.fieldname == other.fieldname
 
+    def __repr__(self):
+        return '<FieldDescr %r>' % self.fieldname
+
 
 # ____________________________________________________________
 



More information about the Pypy-commit mailing list