Home
last modified time | relevance | path

Searched refs:PyCFunctionObject (Results 1 – 19 of 19) sorted by relevance

/aosp_15_r20/external/python/cpython2/Objects/
Dmethodobject.c10 static PyCFunctionObject *free_list = NULL;
19 PyCFunctionObject *op; in PyCFunction_NewEx()
22 free_list = (PyCFunctionObject *)(op->m_self); in PyCFunction_NewEx()
27 op = PyObject_GC_New(PyCFunctionObject, &PyCFunction_Type); in PyCFunction_NewEx()
47 return ((PyCFunctionObject *)op) -> m_ml -> ml_meth; in PyCFunction_GetFunction()
57 return ((PyCFunctionObject *)op) -> m_self; in PyCFunction_GetSelf()
67 return ((PyCFunctionObject *)op) -> m_ml -> ml_flags; in PyCFunction_GetFlags()
73 PyCFunctionObject* f = (PyCFunctionObject*)func; in PyCFunction_Call()
131 meth_dealloc(PyCFunctionObject *m) in meth_dealloc()
147 meth_get__doc__(PyCFunctionObject *m, void *closure) in meth_get__doc__()
[all …]
/aosp_15_r20/external/python/cpython3/Objects/
Dmethodobject.c78 PyCFunctionObject *op = NULL; in PyCMethod_New()
93 op = (PyCFunctionObject *)om; in PyCMethod_New()
101 op = PyObject_GC_New(PyCFunctionObject, &PyCFunction_Type); in PyCMethod_New()
161 meth_dealloc(PyCFunctionObject *m) in meth_dealloc()
180 meth_reduce(PyCFunctionObject *m, PyObject *Py_UNUSED(ignored)) in meth_reduce()
195 meth_get__text_signature__(PyCFunctionObject *m, void *closure) in meth_get__text_signature__()
201 meth_get__doc__(PyCFunctionObject *m, void *closure) in meth_get__doc__()
207 meth_get__name__(PyCFunctionObject *m, void *closure) in meth_get__name__()
213 meth_get__qualname__(PyCFunctionObject *m, void *closure) in meth_get__qualname__()
247 meth_traverse(PyCFunctionObject *m, visitproc visit, void *arg) in meth_traverse()
[all …]
Dabstract.c938 strcmp(((PyCFunctionObject *)v)->m_ml->ml_name, "print") == 0) in binary_op()
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r530567/python3/include/python3.11/cpython/
Dmethodobject.h14 } PyCFunctionObject; typedef
18 _Py_CAST(PyCFunctionObject*, (func)))
24 PyCFunctionObject func;
48 PyCFunctionObject *func = _PyCFunctionObject_CAST(func_obj); in PyCFunction_GET_SELF()
66 PyCFunctionObject *func = _PyCFunctionObject_CAST(func_obj); in PyCFunction_GET_CLASS()
/aosp_15_r20/external/python/cpython3/Include/cpython/
Dmethodobject.h14 } PyCFunctionObject; typedef
18 _Py_CAST(PyCFunctionObject*, (func)))
24 PyCFunctionObject func;
48 PyCFunctionObject *func = _PyCFunctionObject_CAST(func_obj); in PyCFunction_GET_SELF()
66 PyCFunctionObject *func = _PyCFunctionObject_CAST(func_obj); in PyCFunction_GET_CLASS()
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r530567b/python3/include/python3.11/cpython/
Dmethodobject.h14 } PyCFunctionObject; typedef
18 _Py_CAST(PyCFunctionObject*, (func)))
24 PyCFunctionObject func;
48 PyCFunctionObject *func = _PyCFunctionObject_CAST(func_obj); in PyCFunction_GET_SELF()
66 PyCFunctionObject *func = _PyCFunctionObject_CAST(func_obj); in PyCFunction_GET_CLASS()
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r536225/python3/include/python3.11/cpython/
Dmethodobject.h14 } PyCFunctionObject; typedef
18 _Py_CAST(PyCFunctionObject*, (func)))
24 PyCFunctionObject func;
48 PyCFunctionObject *func = _PyCFunctionObject_CAST(func_obj); in PyCFunction_GET_SELF()
66 PyCFunctionObject *func = _PyCFunctionObject_CAST(func_obj); in PyCFunction_GET_CLASS()
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r522817/python3/include/python3.11/cpython/
Dmethodobject.h14 } PyCFunctionObject; typedef
18 _Py_CAST(PyCFunctionObject*, (func)))
24 PyCFunctionObject func;
48 PyCFunctionObject *func = _PyCFunctionObject_CAST(func_obj); in PyCFunction_GET_SELF()
66 PyCFunctionObject *func = _PyCFunctionObject_CAST(func_obj); in PyCFunction_GET_CLASS()
/aosp_15_r20/external/python/cpython2/Include/
Dmethodobject.h30 (((PyCFunctionObject *)func) -> m_ml -> ml_meth)
32 (((PyCFunctionObject *)func) -> m_self)
34 (((PyCFunctionObject *)func) -> m_ml -> ml_flags)
86 } PyCFunctionObject; typedef
/aosp_15_r20/external/python/cpython2/Modules/
D_lsprof.c168 PyCFunctionObject *fn; in normalizeUserObj()
176 fn = (PyCFunctionObject *)obj; in normalizeUserObj()
465 ((PyCFunctionObject *)arg)->m_ml, in profiler_callback()
477 ((PyCFunctionObject *)arg)->m_ml); in profiler_callback()
/aosp_15_r20/external/python/cpython3/Modules/
D_lsprof.c129 PyCFunctionObject *fn; in normalizeUserObj()
137 fn = (PyCFunctionObject *)obj; in normalizeUserObj()
441 ((PyCFunctionObject *)arg)->m_ml, in profiler_callback()
453 ((PyCFunctionObject *)arg)->m_ml); in profiler_callback()
/aosp_15_r20/external/tensorflow/tensorflow/python/profiler/internal/
H A Dpython_hooks.cc319 auto* func = reinterpret_cast<PyCFunctionObject*>(arg); in ProfileFast()
335 auto* func = reinterpret_cast<PyCFunctionObject*>(arg); in ProfileFast()
H A Dpython_hooks.h62 PythonTraceEntry(uint64 start, uint64 end, PyCFunctionObject* py_c_function) in PythonTraceEntry()
/aosp_15_r20/external/pytorch/torch/csrc/
H A DModule.cpp431 PyCFunctionObject* f = (PyCFunctionObject*)obj; in THPModule_addDocStr()
/aosp_15_r20/external/python/cpython2/Python/
Dceval.c4254 return ((PyCFunctionObject*)func)->m_ml->ml_name; in PyEval_GetFuncName()
4289 ((PyCFunctionObject *)func)->m_ml->ml_name, in err_args()
4294 ((PyCFunctionObject *)func)->m_ml->ml_name, in err_args()
/aosp_15_r20/external/pytorch/torch/csrc/autograd/
H A Dprofiler_python.cpp890 auto fn = reinterpret_cast<PyCFunctionObject*>(arg); in recordCCall()
/aosp_15_r20/external/webp/swig/
H A Dlibwebp_python_wrap.c2457 const char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc); in SWIG_Python_ConvertFunctionPtr()
/aosp_15_r20/external/marisa-trie/bindings/python/
H A Dmarisa-swig_wrap.cxx2253 const char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc); in SWIG_Python_ConvertFunctionPtr()
/aosp_15_r20/external/python/cpython3/Python/
Dceval.c7234 return ((PyCFunctionObject*)func)->m_ml->ml_name;