[pypy-svn] r67268 - in pypy/branch/pyjitpl5-less-is_oo/pypy/jit/backend: cli llgraph
antocuni at codespeak.net
antocuni at codespeak.net
Fri Aug 28 00:05:28 CEST 2009
Author: antocuni
Date: Fri Aug 28 00:05:27 2009
New Revision: 67268
Modified:
pypy/branch/pyjitpl5-less-is_oo/pypy/jit/backend/cli/runner.py
pypy/branch/pyjitpl5-less-is_oo/pypy/jit/backend/llgraph/runner.py
Log:
these changes belong to r67257
Modified: pypy/branch/pyjitpl5-less-is_oo/pypy/jit/backend/cli/runner.py
==============================================================================
--- pypy/branch/pyjitpl5-less-is_oo/pypy/jit/backend/cli/runner.py (original)
+++ pypy/branch/pyjitpl5-less-is_oo/pypy/jit/backend/cli/runner.py Fri Aug 28 00:05:27 2009
@@ -321,7 +321,7 @@
self.instanceof = instanceof
self.ooclass = get_class_for_type(TYPE)
self.typename = TYPE._short_name()
- self._is_array_of_pointers = (history.getkind(TYPE) == 'obj')
+ self._is_array_of_pointers = (history.getkind(TYPE) == 'ref')
def is_array_of_pointers(self):
# for arrays, TYPE is the type of the array item.
@@ -456,7 +456,7 @@
self.selfclass = ootype.runtimeClass(TYPE)
self.fieldname = fieldname
self.key = key_manager.getkey((TYPE, fieldname))
- self._is_pointer_field = (history.getkind(T) == 'obj')
+ self._is_pointer_field = (history.getkind(T) == 'ref')
def is_pointer_field(self):
return self._is_pointer_field
Modified: pypy/branch/pyjitpl5-less-is_oo/pypy/jit/backend/llgraph/runner.py
==============================================================================
--- pypy/branch/pyjitpl5-less-is_oo/pypy/jit/backend/llgraph/runner.py (original)
+++ pypy/branch/pyjitpl5-less-is_oo/pypy/jit/backend/llgraph/runner.py Fri Aug 28 00:05:27 2009
@@ -695,7 +695,7 @@
self.setarrayitem = setarrayitem
self.getarraylength = getarraylength
self.instanceof = instanceof
- self._is_array_of_pointers = (history.getkind(TYPE) == 'obj')
+ self._is_array_of_pointers = (history.getkind(TYPE) == 'ref')
def is_array_of_pointers(self):
# for arrays, TYPE is the type of the array item.
@@ -725,7 +725,7 @@
self.getfield = getfield
self.setfield = setfield
- self._is_pointer_field = (history.getkind(T) == 'obj')
+ self._is_pointer_field = (history.getkind(T) == 'ref')
def sort_key(self):
return self._keys.getkey((self.TYPE, self.fieldname))
More information about the Pypy-commit
mailing list