[pypy-svn] r65817 - pypy/branch/pyjitpl5/pypy/jit/metainterp
antocuni at codespeak.net
antocuni at codespeak.net
Thu Jun 18 15:05:23 CEST 2009
Author: antocuni
Date: Thu Jun 18 15:05:23 2009
New Revision: 65817
Modified:
pypy/branch/pyjitpl5/pypy/jit/metainterp/history.py
Log:
don't try to compute the ooidentityhash of null values
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 Thu Jun 18 15:05:23 2009
@@ -321,7 +321,10 @@
return self.value
def get_(self):
- return ootype.ooidentityhash(self.value) # XXX: check me
+ if self.value:
+ return ootype.ooidentityhash(self.value) # XXX: check me
+ else:
+ return 0
def set_future_value(self, cpu, j):
cpu.set_future_value_obj(j, self.value)
@@ -474,7 +477,10 @@
return self.value
def get_(self):
- return ootype.ooidentityhash(self.value) # XXX: check me
+ if self.value:
+ return ootype.ooidentityhash(self.value) # XXX: check me
+ else:
+ return 0
def set_future_value(self, cpu, j):
cpu.set_future_value_obj(j, self.value)
More information about the Pypy-commit
mailing list