[pypy-svn] r67313 - pypy/branch/pyjitpl5-llmodel/pypy/jit/backend/llsupport
arigo at codespeak.net
arigo at codespeak.net
Sat Aug 29 14:38:29 CEST 2009
Author: arigo
Date: Sat Aug 29 14:38:29 2009
New Revision: 67313
Modified:
pypy/branch/pyjitpl5-llmodel/pypy/jit/backend/llsupport/llmodel.py
Log:
do_cast_xxx_to_yyy. Now test_do_operations passes.
Modified: pypy/branch/pyjitpl5-llmodel/pypy/jit/backend/llsupport/llmodel.py
==============================================================================
--- pypy/branch/pyjitpl5-llmodel/pypy/jit/backend/llsupport/llmodel.py (original)
+++ pypy/branch/pyjitpl5-llmodel/pypy/jit/backend/llsupport/llmodel.py Sat Aug 29 14:38:29 2009
@@ -235,6 +235,12 @@
basesize = basesize // itemsize
rffi.cast(rffi.CArrayPtr(lltype.UniChar), a)[index + basesize] = unichr(v)
+ def do_cast_ptr_to_int(self, args, descr=None):
+ return BoxInt(self.cast_gcref_to_int(args[0].getptr_base()))
+
+ def do_cast_int_to_ptr(self, args, descr=None):
+ return BoxPtr(self.cast_int_to_gcref(args[0].getint()))
+
import pypy.jit.metainterp.executor
pypy.jit.metainterp.executor.make_execute_list(AbstractLLCPU)
More information about the Pypy-commit
mailing list