[pypy-svn] r30964 - pypy/dist/pypy/rpython

fijal at codespeak.net fijal at codespeak.net
Thu Aug 3 19:48:46 CEST 2006


Author: fijal
Date: Thu Aug  3 19:48:35 2006
New Revision: 30964

Modified:
   pypy/dist/pypy/rpython/nonconst.py
Log:
Fixed specialize_call


Modified: pypy/dist/pypy/rpython/nonconst.py
==============================================================================
--- pypy/dist/pypy/rpython/nonconst.py	(original)
+++ pypy/dist/pypy/rpython/nonconst.py	Thu Aug  3 19:48:35 2006
@@ -4,6 +4,7 @@
 
 from pypy.rpython.extregistry import ExtRegistryEntry
 from pypy.annotation.bookkeeper import getbookkeeper
+from pypy.objspace.flow.model import Variable, Constant
 
 class NonConstant(object):
     def __init__(self, _constant):
@@ -14,3 +15,8 @@
     
     def compute_result_annotation(self, arg):
         return getbookkeeper().annotation_from_example(arg.const)
+
+    def specialize_call(self, hop):
+        v = Variable()
+        v.concretetype = hop.r_result.lowleveltype
+        return v



More information about the Pypy-commit mailing list