[pypy-svn] r62829 - pypy/branch/pyjitpl5/pypy/jit/metainterp
fijal at codespeak.net
fijal at codespeak.net
Tue Mar 10 19:50:41 CET 2009
Author: fijal
Date: Tue Mar 10 19:50:40 2009
New Revision: 62829
Modified:
pypy/branch/pyjitpl5/pypy/jit/metainterp/history.py
Log:
yet another level of hacks to work on top of llinterp
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 Tue Mar 10 19:50:40 2009
@@ -219,6 +219,10 @@
return llmemory.cast_ptr_to_adr(self.value)
def equals(self, other):
+ if not we_are_translated():
+ from pypy.rpython.lltypesystem import ll2ctypes
+ if isinstance(other.getptr_base(), ll2ctypes._llgcref):
+ return other.getptr_base() == self.value
return self.value == other.getptr_base()
_getrepr_ = repr_pointer
More information about the Pypy-commit
mailing list