Lines Matching defs:function

49 // in PGO build in _PyEval_EvalFrameDefault(), because this function is over
345 "the function must be called with the GIL held, "
435 /* This function must succeed when the current thread state is NULL.
480 /* This function is called from PyOS_AfterFork_Child to destroy all threads
507 /* This function is used to signal that async exceptions are waiting to be
544 to a function to be called synchronously.
545 The synchronous function is called with one void* argument.
549 If registry succeeds, the registry function returns 0; if it fails
581 that function is not async-signal-safe. */
830 /* The function _Py_EnterRecursiveCallTstate() only calls _Py_CheckRecursiveCall()
1569 function that will be called on *every* entry
1571 None, is a function that will be called at
1573 (Actually, the function must return itself
1577 indicating why the function is called, and
1579 The global trace function is also called
1585 /* Trace function raised an error */
1596 /* Profile function raised an error */
1708 Update when returning or calling trace function. \
1752 * We also check on return from any builtin function.
4689 PyObject *function = PEEK(nargs + 1);
4690 if (!is_meth && Py_TYPE(function) == &PyMethod_Type) {
4691 PyObject *meth = ((PyMethodObject *)function)->im_func;
4692 PyObject *self = ((PyMethodObject *)function)->im_self;
4697 Py_DECREF(function);
4705 PyObject *function = PEEK(oparg + 1);
4706 DEOPT_IF(Py_TYPE(function) != &PyMethod_Type, PRECALL);
4708 PyObject *meth = ((PyMethodObject *)function)->im_func;
4709 PyObject *self = ((PyMethodObject *)function)->im_self;
4714 Py_DECREF(function);
4721 PyObject *function = PEEK(nargs + 1);
4722 DEOPT_IF(Py_TYPE(function) != &PyFunction_Type, PRECALL);
4740 PyObject *function = PEEK(total_args + 1);
4743 if (Py_TYPE(function) == &PyFunction_Type && tstate->interp->eval_frame == NULL) {
4744 int code_flags = ((PyCodeObject*)PyFunction_GET_CODE(function))->co_flags;
4745 PyObject *locals = code_flags & CO_OPTIMIZED ? NULL : PyFunction_GET_GLOBALS(function);
4748 tstate, (PyFunctionObject *)function, locals,
4766 /* Callable is not a normal Python function */
4770 tstate, function, stack_pointer-total_args,
4775 function, stack_pointer-total_args,
4781 Py_DECREF(function);
5020 // function calls.
5222 // function calls.
5294 // function calls.
5503 /* If there's a conversion function, call it and replace
5660 // versions. If a trace function sets a new f_lineno and
6894 // Call the tracing function
6912 then call the trace function if we're tracing source lines.
6956 _PyErr_SetString(tstate, PyExc_RuntimeError, "Cannot install a profile function "
6957 "while another profile function is being installed");
7009 _PyErr_SetString(tstate, PyExc_RuntimeError, "Cannot install a trace function "
7010 "while another trace function is being installed");
7156 /* Convenience function to get a builtin from its name */