[pypy-svn] r68329 - pypy/trunk/pypy/jit/backend/cli
antocuni at codespeak.net
antocuni at codespeak.net
Mon Oct 12 10:10:11 CEST 2009
Author: antocuni
Date: Mon Oct 12 10:10:08 2009
New Revision: 68329
Modified:
pypy/trunk/pypy/jit/backend/cli/runner.py
Log:
fix translation
Modified: pypy/trunk/pypy/jit/backend/cli/runner.py
==============================================================================
--- pypy/trunk/pypy/jit/backend/cli/runner.py (original)
+++ pypy/trunk/pypy/jit/backend/cli/runner.py Mon Oct 12 10:10:08 2009
@@ -353,11 +353,16 @@
self.ooclass = get_class_for_type(TYPE)
self.typename = TYPE._short_name()
self._is_array_of_pointers = (history.getkind(TYPE) == 'ref')
+ self._is_array_of_floats = (history.getkind(TYPE) == 'float')
def is_array_of_pointers(self):
# for arrays, TYPE is the type of the array item.
return self._is_array_of_pointers
+ def is_array_of_floats(self):
+ # for arrays, TYPE is the type of the array item.
+ return self._is_array_of_floats
+
def get_clitype(self):
return dotnet.class2type(self.ooclass)
@@ -492,6 +497,7 @@
self.fieldname = fieldname
self.key = key_manager.getkey((TYPE, fieldname))
self._is_pointer_field = (history.getkind(T) == 'ref')
+ self._is_float_field = (history.getkind(T) == 'float')
def is_pointer_field(self):
return self._is_pointer_field
More information about the Pypy-commit
mailing list