Lines Matching defs:frame
756 in the current stack frame or in an older stack frame, or None
778 clause in the current stack frame or in an older stack frame.
934 PyFrameObject *frame, int what, PyObject *arg)
938 stack[0] = (PyObject *)frame;
942 /* Discard any previous modifications the frame's fast locals */
943 if (frame->f_fast_as_locals) {
944 if (PyFrame_FastToLocalsWithError(frame) < 0) {
952 PyFrame_LocalsToFast(frame, 1);
957 profile_trampoline(PyObject *self, PyFrameObject *frame,
965 PyObject *result = call_trampoline(tstate, self, frame, what, arg);
976 trace_trampoline(PyObject *self, PyFrameObject *frame,
984 callback = frame->f_trace;
991 PyObject *result = call_trampoline(tstate, callback, frame, what, arg);
994 Py_CLEAR(frame->f_trace);
999 Py_XSETREF(frame->f_trace, result);
1803 Return a frame object from the call stack.
1805 If optional integer depth is given, return the frame object that many
1808 the frame at the top of the call stack.
1819 _PyInterpreterFrame *frame = tstate->cframe->current_frame;
1821 if (frame != NULL) {
1823 frame = frame->previous;
1824 if (frame == NULL) {
1827 if (_PyFrame_IsIncomplete(frame)) {
1833 if (frame == NULL) {
1839 PyObject *pyFrame = Py_XNewRef((PyObject *)_PyFrame_GetFrameObject(frame));
1850 Return a dict mapping each thread's thread id to its current stack frame.