Author: Carl Friedrich Bolz <[email protected]>
Branch: reflex-support
Changeset: r45503:0fda37f1f11c
Date: 2011-07-12 11:47 +0200
http://bitbucket.org/pypy/pypy/changeset/0fda37f1f11c/

Log:    (hager, cfbolz): two careful promotes

diff --git a/pypy/module/cppyy/interp_cppyy.py 
b/pypy/module/cppyy/interp_cppyy.py
--- a/pypy/module/cppyy/interp_cppyy.py
+++ b/pypy/module/cppyy/interp_cppyy.py
@@ -125,7 +125,8 @@
             raise OperationError(space.w_TypeError, space.wrap("wrong number 
of args"))
         if self.arg_converters is None:
             self._build_converters()
-        funcptr = jit.promote(self.methgetter)(cppthis)
+        jit.promote(self)
+        funcptr = self.methgetter(cppthis)
         libffi_func = self._get_libffi_func(funcptr)
         if not libffi_func:
             raise FastCallNotPossible
@@ -162,6 +163,7 @@
 
     @jit.unroll_safe
     def prepare_arguments(self, args_w):
+        jit.promote(self)
         space = self.space
         if len(self.arg_types) < len(args_w) or len(args_w) < 
self.args_required:
             raise OperationError(space.w_TypeError, space.wrap("wrong number 
of args"))
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to