[pypy-svn] r62669 - pypy/branch/pyjitpl5/pypy/jit/metainterp

fijal at codespeak.net fijal at codespeak.net
Fri Mar 6 23:26:24 CET 2009


Author: fijal
Date: Fri Mar  6 23:26:23 2009
New Revision: 62669

Modified:
   pypy/branch/pyjitpl5/pypy/jit/metainterp/history.py
Log:
getaddr for ConstPtr


Modified: pypy/branch/pyjitpl5/pypy/jit/metainterp/history.py
==============================================================================
--- pypy/branch/pyjitpl5/pypy/jit/metainterp/history.py	(original)
+++ pypy/branch/pyjitpl5/pypy/jit/metainterp/history.py	Fri Mar  6 23:26:23 2009
@@ -202,6 +202,9 @@
     def get_(self):
         return lltype.cast_ptr_to_int(self.value)
 
+    def getaddr(self, cpu):
+        return llmemory.cast_ptr_to_adr(self.value)
+
     def equals(self, other):
         return self.value == other.getptr_base()
 



More information about the Pypy-commit mailing list