[pypy-svn] r66451 - pypy/branch/pyjitpl5-optimize4/pypy/jit/backend/llgraph
arigo at codespeak.net
arigo at codespeak.net
Mon Jul 20 18:49:57 CEST 2009
Author: arigo
Date: Mon Jul 20 18:49:56 2009
New Revision: 66451
Modified:
pypy/branch/pyjitpl5-optimize4/pypy/jit/backend/llgraph/runner.py
Log:
Forgot to check this in. A small extension needed.
Modified: pypy/branch/pyjitpl5-optimize4/pypy/jit/backend/llgraph/runner.py
==============================================================================
--- pypy/branch/pyjitpl5-optimize4/pypy/jit/backend/llgraph/runner.py (original)
+++ pypy/branch/pyjitpl5-optimize4/pypy/jit/backend/llgraph/runner.py Mon Jul 20 18:49:56 2009
@@ -43,6 +43,9 @@
def sort_key(self):
return self.ofs
+ def is_pointer_field(self):
+ return self.typeinfo == 'p'
+
def equals(self, other):
if not isinstance(other, Descr):
return False
@@ -679,10 +682,14 @@
self.getfield = getfield
self.setfield = setfield
+ self._is_pointer_field = (history.getkind(T) == 'obj')
def sort_key(self):
return self._keys.getkey((self.TYPE, self.fieldname))
+ def is_pointer_field(self):
+ return self._is_pointer_field
+
def equals(self, other):
return self.TYPE == other.TYPE and \
self.fieldname == other.fieldname
More information about the Pypy-commit
mailing list