Home
last modified time | relevance | path

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

/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()
550 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()
Dgenobject.c291 code_name = PyString_AsString(((PyCodeObject *)gen->gi_code)->co_name); in gen_repr()
302 PyObject *name = ((PyCodeObject *)gen->gi_code)->co_name; in gen_get_name()
Dframeobject.c451 PyCodeObject *co; in frame_dealloc()
622 PyFrame_New(PyThreadState *tstate, PyCodeObject *code, PyObject *globals, in PyFrame_New()
873 PyCodeObject *co; in PyFrame_FastToLocals()
925 PyCodeObject *co; in PyFrame_LocalsToFast()
/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…
Dveryhigh.rst240 .. c:function:: PyObject* PyEval_EvalCode(PyCodeObject *co, PyObject *globals, PyObject *locals)
247 .. c:function:: PyObject* PyEval_EvalCodeEx(PyCodeObject *co, PyObject *globals, PyObject *locals, …
/external/python/cpython2/Python/
Dimport.c724 v = ((PyCodeObject *)co)->co_filename; in PyImport_ExecCodeModuleEx()
731 v = PyEval_EvalCode((PyCodeObject *)co, d, d); in PyImport_ExecCodeModuleEx()
818 static PyCodeObject *
832 return (PyCodeObject *)co; in read_compiled_module()
843 PyCodeObject *co; in load_compiled_module()
867 static PyCodeObject *
870 PyCodeObject *co = NULL; in parse_source_module()
929 write_compiled_module(PyCodeObject *co, char *cpathname, struct stat *srcstat, time_t mtime) in write_compiled_module()
974 update_code_filenames(PyCodeObject *co, PyObject *oldname, PyObject *newname) in update_code_filenames()
992 update_code_filenames((PyCodeObject *)tmp, in update_code_filenames()
[all …]
Dcompile.c161 static PyCodeObject *compiler_mod(struct compiler *, mod_ty);
181 static PyCodeObject *assemble(struct compiler *, int addNone);
253 PyCodeObject *
258 PyCodeObject *co = NULL; in PyAST_Compile()
300 PyCodeObject *
303 PyCodeObject *co = NULL; in PyNode_Compile()
1172 static PyCodeObject *
1175 PyCodeObject *co; in compiler_mod()
1260 compiler_make_closure(struct compiler *c, PyCodeObject *co, int args) in compiler_make_closure()
1345 PyCodeObject *co; in compiler_function()
[all …]
Dpythonrun.c1371 PyCodeObject *co; in run_mod()
1385 PyCodeObject *co; in run_pyc_file()
1405 co = (PyCodeObject *)v; in run_pyc_file()
1417 PyCodeObject *co; in Py_CompileStringFlags()
Dceval.c667 PyEval_EvalCode(PyCodeObject *co, PyObject *globals, PyObject *locals) in PyEval_EvalCode()
803 PyCodeObject *co; in PyEval_EvalFrameEx()
3347 PyEval_EvalCodeEx(PyCodeObject *co, PyObject *globals, PyObject *locals, in PyEval_EvalCodeEx()
4403 PyCodeObject *co = (PyCodeObject *)PyFunction_GET_CODE(func); in fast_function()
5045 if (PyCode_GetNumFree((PyCodeObject *)prog) > 0) { in exec_statement()
5050 v = PyEval_EvalCode((PyCodeObject *) prog, globals, locals); in exec_statement()
Dmarshal.c429 PyCodeObject *co = (PyCodeObject *)v; in w_object()
Dbltinmodule.c673 if (PyCode_GetNumFree((PyCodeObject *)cmd) > 0) { in builtin_eval()
678 return PyEval_EvalCode((PyCodeObject *) cmd, globals, locals); in builtin_eval()
/external/python/cpython2/Modules/_ctypes/
Dcallbacks.c101 PyCodeObject *
108 PyCodeObject *result = NULL; in PyCode_NewEmpty()
154 PyCodeObject *py_code = 0; in _ctypes_add_traceback()
/external/python/cpython2/Modules/
Dpyexpat.c95 PyCodeObject *tb_code;
261 static PyCodeObject*
336 call_with_frame(PyCodeObject *c, PyObject* func, PyObject* args, in call_with_frame()
D_hotshot.c772 get_fileno(ProfilerObject *self, PyCodeObject *fcode) in get_fileno()
1094 PyCodeObject *code; in profiler_runcode()
/external/python/cpython2/Doc/faq/
Dextending.rst388 dum = PyEval_EvalCode ((PyCodeObject *)src, glb, loc);
/external/python/cpython2/Doc/data/
Drefcounts.dat379 PyEval_EvalCode:PyCodeObject*:co:0: