[pypy-svn] r53159 - pypy/branch/jit-hotpath/pypy/jit/codegen/llgraph
antocuni at codespeak.net
antocuni at codespeak.net
Sun Mar 30 20:35:17 CEST 2008
Author: antocuni
Date: Sun Mar 30 20:35:17 2008
New Revision: 53159
Modified:
pypy/branch/jit-hotpath/pypy/jit/codegen/llgraph/llimpl.py
Log:
fix test_graph2rgenop
Modified: pypy/branch/jit-hotpath/pypy/jit/codegen/llgraph/llimpl.py
==============================================================================
--- pypy/branch/jit-hotpath/pypy/jit/codegen/llgraph/llimpl.py (original)
+++ pypy/branch/jit-hotpath/pypy/jit/codegen/llgraph/llimpl.py Sun Mar 30 20:35:17 2008
@@ -239,6 +239,9 @@
return ootype.cast_to_object(value)
elif isinstance(T, ootype.OOType) and ootype.typeOf(value) is ootype.Object:
return ootype.cast_from_object(T, value)
+ elif isinstance(T, ootype.StaticMethod):
+ fn = value._obj
+ return ootype._static_meth(T, graph=fn.graph, _callable=fn._callable)
else:
T1 = lltype.typeOf(value)
if T1 is llmemory.Address:
More information about the Pypy-commit
mailing list