Home
last modified time | relevance | path

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

12

/third_party/python/Include/cpython/
Dcode.h18 struct PyCodeObject { struct
117 PyAPI_FUNC(PyCodeObject *) PyCode_New(
122 PyAPI_FUNC(PyCodeObject *) PyCode_NewWithPosOnlyArgs(
129 PyAPI_FUNC(PyCodeObject *)
135 PyAPI_FUNC(int) PyCode_Addr2Line(PyCodeObject *, int);
175 int _PyCode_InitAddressRange(PyCodeObject* co, PyCodeAddressRange *bounds);
Dframeobject.h31 PyCodeObject *f_code; /* code segment */
70 PyAPI_FUNC(PyFrameObject *) PyFrame_New(PyThreadState *, PyCodeObject *,
/third_party/python/Objects/
Dcodeobject.c116 PyCodeObject *
124 PyCodeObject *co; in PyCode_NewWithPosOnlyArgs()
231 co = PyObject_New(PyCodeObject, &PyCode_Type); in PyCode_NewWithPosOnlyArgs()
274 PyCodeObject *
289 _PyCode_InitOpcache(PyCodeObject *co) in _PyCode_InitOpcache()
331 PyCodeObject *
338 PyCodeObject *result = NULL; in PyCode_NewEmpty()
381 #define OFF(x) offsetof(PyCodeObject, x)
446 code_getlnotab(PyCodeObject *code, void *closure) in code_getlnotab()
631 code_dealloc(PyCodeObject *co) in code_dealloc()
[all …]
Dframeobject.c124 markblocks(PyCodeObject *code_obj, int len) in markblocks()
263 marklines(PyCodeObject *code, int len) in marklines()
603 PyCodeObject *co = f->f_code; in frame_dealloc()
630 PyCodeObject *code = frame->f_code; in frame_nslots()
709 PyCodeObject *code = f->f_code; in frame_sizeof()
726 PyCodeObject *code = f->f_code; in frame_repr()
778 frame_alloc(PyCodeObject *code) in frame_alloc()
837 PyFrameObject *f = frame_alloc((PyCodeObject *)con->fc_code); in _PyFrame_New_NoTrack()
843 f->f_code = (PyCodeObject *)Py_NewRef(con->fc_code); in _PyFrame_New_NoTrack()
863 PyFrame_New(PyThreadState *tstate, PyCodeObject *code, in PyFrame_New()
[all …]
Dfuncobject.c19 PyCodeObject *code_obj = (PyCodeObject *)code; in PyFunction_NewWithQualName()
328 nfree = PyCode_GetNumFree((PyCodeObject *)value); in func_set_code()
547 func_new_impl(PyTypeObject *type, PyCodeObject *code, PyObject *globals, in func_new_impl()
Dgenobject.c81 ((PyCodeObject *)gen->gi_code)->co_flags & CO_COROUTINE && in _PyGen_Finalize()
129 if (((PyCodeObject *)gen->gi_code)->co_flags & CO_COROUTINE) { in gen_dealloc()
851 gen->gi_name = ((PyCodeObject *)gen->gi_code)->co_name; in gen_new_with_qualname()
885 PyCodeObject *code = (PyCodeObject *)((PyGenObject*)o)->gi_code; in gen_is_coroutine()
1181 PyCodeObject *code = frame->f_code; in compute_cr_origin()
Dcall.c341 if (((PyCodeObject *)f->fc_code)->co_flags & CO_OPTIMIZED) { in _PyFunction_Vectorcall()
/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…
43 .. c:function:: PyCodeObject* PyCode_NewWithPosOnlyArgs(int argcount, int posonlyargcount, int kwon…
49 .. c:function:: PyCodeObject* PyCode_NewEmpty(const char *filename, const char *funcname, int first…
55 .. c:function:: int PyCode_Addr2Line(PyCodeObject *co, int byte_offset)
/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.h156 code_replace_impl(PyCodeObject *self, int co_argcount,
166 code_replace(PyCodeObject *self, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames) in code_replace()
/third_party/python/Include/
Dcode.h9 typedef struct PyCodeObject PyCodeObject; typedef
Dpyframe.h17 PyAPI_FUNC(PyCodeObject *) PyFrame_GetCode(PyFrameObject *frame);
/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()
/third_party/python/Include/internal/
Dpycore_code.h28 int _PyCode_InitOpcache(PyCodeObject *co);
Dpycore_compile.h15 PyAPI_FUNC(PyCodeObject*) _PyAST_Compile(
/third_party/python/Python/
Dceval.c37 PyCodeObject *code; // The code object for the bounds. May be NULL.
90 static void format_exc_unbound(PyThreadState *tstate, PyCodeObject *co, int oparg);
1127 .fc_name = ((PyCodeObject *)co)->co_name, in PyEval_EvalCode()
1128 .fc_qualname = ((PyCodeObject *)co)->co_name, in PyEval_EvalCode()
1596 PyCodeObject *co; in _PyEval_EvalFrameDefault()
4556 PyCodeObject *co, PyObject *names, PyObject *qualname) in format_missing()
4618 missing_arguments(PyThreadState *tstate, PyCodeObject *co, in missing_arguments()
4657 too_many_positional(PyThreadState *tstate, PyCodeObject *co, in too_many_positional()
4715 positional_only_passed_as_keyword(PyThreadState *tstate, PyCodeObject *co, in positional_only_passed_as_keyword()
4785 PyCodeObject *co = (PyCodeObject*)con->fc_code; in _PyEval_MakeFrameVector()
[all …]
Dpythonrun.c1266 run_eval_code_obj(PyThreadState *tstate, PyCodeObject *co, PyObject *globals, PyObject *locals) in run_eval_code_obj()
1303 PyCodeObject *co = _PyAST_Compile(mod, filename, flags, -1, arena); in run_mod()
1322 PyCodeObject *co; in run_pyc_file()
1349 co = (PyCodeObject *)v; in run_pyc_file()
1364 PyCodeObject *co; in Py_CompileStringObject()
Dimport.c824 pathname = ((PyCodeObject *)co)->co_filename; in PyImport_ExecCodeModuleObject()
846 update_code_filenames(PyCodeObject *co, PyObject *oldname, PyObject *newname) in update_code_filenames()
862 update_code_filenames((PyCodeObject *)tmp, in update_code_filenames()
868 update_compiled_module(PyCodeObject *co, PyObject *newname) in update_compiled_module()
895 _imp__fix_co_filename_impl(PyObject *module, PyCodeObject *code, in _imp__fix_co_filename_impl()
1288 PyCodeObject *code = PyFrame_GetCode(frame); in remove_importlib_frames()
Dtraceback.c261 PyCodeObject *code; in _PyTraceback_Add()
564 PyCodeObject *code = PyFrame_GetCode(tb->tb_frame); in tb_printinternal()
777 PyCodeObject *code = PyFrame_GetCode(frame); in dump_frame()
Dsuggestions.c222 PyCodeObject *code = frame->f_code; in offer_suggestions_for_name_error()
Dcompile.c271 static PyCodeObject *compiler_mod(struct compiler *, mod_ty);
310 static PyCodeObject *assemble(struct compiler *, int addNone);
402 PyCodeObject *
407 PyCodeObject *co = NULL; in _PyAST_Compile()
1936 static PyCodeObject *
1939 PyCodeObject *co; in compiler_mod()
2016 compiler_make_closure(struct compiler *c, PyCodeObject *co, Py_ssize_t flags, in compiler_make_closure()
2319 PyCodeObject *co; in compiler_function()
2425 PyCodeObject *co; in compiler_class()
2767 PyCodeObject *co; in compiler_lambda()
[all …]
D_warnings.c783 PyCodeObject *code = PyFrame_GetCode(frame); in is_internal_frame()
857 PyCodeObject *code = PyFrame_GetCode(f); in setup_context()
Dmarshal.c510 PyCodeObject *co = (PyCodeObject *)v; in w_complex_object()
/third_party/python/Modules/
D_lsprof.c408 PyCodeObject *code = PyFrame_GetCode(frame); in profiler_callback()
418 PyCodeObject *code = PyFrame_GetCode(frame); in profiler_callback()
/third_party/python/Doc/data/
Drefcounts.dat235 PyCode_GetNumFree:PyCodeObject*:co:0:
237 PyCode_NewWithPosOnlyArgs:PyCodeObject*::+1:
255 PyCode_New:PyCodeObject*::+1:
272 PyCode_NewEmpty:PyCodeObject*::+1:

12