[pypy-svn] r75928 - pypy/branch/reflex-support/pypy/module/cppyy

cfbolz at codespeak.net cfbolz at codespeak.net
Tue Jul 6 17:36:03 CEST 2010


Author: cfbolz
Date: Tue Jul  6 17:36:01 2010
New Revision: 75928

Modified:
   pypy/branch/reflex-support/pypy/module/cppyy/interp_cppyy.py
Log:
add some more hints


Modified: pypy/branch/reflex-support/pypy/module/cppyy/interp_cppyy.py
==============================================================================
--- pypy/branch/reflex-support/pypy/module/cppyy/interp_cppyy.py	(original)
+++ pypy/branch/reflex-support/pypy/module/cppyy/interp_cppyy.py	Tue Jul  6 17:36:01 2010
@@ -128,6 +128,7 @@
         self.arg_converters = [converter.get_converter(arg_type)
                                    for arg_type in self.arg_types]
 
+    @jit.unroll_safe
     def prepare_arguments(self, args_w):
         space = self.space
         if len(args_w) != len(self.arg_types):
@@ -278,7 +279,8 @@
         self.rawobject = rawobject
 
     def invoke(self, method_name, args_w):
-        overload = self.cppclass.get_overload(method_name)
+        cppclass = jit.hint(self.cppclass, promote=True)
+        overload = cppclass.get_overload(method_name)
         return overload.call(self.rawobject, args_w)
 
     def destruct(self):



More information about the Pypy-commit mailing list