Home
last modified time | relevance | path

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

12

/third_party/python/Include/cpython/
Dcode.h103 struct PyCodeObject _PyCode_DEF(1);
148 PyAPI_FUNC(PyCodeObject *) PyCode_New(
154 PyAPI_FUNC(PyCodeObject *) PyCode_NewWithPosOnlyArgs(
162 PyAPI_FUNC(PyCodeObject *)
168 PyAPI_FUNC(int) PyCode_Addr2Line(PyCodeObject *, int);
170 PyAPI_FUNC(int) PyCode_Addr2Location(PyCodeObject *, int, int *, int *, int *, int *);
211 PyAPI_FUNC(PyObject *) PyCode_GetCode(PyCodeObject *code);
213 PyAPI_FUNC(PyObject *) PyCode_GetVarnames(PyCodeObject *code);
215 PyAPI_FUNC(PyObject *) PyCode_GetCellvars(PyCodeObject *code);
217 PyAPI_FUNC(PyObject *) PyCode_GetFreevars(PyCodeObject *code);
Dframeobject.h9 PyAPI_FUNC(PyFrameObject *) PyFrame_New(PyThreadState *, PyCodeObject *,
Dgenobject.h17 PyCodeObject *prefix##_code; \
Dpystate.h32 PyCodeObject *code; // The code object for the bounds. May be NULL.
/third_party/python/Objects/
Dcodeobject.c208 get_localsplus_names(PyCodeObject *co, _PyLocals_Kind kind, int num) in get_localsplus_names()
289 init_code(PyCodeObject *co, struct _PyCodeConstructor *con) in init_code()
445 PyCodeObject *
481 PyCodeObject *co = PyObject_NewVar(PyCodeObject, &PyCode_Type, size); in _PyCode_New()
497 PyCodeObject *
507 PyCodeObject *co = NULL; in PyCode_NewWithPosOnlyArgs()
621 PyCodeObject *
655 PyCodeObject *
663 PyCodeObject *result = NULL; in PyCode_NewEmpty()
722 _PyCode_CreateLineArray(PyCodeObject *co) in _PyCode_CreateLineArray()
[all …]
Dframeobject.c277 mark_stacks(PyCodeObject *code_obj, int len) in mark_stacks()
550 marklines(PyCodeObject *code, int len) in marklines()
862 PyCodeObject *co = NULL; in frame_dealloc()
944 PyCodeObject *code = f->f_frame->f_code; in frame_sizeof()
956 PyCodeObject *code = f->f_frame->f_code; in frame_repr()
1011 PyCodeObject *code = (PyCodeObject *)func->func_code; in init_frame()
1020 _PyFrame_New_NoTrack(PyCodeObject *code) in _PyFrame_New_NoTrack()
1039 PyFrame_New(PyThreadState *tstate, PyCodeObject *code, in PyFrame_New()
1106 PyCodeObject *co; in _PyFrame_FastToLocalsWithError()
1120 PyCodeObject *co = frame->f_code; in _PyFrame_FastToLocalsWithError()
[all …]
Dgenobject.c90 ((PyCodeObject *)gen->gi_code)->co_flags & CO_COROUTINE && in _PyGen_Finalize()
140 if (((PyCodeObject *)gen->gi_code)->co_flags & CO_COROUTINE) { in gen_dealloc()
814 PyCodeObject *code = gen->gi_code; in gen_sizeof()
895 PyCodeObject *code = (PyCodeObject *)func->func_code; in make_gen()
902 gen->gi_code = (PyCodeObject *)func->func_code; in make_gen()
921 int coro_flags = ((PyCodeObject *)func->func_code)->co_flags & in _Py_MakeCoro()
965 PyCodeObject *code = f->f_frame->f_code; in gen_new_with_qualname()
1025 PyCodeObject *code = (PyCodeObject *)((PyGenObject*)o)->gi_code; in gen_is_coroutine()
1344 PyCodeObject *code = frame->f_code; in compute_cr_origin()
Dfuncobject.c57 PyCodeObject *code_obj = (PyCodeObject *)code; in PyFunction_NewWithQualName()
384 nfree = ((PyCodeObject *)value)->co_nfreevars; in func_set_code()
611 func_new_impl(PyTypeObject *type, PyCodeObject *code, PyObject *globals, in func_new_impl()
/third_party/python/Include/internal/
Dpycore_code.h100 void _PyCode_Quicken(PyCodeObject *code);
103 _PyCode_Warmup(PyCodeObject *code) in _PyCode_Warmup()
211 PyAPI_FUNC(PyCodeObject *) _PyCode_New(struct _PyCodeConstructor *);
217 extern PyObject* _PyCode_GetVarnames(PyCodeObject *);
218 extern PyObject* _PyCode_GetCellvars(PyCodeObject *);
219 extern PyObject* _PyCode_GetFreevars(PyCodeObject *);
220 extern PyObject* _PyCode_GetCode(PyCodeObject *);
223 extern int _PyCode_InitAddressRange(PyCodeObject* co, PyCodeAddressRange *bounds);
259 extern void _PyStaticCode_Dealloc(PyCodeObject *co);
261 extern int _PyStaticCode_InternStrings(PyCodeObject *co);
[all …]
Dpycore_frame.h28 extern PyFrameObject* _PyFrame_New_NoTrack(PyCodeObject *code);
53 PyCodeObject *f_code; /* Strong reference */
107 frame->f_code = (PyCodeObject *)Py_NewRef(func->func_code); in _PyFrame_InitializeSpecials()
Dpycore_compile.h15 PyAPI_FUNC(PyCodeObject*) _PyAST_Compile(
/third_party/python/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…
48 .. c:function:: PyCodeObject* PyCode_NewWithPosOnlyArgs(int argcount, int posonlyargcount, int kwon…
58 .. c:function:: PyCodeObject* PyCode_NewEmpty(const char *filename, const char *funcname, int first…
64 .. c:function:: int PyCode_Addr2Line(PyCodeObject *co, int byte_offset)
82 .. c:function:: PyObject* PyCode_GetCode(PyCodeObject *co)
95 .. c:function:: PyObject* PyCode_GetVarnames(PyCodeObject *co)
104 .. c:function:: PyObject* PyCode_GetCellvars(PyCodeObject *co)
113 .. c:function:: PyObject* PyCode_GetFreevars(PyCodeObject *co)
Dframe.rst60 .. c:function:: PyCodeObject* PyFrame_GetCode(PyFrameObject *frame)
/third_party/python/Objects/clinic/
Dfuncobject.c.h23 func_new_impl(PyTypeObject *type, PyCodeObject *code, PyObject *globals,
36 PyCodeObject *code; in func_new()
50 code = (PyCodeObject *)fastargs[0]; in func_new()
Dcodeobject.c.h174 code_replace_impl(PyCodeObject *self, int co_argcount,
186 code_replace(PyCodeObject *self, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames) in code_replace()
415 code__varname_from_oparg_impl(PyCodeObject *self, int oparg);
418 code__varname_from_oparg(PyCodeObject *self, PyObject *const *args, Py_ssize_t nargs, PyObject *kwn… in code__varname_from_oparg()
/third_party/python/Include/
Dpytypedefs.h21 typedef struct PyCodeObject PyCodeObject; typedef
Dpyframe.h15 PyAPI_FUNC(PyCodeObject *) PyFrame_GetCode(PyFrameObject *frame);
/third_party/python/Python/
Dframe.c91 PyCodeObject *code = frame->f_code; in take_ownership()
153 PyCodeObject *code = (PyCodeObject *)func->func_code; in _PyFrame_Push()
Dspecialize.c260 _PyCode_Quicken(PyCodeObject *code) in _PyCode_Quicken()
1175 function_kind(PyCodeObject *code) { in function_kind()
1224 PyCodeObject *fcode = (PyCodeObject *)func->func_code; in _Py_Specialize_BinarySubscr()
1344 PyCodeObject *code = (PyCodeObject *)func->func_code; in _Py_Specialize_StoreSubscr()
1486 PyCodeObject *code = (PyCodeObject *)func->func_code; in specialize_py_call()
Dceval.c197 static void format_exc_unbound(PyThreadState *tstate, PyCodeObject *co, int oparg);
203 static int get_exception_handler(PyCodeObject *, int, int*, int*, int*);
1143 .fc_name = ((PyCodeObject *)co)->co_name, in PyEval_EvalCode()
1144 .fc_qualname = ((PyCodeObject *)co)->co_name, in PyEval_EvalCode()
1698 PyCodeObject *co = frame->f_code; \
2248 PyCodeObject *code = (PyCodeObject *)getitem->func_code;
3208 PyCodeObject *co = frame->f_code;
4744 int code_flags = ((PyCodeObject*)PyFunction_GET_CODE(function))->co_flags;
4851 PyCodeObject *code = (PyCodeObject *)func->func_code;
4885 PyCodeObject *code = (PyCodeObject *)func->func_code;
[all …]
Dtraceback.c267 PyCodeObject *code; in _PyTraceback_Add()
798 PyCodeObject* code = frame->f_frame->f_code; in tb_displayline()
927 PyCodeObject *code = NULL; in tb_printinternal()
1187 PyCodeObject *code = frame->f_code; in dump_frame()
Dimport.c794 pathname = ((PyCodeObject *)co)->co_filename; in PyImport_ExecCodeModuleObject()
815 update_code_filenames(PyCodeObject *co, PyObject *oldname, PyObject *newname) in update_code_filenames()
831 update_code_filenames((PyCodeObject *)tmp, in update_code_filenames()
837 update_compiled_module(PyCodeObject *co, PyObject *newname) in update_compiled_module()
864 _imp__fix_co_filename_impl(PyObject *module, PyCodeObject *code, in _imp__fix_co_filename_impl()
1507 PyCodeObject *code = PyFrame_GetCode(frame); in remove_importlib_frames()
Dpythonrun.c1689 run_eval_code_obj(PyThreadState *tstate, PyCodeObject *co, PyObject *globals, PyObject *locals) in run_eval_code_obj()
1726 PyCodeObject *co = _PyAST_Compile(mod, filename, flags, -1, arena); in run_mod()
1745 PyCodeObject *co; in run_pyc_file()
1772 co = (PyCodeObject *)v; in run_pyc_file()
1787 PyCodeObject *co; in Py_CompileStringObject()
Dsuggestions.c225 PyCodeObject *code = PyFrame_GetCode(frame); in offer_suggestions_for_name_error()
/third_party/python/Python/clinic/
Dimport.c.h81 _imp__fix_co_filename_impl(PyObject *module, PyCodeObject *code,
88 PyCodeObject *code; in _imp__fix_co_filename()
98 code = (PyCodeObject *)args[0]; in _imp__fix_co_filename()

12