Home
last modified time | relevance | path

Searched refs:PyCodeObject (Results 1 – 25 of 43) sorted by relevance

12

/external/python/cpython2/Include/
Dcode.h30 } PyCodeObject; typedef
71 PyAPI_FUNC(PyCodeObject *) PyCode_New(
77 PyAPI_FUNC(PyCodeObject *)
83 PyAPI_FUNC(int) PyCode_Addr2Line(PyCodeObject *, int);
98 PyAPI_FUNC(int) _PyCode_CheckLineNumber(PyCodeObject* co,
Dcompile.h13 PyAPI_FUNC(PyCodeObject *) PyNode_Compile(struct _node *, const char *);
32 PyAPI_FUNC(PyCodeObject *) PyAST_Compile(struct _mod *, const char *,
Deval.h10 PyAPI_FUNC(PyObject *) PyEval_EvalCode(PyCodeObject *, PyObject *, PyObject *);
12 PyAPI_FUNC(PyObject *) PyEval_EvalCodeEx(PyCodeObject *co,
Dframeobject.h19 PyCodeObject *f_code; /* code segment */
61 PyAPI_FUNC(PyFrameObject *) PyFrame_New(PyThreadState *, PyCodeObject *,
/external/python/cpython2/Objects/
Dcodeobject.c92 PyCodeObject *
99 PyCodeObject *co; in PyCode_New()
120 co = PyObject_NEW(PyCodeObject, &PyCode_Type); in PyCode_New()
151 PyCodeObject *
158 PyCodeObject *result = NULL; in PyCode_NewEmpty()
198 #define OFF(x) offsetof(PyCodeObject, x)
345 code_dealloc(PyCodeObject *co) in code_dealloc()
364 code_repr(PyCodeObject *co) in code_repr()
384 code_compare(PyCodeObject *co, PyCodeObject *cp) in code_compare()
549 PyCodeObject *co, *cp; in code_richcompare()
[all …]
Dfuncobject.c24 op->func_name = ((PyCodeObject *)code)->co_name; in PyFunction_New()
28 consts = ((PyCodeObject *)code)->co_consts; in PyFunction_New()
248 nfree = PyCode_GetNumFree((PyCodeObject *)value); in func_set_code()
365 PyCodeObject *code; in func_new()
524 (PyCodeObject *)PyFunction_GET_CODE(func), in function_call()
Dgenobject.c291 code_name = PyString_AsString(((PyCodeObject *)gen->gi_code)->co_name); in gen_repr()
302 PyObject *name = ((PyCodeObject *)gen->gi_code)->co_name; in gen_get_name()
Dframeobject.c487 PyCodeObject *co; in frame_dealloc()
658 PyFrame_New(PyThreadState *tstate, PyCodeObject *code, PyObject *globals, in PyFrame_New()
909 PyCodeObject *co; in PyFrame_FastToLocals()
961 PyCodeObject *co; in PyFrame_LocalsToFast()
/external/python/cpython3/Objects/
Dcodeobject.c96 PyCodeObject *
104 PyCodeObject *co; in PyCode_New()
187 co = PyObject_NEW(PyCodeObject, &PyCode_Type); in PyCode_New()
224 PyCodeObject *
231 PyCodeObject *result = NULL; in PyCode_NewEmpty()
272 #define OFF(x) offsetof(PyCodeObject, x)
428 code_dealloc(PyCodeObject *co) in code_dealloc()
464 code_sizeof(PyCodeObject *co, void *unused) in code_sizeof()
480 code_repr(PyCodeObject *co) in code_repr()
624 PyCodeObject *co, *cp; in code_richcompare()
[all …]
Dframeobject.c461 PyCodeObject *co; in frame_dealloc()
657 _PyFrame_New_NoTrack(PyThreadState *tstate, PyCodeObject *code, in _PyFrame_New_NoTrack()
783 PyFrame_New(PyThreadState *tstate, PyCodeObject *code, in PyFrame_New()
921 PyCodeObject *co; in PyFrame_FastToLocalsWithError()
994 PyCodeObject *co; in PyFrame_LocalsToFast()
Dfuncobject.c32 op->func_name = ((PyCodeObject *)code)->co_name; in PyFunction_NewWithQualName()
38 consts = ((PyCodeObject *)code)->co_consts; in PyFunction_NewWithQualName()
263 nfree = PyCode_GetNumFree((PyCodeObject *)value); in func_set_code()
456 func_new_impl(PyTypeObject *type, PyCodeObject *code, PyObject *globals, in func_new_impl()
Dcall.c257 function_code_fastcall(PyCodeObject *co, PyObject *const *args, Py_ssize_t nargs, in function_code_fastcall()
302 PyCodeObject *co = (PyCodeObject *)PyFunction_GET_CODE(func); in _PyFunction_FastCallDict()
389 PyCodeObject *co = (PyCodeObject *)PyFunction_GET_CODE(func); in _PyFunction_FastCallKeywords()
Dgenobject.c78 ((PyCodeObject *)gen->gi_code)->co_flags & CO_COROUTINE && in _PyGen_Finalize()
141 if (((PyCodeObject *)gen->gi_code)->co_flags & CO_COROUTINE) { in gen_dealloc()
799 gen->gi_name = ((PyCodeObject *)gen->gi_code)->co_name; in gen_new_with_qualname()
851 PyCodeObject *code = (PyCodeObject *)((PyGenObject*)o)->gi_code; in gen_is_coroutine()
/external/python/cpython3/Include/
Dcode.h51 } PyCodeObject; typedef
104 PyAPI_FUNC(PyCodeObject *) PyCode_New(
111 PyAPI_FUNC(PyCodeObject *)
117 PyAPI_FUNC(int) PyCode_Addr2Line(PyCodeObject *, int);
129 PyAPI_FUNC(int) _PyCode_CheckLineNumber(PyCodeObject* co,
Dframeobject.h20 PyCodeObject *f_code; /* code segment */
56 PyAPI_FUNC(PyFrameObject *) PyFrame_New(PyThreadState *, PyCodeObject *,
60 PyFrameObject* _PyFrame_New_NoTrack(PyThreadState *, PyCodeObject *,
Dcompile.h13 PyAPI_FUNC(PyCodeObject *) PyNode_Compile(struct _node *, const char *);
52 PyAPI_FUNC(PyCodeObject *) PyAST_CompileEx(
58 PyAPI_FUNC(PyCodeObject *) PyAST_CompileObject(
/external/python/cpython3/Doc/c-api/
Dcode.rst16 .. c:type:: PyCodeObject
32 .. c:function:: int PyCode_GetNumFree(PyCodeObject *co)
36 .. c:function:: PyCodeObject* PyCode_New(int argcount, int kwonlyargcount, int nlocals, int stacksi…
44 .. c:function:: PyCodeObject* PyCode_NewEmpty(const char *filename, const char *funcname, int first…
/external/python/cpython3/Objects/clinic/
Dfuncobject.c.h23 func_new_impl(PyTypeObject *type, PyCodeObject *code, PyObject *globals,
32 PyCodeObject *code; in func_new()
/external/python/cpython2/Doc/c-api/
Dcode.rst16 .. c:type:: PyCodeObject
36 .. c:function:: PyCodeObject *PyCode_New(int argcount, int nlocals, int stacksize, int flags, PyObj…
/external/python/cpython2/Python/
Dimport.c746 v = ((PyCodeObject *)co)->co_filename; in PyImport_ExecCodeModuleEx()
753 v = PyEval_EvalCode((PyCodeObject *)co, d, d); in PyImport_ExecCodeModuleEx()
840 static PyCodeObject *
854 return (PyCodeObject *)co; in read_compiled_module()
865 PyCodeObject *co; in load_compiled_module()
889 static PyCodeObject *
892 PyCodeObject *co = NULL; in parse_source_module()
951 write_compiled_module(PyCodeObject *co, char *cpathname, struct stat *srcstat, time_t mtime) in write_compiled_module()
996 update_code_filenames(PyCodeObject *co, PyObject *oldname, PyObject *newname) in update_code_filenames()
1014 update_code_filenames((PyCodeObject *)tmp, in update_code_filenames()
[all …]
Dcompile.c161 static PyCodeObject *compiler_mod(struct compiler *, mod_ty);
181 static PyCodeObject *assemble(struct compiler *, int addNone);
253 PyCodeObject *
258 PyCodeObject *co = NULL; in PyAST_Compile()
300 PyCodeObject *
303 PyCodeObject *co = NULL; in PyNode_Compile()
1181 static PyCodeObject *
1184 PyCodeObject *co; in compiler_mod()
1269 compiler_make_closure(struct compiler *c, PyCodeObject *co, int args) in compiler_make_closure()
1354 PyCodeObject *co; in compiler_function()
[all …]
/external/python/cpython3/Python/clinic/
Dimport.c.h81 _imp__fix_co_filename_impl(PyObject *module, PyCodeObject *code,
88 PyCodeObject *code; in _imp__fix_co_filename()
/external/python/cpython2/Modules/_ctypes/
Dcallbacks.c101 PyCodeObject *
108 PyCodeObject *result = NULL; in PyCode_NewEmpty()
154 PyCodeObject *py_code = 0; in _ctypes_add_traceback()
/external/python/cpython3/Python/
Dcompile.c177 static PyCodeObject *compiler_mod(struct compiler *, mod_ty);
215 static PyCodeObject *assemble(struct compiler *, int addNone);
300 PyCodeObject *
305 PyCodeObject *co = NULL; in PyAST_CompileObject()
357 PyCodeObject *
362 PyCodeObject *co; in PyAST_CompileEx()
372 PyCodeObject *
375 PyCodeObject *co = NULL; in PyNode_Compile()
1511 static PyCodeObject *
1514 PyCodeObject *co; in compiler_mod()
[all …]
Dimport.c980 pathname = ((PyCodeObject *)co)->co_filename; in PyImport_ExecCodeModuleObject()
998 update_code_filenames(PyCodeObject *co, PyObject *oldname, PyObject *newname) in update_code_filenames()
1014 update_code_filenames((PyCodeObject *)tmp, in update_code_filenames()
1020 update_compiled_module(PyCodeObject *co, PyObject *newname) in update_compiled_module()
1047 _imp__fix_co_filename_impl(PyObject *module, PyCodeObject *code, in _imp__fix_co_filename_impl()
1441 PyCodeObject *code = frame->f_code; in remove_importlib_frames()

12