Home
last modified time | relevance | path

Searched refs:PyCodeObject (Results 1 – 25 of 58) 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);
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 *,
/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/python/cpython3/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 …]
/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…
/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()
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()
/external/python/cpython3/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);
/external/tensorflow/tensorflow/compiler/xla/python/
Dtraceback.h60 const absl::InlinedVector<std::pair<PyCodeObject*, int>, 32>& raw_frames() in raw_frames()
66 absl::InlinedVector<std::pair<PyCodeObject*, int>, 32> frames_;
Dpy_client.cc184 int FunctionId(PyCodeObject* code);
187 int LocationId(PyCodeObject* code, int instruction);
193 absl::flat_hash_map<PyCodeObject*, int> functions_;
194 absl::flat_hash_map<std::pair<PyCodeObject*, int>, int> locations_;
207 int ProfileBuilder::FunctionId(PyCodeObject* code) { in FunctionId()
222 int ProfileBuilder::LocationId(PyCodeObject* code, int instruction) { in LocationId()
Dpython_ref_manager.h71 void AddGarbage(absl::Span<std::pair<PyCodeObject*, int> const> garbage);
/external/tensorflow/tensorflow/python/util/
Dstack_trace.h67 PyCodeObject* code_obj = frame->f_code; in Capture()
110 absl::InlinedVector<std::pair<PyCodeObject*, int>, kStackTraceInitialSize>
/external/tensorflow/tensorflow/python/profiler/internal/
Dpython_hooks.h48 PythonTraceEntry(uint64 start, uint64 end, PyCodeObject* code, in PythonTraceEntry()
74 PyCodeObject* code_object;
Dpython_hooks.cc50 std::string GetEventName(PyCodeObject* py_code) { in GetEventName()
255 PyCodeObject* f_code = frame->f_code; in ProfileFast()
267 PyCodeObject* f_code = frame->f_code; in ProfileFast()
/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/Include/internal/
Dpycore_code.h21 int _PyCode_InitOpcache(PyCodeObject *co);
/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()

123