/external/python/cpython3/Include/cpython/ |
D | code.h | 140 struct PyCodeObject _PyCode_DEF(1); 183 static inline Py_ssize_t PyCode_GetNumFree(PyCodeObject *op) { in PyCode_GetNumFree() 188 static inline int PyUnstable_Code_GetFirstFree(PyCodeObject *op) { in PyUnstable_Code_GetFirstFree() 193 Py_DEPRECATED(3.13) static inline int PyCode_GetFirstFree(PyCodeObject *op) { in PyCode_GetFirstFree() 198 PyAPI_FUNC(PyCodeObject *) PyUnstable_Code_New( 204 PyAPI_FUNC(PyCodeObject *) PyUnstable_Code_NewWithPosOnlyArgs( 211 _Py_DEPRECATED_EXTERNALLY(3.12) static inline PyCodeObject * 221 _Py_DEPRECATED_EXTERNALLY(3.12) static inline PyCodeObject * 233 PyAPI_FUNC(PyCodeObject *) 239 PyAPI_FUNC(int) PyCode_Addr2Line(PyCodeObject *, int); [all …]
|
/external/python/cpython3/Objects/ |
D | codeobject.c | 32 notify_code_watchers(PyCodeEvent event, PyCodeObject *co) in notify_code_watchers() 307 init_co_cached(PyCodeObject *self) in init_co_cached() 382 get_localsplus_names(PyCodeObject *co, _PyLocals_Kind kind, int num) in get_localsplus_names() 461 extern void _PyCode_Quicken(PyCodeObject *code); 464 init_code(PyCodeObject *co, struct _PyCodeConstructor *con) in init_code() 658 PyCodeObject * 677 PyCodeObject *co; in _PyCode_New() 679 co = PyObject_GC_NewVar(PyCodeObject, &PyCode_Type, size); in _PyCode_New() 681 co = PyObject_NewVar(PyCodeObject, &PyCode_Type, size); in _PyCode_New() 702 PyCodeObject * [all …]
|
D | frameobject.c | 23 framelocalsproxy_getval(_PyInterpreterFrame *frame, PyCodeObject *co, int i) in framelocalsproxy_getval() 64 PyCodeObject *co = _PyFrame_GetCode(frame->f_frame); in framelocalsproxy_getkeyindex() 128 PyCodeObject* co = _PyFrame_GetCode(frame->f_frame); in framelocalsproxy_getitem() 160 PyCodeObject* co = _PyFrame_GetCode(frame->f_frame); in framelocalsproxy_setitem() 273 PyCodeObject *co = _PyFrame_GetCode(frame->f_frame); in framelocalsproxy_keys() 478 PyCodeObject *co = _PyFrame_GetCode(frame->f_frame); in framelocalsproxy_values() 514 PyCodeObject *co = _PyFrame_GetCode(frame->f_frame); in framelocalsproxy_items() 570 PyCodeObject *co = _PyFrame_GetCode(frame->f_frame); in framelocalsproxy_length() 862 PyCodeObject *co = _PyFrame_GetCode(f->f_frame); in frame_getlocals() 1136 mark_stacks(PyCodeObject *code_obj, int len) in mark_stacks() [all …]
|
/external/tensorflow/tensorflow/compiler/xla/python/ |
D | pprof_profile_builder.h | 39 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_;
|
D | traceback.h | 68 const absl::InlinedVector<std::pair<PyCodeObject*, int>, 32>& raw_frames() in raw_frames() 85 absl::InlinedVector<std::pair<PyCodeObject*, int>, 32> frames_;
|
D | pprof_profile_builder.cc | 38 int PprofProfileBuilder::FunctionId(PyCodeObject* code) { in FunctionId() 53 int PprofProfileBuilder::LocationId(PyCodeObject* code, int instruction) { in LocationId()
|
/external/python/cpython3/Include/internal/ |
D | pycore_runtime_init.h | 78 .size = sizeof(PyCodeObject), \ 79 .filename = offsetof(PyCodeObject, co_filename), \ 80 .name = offsetof(PyCodeObject, co_name), \ 81 .qualname = offsetof(PyCodeObject, co_qualname), \ 82 .linetable = offsetof(PyCodeObject, co_linetable), \ 83 .firstlineno = offsetof(PyCodeObject, co_firstlineno), \ 84 .argcount = offsetof(PyCodeObject, co_argcount), \ 85 .localsplusnames = offsetof(PyCodeObject, co_localsplusnames), \ 86 .localspluskinds = offsetof(PyCodeObject, co_localspluskinds), \ 87 .co_code_adaptive = offsetof(PyCodeObject, co_code_adaptive), \
|
D | pycore_frame.h | 37 extern PyFrameObject* _PyFrame_New_NoTrack(PyCodeObject *code); 80 static inline PyCodeObject *_PyFrame_GetCode(_PyInterpreterFrame *f) { in _PyFrame_GetCode() 82 return (PyCodeObject *)f->f_executable; in _PyFrame_GetCode() 109 _PyFrame_NumSlotsForCodeObject(PyCodeObject *code) in _PyFrame_NumSlotsForCodeObject() 136 PyObject *locals, PyCodeObject *code, int null_locals_from) in _PyFrame_Initialize() 282 PyCodeObject *code = (PyCodeObject *)func->func_code; in _PyFrame_PushUnchecked() 293 _PyFrame_PushTrampolineUnchecked(PyThreadState *tstate, PyCodeObject *code, int stackdepth) in _PyFrame_PushTrampolineUnchecked()
|
D | pycore_code.h | 286 extern PyCodeObject* _PyCode_New(struct _PyCodeConstructor *); 292 extern PyObject* _PyCode_GetVarnames(PyCodeObject *); 293 extern PyObject* _PyCode_GetCellvars(PyCodeObject *); 294 extern PyObject* _PyCode_GetFreevars(PyCodeObject *); 295 extern PyObject* _PyCode_GetCode(PyCodeObject *); 298 extern int _PyCode_InitAddressRange(PyCodeObject* co, PyCodeAddressRange *bounds); 312 extern void _PyCode_Clear_Executors(PyCodeObject *code); 587 extern int _Py_Instrument(PyCodeObject *co, PyInterpreterState *interp); 589 extern int _Py_GetBaseOpcode(PyCodeObject *code, int offset); 591 extern int _PyInstruction_GetLength(PyCodeObject *code, int offset);
|
D | pycore_instruments.h | 34 int _PyMonitoring_SetLocalEvents(PyCodeObject *code, int tool_id, _PyMonitoringEventSet events); 35 int _PyMonitoring_GetLocalEvents(PyCodeObject *code, int tool_id, _PyMonitoringEventSet *events); 67 _Py_Instrumentation_GetLine(PyCodeObject *code, int index);
|
D | pycore_compile.h | 18 PyAPI_FUNC(PyCodeObject*) _PyAST_Compile( 111 PyAPI_FUNC(PyCodeObject*)
|
D | pycore_optimizer.h | 37 PyCodeObject *code; // Weak (NULL if no corresponding ENTER_EXECUTOR). 141 PyAPI_FUNC(_PyExecutorObject *) _Py_GetExecutor(PyCodeObject *code, int offset); 259 PyCodeObject *co,
|
/external/pytorch/torch/csrc/dynamo/ |
D | extra_state.h | 76 ExtraState* get_extra_state(PyCodeObject* code); 108 void set_extra_state(PyCodeObject* code, ExtraState* extra_state); 120 ExtraState* init_and_set_extra_state(PyCodeObject* code);
|
D | extra_state.cpp | 60 ExtraState* get_extra_state(PyCodeObject* code) { in get_extra_state() 73 void set_extra_state(PyCodeObject* code, ExtraState* extra_state) { in set_extra_state() 79 ExtraState* init_and_set_extra_state(PyCodeObject* code) { in init_and_set_extra_state() 178 PyCodeObject* code = (PyCodeObject*)code_obj.ptr(); in _debug_get_cache_entry_list()
|
D | cpython_includes.h | 34 #define F_CODE(x) ((PyCodeObject*)(x)->f_executable) 37 #define F_CODE(x) ((PyCodeObject*)(x)->f_code)
|
D | cache_entry.cpp | 36 PyCodeObject* CacheEntry_get_code(CacheEntry* e) { in CacheEntry_get_code() 37 return (PyCodeObject*)e->code.ptr(); in CacheEntry_get_code()
|
D | eval_frame.c | 298 PyCodeObject* code, in eval_custom_code_impl() 485 PyCodeObject* code, in eval_custom_code() 631 PyCodeObject* cached_code = (PyCodeObject*)maybe_cached_code; in _custom_eval_frame() 655 PyCodeObject* cached_code = (PyCodeObject*)maybe_cached_code; in _custom_eval_frame() 806 set_extra_state((PyCodeObject*)code, NULL); in reset_code() 828 set_extra_state((PyCodeObject*)obj, SKIP_CODE); in skip_code()
|
/external/python/cpython3/Python/ |
D | instrumentation.c | 284 compute_line_delta(PyCodeObject *code, int offset, int line) in compute_line_delta() 297 compute_line(PyCodeObject *code, int offset, int8_t line_delta) in compute_line() 312 _PyInstruction_GetLength(PyCodeObject *code, int offset) in _PyInstruction_GetLength() 348 dump_instrumentation_data_tools(PyCodeObject *code, uint8_t *tools, int i, FILE*out) in dump_instrumentation_data_tools() 359 dump_instrumentation_data_lines(PyCodeObject *code, _PyCoLineInstrumentationData *lines, int i, FIL… in dump_instrumentation_data_lines() 373 dump_instrumentation_data_line_tools(PyCodeObject *code, uint8_t *line_tools, int i, FILE*out) in dump_instrumentation_data_line_tools() 384 dump_instrumentation_data_per_instruction(PyCodeObject *code, _PyCoMonitoringData *data, int i, FIL… in dump_instrumentation_data_per_instruction() 420 dump_instrumentation_data(PyCodeObject *code, int star, FILE*out) in dump_instrumentation_data() 485 sanity_check_instrumentation(PyCodeObject *code) in sanity_check_instrumentation() 583 int _Py_GetBaseOpcode(PyCodeObject *code, int i) in _Py_GetBaseOpcode() [all …]
|
D | optimizer_analysis.c | 370 static PyCodeObject * 374 PyCodeObject *co = NULL; in get_code() 380 co = (PyCodeObject *)(operand & ~1); in get_code() 385 co = (PyCodeObject *)func->func_code; in get_code() 394 PyCodeObject *co, in optimize_uops()
|
/external/python/cpython3/Include/ |
D | pytypedefs.h | 21 typedef struct PyCodeObject PyCodeObject; typedef
|
/external/python/cpython3/Doc/c-api/ |
D | code.rst | 16 .. c:type:: PyCodeObject 33 .. c:function:: Py_ssize_t PyCode_GetNumFree(PyCodeObject *co) 38 .. c:function:: int PyUnstable_Code_GetFirstFree(PyCodeObject *co) 49 .. c:function:: PyCodeObject* PyUnstable_Code_New(int argcount, int kwonlyargcount, int nlocals, in… 72 .. c:function:: PyCodeObject* PyUnstable_Code_NewWithPosOnlyArgs(int argcount, int posonlyargcount,… 90 .. c:function:: PyCodeObject* PyCode_NewEmpty(const char *filename, const char *funcname, int first… 96 .. c:function:: int PyCode_Addr2Line(PyCodeObject *co, int byte_offset) 114 .. c:function:: PyObject* PyCode_GetCode(PyCodeObject *co) 127 .. c:function:: PyObject* PyCode_GetVarnames(PyCodeObject *co) 136 .. c:function:: PyObject* PyCode_GetCellvars(PyCodeObject *co) [all …]
|
/external/pytorch/torch/csrc/utils/ |
D | object_ptr.cpp | 15 void THPPointer<PyCodeObject>::free() { in free() 20 template class THPPointer<PyCodeObject>;
|
D | python_compat.h | 18 PyCode_GetNCellvars(PyCodeObject* code) { in PyCode_GetNCellvars() 28 PyCode_GetNFreevars(PyCodeObject* code) { in PyCode_GetNFreevars()
|
D | pythoncapi_compat.h | 151 PYCAPI_COMPAT_STATIC_INLINE(PyCodeObject*) 156 return _Py_CAST(PyCodeObject*, Py_NewRef(frame->f_code)); in PyFrame_GetCode() 160 PYCAPI_COMPAT_STATIC_INLINE(PyCodeObject*) 163 PyCodeObject *code = PyFrame_GetCode(frame); in _PyFrame_GetCodeBorrow() 541 PyCode_GetCode(PyCodeObject *code) in PyCode_GetCode() 551 PyCode_GetVarnames(PyCodeObject *code) in PyCode_GetVarnames() 560 PyCode_GetFreevars(PyCodeObject *code) in PyCode_GetFreevars() 569 PyCode_GetCellvars(PyCodeObject *code) in PyCode_GetCellvars()
|
/external/python/cpython3/Objects/clinic/ |
D | funcobject.c.h | 32 func_new_impl(PyTypeObject *type, PyCodeObject *code, PyObject *globals, 69 PyCodeObject *code; in func_new() 84 code = (PyCodeObject *)fastargs[0]; in func_new()
|