Home
last modified time | relevance | path

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

123

/external/python/cpython3/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 *,
/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()
/external/tensorflow/tensorflow/compiler/xla/python/
Dpprof_profile_builder.h39 int FunctionId(PyCodeObject* code);
42 int LocationId(PyCodeObject* code, int instruction);
48 absl::flat_hash_map<PyCodeObject*, int> functions_;
49 absl::flat_hash_map<std::pair<PyCodeObject*, int>, int> locations_;
Dtraceback.h68 const absl::InlinedVector<std::pair<PyCodeObject*, int>, 32>& raw_frames() in raw_frames()
85 absl::InlinedVector<std::pair<PyCodeObject*, int>, 32> frames_;
Dpprof_profile_builder.cc38 int PprofProfileBuilder::FunctionId(PyCodeObject* code) { in FunctionId()
53 int PprofProfileBuilder::LocationId(PyCodeObject* code, int instruction) { in LocationId()
Dtraceback.cc118 for (const std::pair<PyCodeObject*, int>& frame : frames_) { in AsPythonTraceback()
190 return PyCode_Addr2Line(reinterpret_cast<PyCodeObject*>(code.ptr()), in BuildTracebackSubmodule()
Dpython_ref_manager.h72 void AddGarbage(absl::Span<std::pair<PyCodeObject*, int> const> garbage);
/external/python/cpython3/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 …]
/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…
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)
/external/python/cpython3/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()
/external/python/cpython3/Include/
Dcode.h9 typedef struct PyCodeObject PyCodeObject; typedef
Dpyframe.h17 PyAPI_FUNC(PyCodeObject *) PyFrame_GetCode(PyFrameObject *frame);
/external/tensorflow/tensorflow/python/profiler/internal/
Dpython_hooks.cc288 PyCodeObject* f_code = frame->f_code; in ProfileFast()
291 PyCodeObject* f_code = PyFrame_GetCode(frame); in ProfileFast()
306 PyCodeObject* f_code = frame->f_code; in ProfileFast()
309 PyCodeObject* f_code = PyFrame_GetCode(frame); in ProfileFast()
/external/tensorflow/tensorflow/python/util/
Dstack_trace.h67 PyCodeObject* code_obj = frame->f_code; in Capture()
112 absl::InlinedVector<std::pair<PyCodeObject*, int>, kStackTraceInitialSize>
/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/cpython3/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()
/external/python/cpython3/Include/internal/
Dpycore_code.h28 int _PyCode_InitOpcache(PyCodeObject *co);
Dpycore_compile.h15 PyAPI_FUNC(PyCodeObject*) _PyAST_Compile(

123