[pypy-commit] pypy reflex-support: more warnings removed (about 'promote' being ignored)
wlav
noreply at buildbot.pypy.org
Mon Apr 22 06:55:42 CEST 2013
Author: Wim Lavrijsen <WLavrijsen at lbl.gov>
Branch: reflex-support
Changeset: r63543:f28cfcf366f2
Date: 2013-04-21 21:54 -0700
http://bitbucket.org/pypy/pypy/changeset/f28cfcf366f2/
Log: more warnings removed (about 'promote' being ignored)
diff --git a/pypy/module/cppyy/capi/loadable_capi.py b/pypy/module/cppyy/capi/loadable_capi.py
--- a/pypy/module/cppyy/capi/loadable_capi.py
+++ b/pypy/module/cppyy/capi/loadable_capi.py
@@ -332,7 +332,6 @@
args = [_Arg(l=cppmethod), _Arg(l=cppobject), _Arg(l=nargs), _Arg(vp=cargs), _Arg(l=cppclass.handle)]
return _cdata_to_cobject(space, call_capi(space, 'call_o', args))
- at jit.elidable_promote()
def c_get_methptr_getter(space, cppscope, index):
args = [_Arg(l=cppscope.handle), _Arg(l=index)]
return rffi.cast(C_METHPTRGETTER_PTR,
@@ -343,10 +342,10 @@
return _cdata_to_ptr(space, call_capi(space, 'allocate_function_args', [_Arg(l=size)]))
def c_deallocate_function_args(space, cargs):
call_capi(space, 'deallocate_function_args', [_Arg(vp=cargs)])
- at jit.elidable_promote()
+ at jit.elidable
def c_function_arg_sizeof(space):
return _cdata_to_size_t(space, call_capi(space, 'function_arg_sizeof', []))
- at jit.elidable_promote()
+ at jit.elidable
def c_function_arg_typeoffset(space):
return _cdata_to_size_t(space, call_capi(space, 'function_arg_typeoffset', []))
@@ -368,22 +367,20 @@
def c_base_name(space, cppclass, base_index):
args = [_Arg(l=cppclass.handle), _Arg(l=base_index)]
return charp2str_free(space, call_capi(space, 'base_name', args))
- at jit.elidable_promote()
+ at jit.elidable_promote('2')
def c_is_subtype(space, derived, base):
if derived == base:
return bool(1)
return space.bool_w(call_capi(space, 'is_subtype', [_Arg(l=derived.handle), _Arg(l=base.handle)]))
- at jit.elidable_promote()
+ at jit.elidable_promote('1,2,4')
def _c_base_offset(space, derived_h, base_h, address, direction):
args = [_Arg(l=derived_h), _Arg(l=base_h), _Arg(l=address), _Arg(l=direction)]
return _cdata_to_size_t(space, call_capi(space, 'base_offset', args))
- at jit.elidable_promote()
def c_base_offset(space, derived, base, address, direction):
if derived == base:
return rffi.cast(rffi.SIZE_T, 0)
return _c_base_offset(space, derived.handle, base.handle, address, direction)
- at jit.elidable_promote()
def c_base_offset1(space, derived_h, base, address, direction):
return _c_base_offset(space, derived_h, base.handle, address, direction)
More information about the pypy-commit
mailing list