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);
146 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 *,
/third_party/python/Objects/
Dcodeobject.c116 PyCodeObject *
124 PyCodeObject *co; in PyCode_NewWithPosOnlyArgs()
223 co = PyObject_New(PyCodeObject, &PyCode_Type); in PyCode_NewWithPosOnlyArgs()
266 PyCodeObject *
281 _PyCode_InitOpcache(PyCodeObject *co) in _PyCode_InitOpcache()
323 PyCodeObject *
330 PyCodeObject *result = NULL; in PyCode_NewEmpty()
373 #define OFF(x) offsetof(PyCodeObject, x)
546 code_dealloc(PyCodeObject *co) in code_dealloc()
591 code_sizeof(PyCodeObject *co, PyObject *Py_UNUSED(args)) in code_sizeof()
[all …]
Dframeobject.c102 markblocks(PyCodeObject *code_obj, int len) in markblocks()
241 marklines(PyCodeObject *code, int len) in marklines()
571 PyCodeObject *co; in frame_dealloc()
616 PyCodeObject *code = frame->f_code; in frame_nslots()
700 PyCodeObject *code = f->f_code; in frame_sizeof()
717 PyCodeObject *code = f->f_code; in frame_repr()
769 frame_alloc(PyCodeObject *code) in frame_alloc()
866 _PyFrame_New_NoTrack(PyThreadState *tstate, PyCodeObject *code, in _PyFrame_New_NoTrack()
929 PyFrame_New(PyThreadState *tstate, PyCodeObject *code, in PyFrame_New()
1069 PyCodeObject *co; in PyFrame_FastToLocalsWithError()
[all …]
Dfuncobject.c46 op->func_name = ((PyCodeObject *)code)->co_name; in PyFunction_NewWithQualName()
54 consts = ((PyCodeObject *)code)->co_consts; in PyFunction_NewWithQualName()
279 nfree = PyCode_GetNumFree((PyCodeObject *)value); in func_set_code()
499 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()
802 gen->gi_name = ((PyCodeObject *)gen->gi_code)->co_name; in gen_new_with_qualname()
836 PyCodeObject *code = (PyCodeObject *)((PyGenObject*)o)->gi_code; in gen_is_coroutine()
1122 PyCodeObject *code = frame->f_code; in compute_cr_origin()
Dcall.c308 function_code_fastcall(PyThreadState *tstate, PyCodeObject *co, in function_code_fastcall()
359 PyCodeObject *co = (PyCodeObject *)PyFunction_GET_CODE(func); 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…
/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.h20 code_replace_impl(PyCodeObject *self, int co_argcount,
30 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
Dcompile.h15 PyAPI_FUNC(PyCodeObject *) PyNode_Compile(struct _node *, const char *);
66 PyAPI_FUNC(PyCodeObject *) PyAST_CompileEx(
72 PyAPI_FUNC(PyCodeObject *) PyAST_CompileObject(
Dpyframe.h17 PyAPI_FUNC(PyCodeObject *) PyFrame_GetCode(PyFrameObject *frame);
/third_party/python/Include/internal/
Dpycore_code.h21 int _PyCode_InitOpcache(PyCodeObject *co);
/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/Modules/
D_peg_parser.c74 PyCodeObject *result = PyAST_CompileObject(mod, filename_ob, &flags, -1, arena); in _Py_compile_string()
D_lsprof.c391 PyCodeObject *code = PyFrame_GetCode(frame); in profiler_callback()
401 PyCodeObject *code = PyFrame_GetCode(frame); in profiler_callback()
/third_party/python/Python/
Dtraceback.c260 PyCodeObject *code; in _PyTraceback_Add()
563 PyCodeObject *code = PyFrame_GetCode(tb->tb_frame); in tb_printinternal()
757 PyCodeObject *code = PyFrame_GetCode(frame); in dump_frame()
Dcompile.c191 static PyCodeObject *compiler_mod(struct compiler *, mod_ty);
225 static PyCodeObject *assemble(struct compiler *, int addNone);
317 PyCodeObject *
322 PyCodeObject *co = NULL; in PyAST_CompileObject()
378 PyCodeObject *
383 PyCodeObject *co; in PyAST_CompileEx()
393 PyCodeObject *
396 PyCodeObject *co = NULL; in PyNode_Compile()
1818 static PyCodeObject *
1821 PyCodeObject *co; in compiler_mod()
[all …]
Dimport.c1074 pathname = ((PyCodeObject *)co)->co_filename; in PyImport_ExecCodeModuleObject()
1093 update_code_filenames(PyCodeObject *co, PyObject *oldname, PyObject *newname) in update_code_filenames()
1109 update_code_filenames((PyCodeObject *)tmp, in update_code_filenames()
1115 update_compiled_module(PyCodeObject *co, PyObject *newname) in update_compiled_module()
1142 _imp__fix_co_filename_impl(PyObject *module, PyCodeObject *code, in _imp__fix_co_filename_impl()
1542 PyCodeObject *code = PyFrame_GetCode(frame); in remove_importlib_frames()
Dpythonrun.c1195 run_eval_code_obj(PyThreadState *tstate, PyCodeObject *co, PyObject *globals, PyObject *locals) in run_eval_code_obj()
1230 PyCodeObject *co = PyAST_CompileObject(mod, filename, flags, -1, arena); in run_mod()
1249 PyCodeObject *co; in run_pyc_file()
1276 co = (PyCodeObject *)v; in run_pyc_file()
1291 PyCodeObject *co; in Py_CompileStringObject()
Dceval.c79 static void format_exc_unbound(PyThreadState *tstate, PyCodeObject *co, int oparg);
933 PyCodeObject *co; in _PyEval_EvalFrameDefault()
3851 PyCodeObject *co, PyObject *names) in format_missing()
3913 missing_arguments(PyThreadState *tstate, PyCodeObject *co, in missing_arguments()
3952 too_many_positional(PyThreadState *tstate, PyCodeObject *co, in too_many_positional()
4009 positional_only_passed_as_keyword(PyThreadState *tstate, PyCodeObject *co, in positional_only_passed_as_keyword()
4085 PyCodeObject* co = (PyCodeObject*)_co; in _PyEval_EvalCode()
5460 format_exc_unbound(PyThreadState *tstate, PyCodeObject *co, int oparg) in format_exc_unbound()
5621 PyCodeObject *code = f->f_code; in dtrace_function_entry()
5636 PyCodeObject *code = f->f_code; in dtrace_function_return()
D_warnings.c789 PyCodeObject *code = PyFrame_GetCode(frame); in is_internal_frame()
863 PyCodeObject *code = PyFrame_GetCode(f); in setup_context()
Dmarshal.c510 PyCodeObject *co = (PyCodeObject *)v; in w_complex_object()
/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