[pypy-svn] r54227 - pypy/branch/oo-jit/pypy/jit/rainbow

antocuni at codespeak.net antocuni at codespeak.net
Tue Apr 29 12:34:39 CEST 2008


Author: antocuni
Date: Tue Apr 29 12:34:38 2008
New Revision: 54227

Modified:
   pypy/branch/oo-jit/pypy/jit/rainbow/codewriter.py
Log:
don't crash on abstract methods



Modified: pypy/branch/oo-jit/pypy/jit/rainbow/codewriter.py
==============================================================================
--- pypy/branch/oo-jit/pypy/jit/rainbow/codewriter.py	(original)
+++ pypy/branch/oo-jit/pypy/jit/rainbow/codewriter.py	Tue Apr 29 12:34:38 2008
@@ -1820,9 +1820,10 @@
             if methname in desc.methodcodes:
                 break # we already filled the codes for this type
             _, meth = T._lookup(methname)
-            tsgraph = graph2tsgraph[meth.graph]
-            jitcode = self.get_jitcode(tsgraph)
-            desc.methodcodes[methname] = jitcode
+            if not getattr(meth, 'abstract', False):
+                tsgraph = graph2tsgraph[meth.graph]
+                jitcode = self.get_jitcode(tsgraph)
+                desc.methodcodes[methname] = jitcode
 
 
 class GraphTransformer(object):



More information about the Pypy-commit mailing list