[pypy-svn] r36563 - pypy/dist/pypy/rlib
fijal at codespeak.net
fijal at codespeak.net
Fri Jan 12 13:42:30 CET 2007
Author: fijal
Date: Fri Jan 12 13:42:28 2007
New Revision: 36563
Modified:
pypy/dist/pypy/rlib/nonconst.py
Log:
A bit of a cleanup
Modified: pypy/dist/pypy/rlib/nonconst.py
==============================================================================
--- pypy/dist/pypy/rlib/nonconst.py (original)
+++ pypy/dist/pypy/rlib/nonconst.py Fri Jan 12 13:42:28 2007
@@ -22,14 +22,13 @@
def compute_result_annotation(self, arg):
if hasattr(arg, 'const'):
- return getbookkeeper().annotation_from_example(arg.const)
+ return self.bookkeeper.annotation_from_example(arg.const)
else:
return arg
def specialize_call(self, hop):
- #v = Variable()
- #v.concretetype = hop.r_result.lowleveltype
hop.exception_cannot_occur()
retval = Constant(hop.r_result.convert_const(hop.args_v[0].value))
retval.concretetype = hop.r_result.lowleveltype
return retval
+
More information about the Pypy-commit
mailing list