[pypy-svn] r65917 - pypy/branch/pyjitpl5/pypy/jit/metainterp

arigo at codespeak.net arigo at codespeak.net
Wed Jun 24 17:00:43 CEST 2009


Author: arigo
Date: Wed Jun 24 17:00:43 2009
New Revision: 65917

Modified:
   pypy/branch/pyjitpl5/pypy/jit/metainterp/warmspot.py
Log:
Rename a method.


Modified: pypy/branch/pyjitpl5/pypy/jit/metainterp/warmspot.py
==============================================================================
--- pypy/branch/pyjitpl5/pypy/jit/metainterp/warmspot.py	(original)
+++ pypy/branch/pyjitpl5/pypy/jit/metainterp/warmspot.py	Wed Jun 24 17:00:43 2009
@@ -615,12 +615,12 @@
             obj = virtualizable_box.getobj()
             return ootype.cast_from_object(self.VTYPE, obj)
 
-    def gencast(self, virtualizable):
+    def cast_to_vtype(self, virtualizable):
         if not self.is_oo:
             return lltype.cast_pointer(self.VTYPEPTR, virtualizable)
         else:
             return virtualizable
-    gencast._annspecialcase_ = 'specialize:ll'
+    cast_to_vtype._annspecialcase_ = 'specialize:ll'
 
     def is_vtypeptr(self, TYPE):
         if not self.is_oo:
@@ -760,7 +760,7 @@
             if vinfo is not None:
                 virtualizable = redargs[vinfo.index_of_virtualizable -
                                         num_green_args]
-                virtualizable = vinfo.gencast(virtualizable)
+                virtualizable = vinfo.cast_to_vtype(virtualizable)
                 for typecode, fieldname in vable_static_fields:
                     x = getattr(virtualizable, fieldname)
                     set_future_value(i, x, typecode)



More information about the Pypy-commit mailing list