[pypy-commit] pypy reflex-support: (hager, cfbolz): two careful promotes
cfbolz
noreply at buildbot.pypy.org
Tue Jul 12 11:48:22 CEST 2011
Author: Carl Friedrich Bolz <cfbolz at gmx.de>
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"))
More information about the pypy-commit
mailing list