Home
last modified time | relevance | path

Searched refs:PyArena (Results 1 – 25 of 36) sorted by relevance

12

/external/python/cpython2/Include/
DPython-ast.h376 mod_ty _Py_Module(asdl_seq * body, PyArena *arena);
378 mod_ty _Py_Interactive(asdl_seq * body, PyArena *arena);
380 mod_ty _Py_Expression(expr_ty body, PyArena *arena);
382 mod_ty _Py_Suite(asdl_seq * body, PyArena *arena);
386 PyArena *arena);
390 PyArena *arena);
392 stmt_ty _Py_Return(expr_ty value, int lineno, int col_offset, PyArena *arena);
394 stmt_ty _Py_Delete(asdl_seq * targets, int lineno, int col_offset, PyArena
398 col_offset, PyArena *arena);
401 lineno, int col_offset, PyArena *arena);
[all …]
Dpyarena.h11 typedef struct _arena PyArena; typedef
35 PyAPI_FUNC(PyArena *) PyArena_New(void);
36 PyAPI_FUNC(void) PyArena_Free(PyArena *);
50 PyAPI_FUNC(void *) PyArena_Malloc(PyArena *, size_t size);
56 PyAPI_FUNC(int) PyArena_AddPyObject(PyArena *, PyObject *);
Dasdl.h30 asdl_seq *asdl_seq_new(int size, PyArena *arena);
31 asdl_int_seq *asdl_int_seq_new(int size, PyArena *arena);
Dast.h8 const char *, PyArena *);
Dcompile.h33 PyCompilerFlags *, PyArena *);
Dpythonrun.h44 PyArena *);
48 PyArena *);
/external/python/cpython3/Include/
DPython-ast.h461 mod_ty _Py_Module(asdl_seq * body, asdl_seq * type_ignores, PyArena *arena);
463 mod_ty _Py_Interactive(asdl_seq * body, PyArena *arena);
465 mod_ty _Py_Expression(expr_ty body, PyArena *arena);
467 mod_ty _Py_FunctionType(asdl_seq * argtypes, expr_ty returns, PyArena *arena);
472 end_lineno, int end_col_offset, PyArena *arena);
477 int end_lineno, int end_col_offset, PyArena
483 PyArena *arena);
486 int end_col_offset, PyArena *arena);
489 end_lineno, int end_col_offset, PyArena *arena);
493 PyArena *arena);
[all …]
Dpyarena.h12 typedef struct _arena PyArena; typedef
36 PyAPI_FUNC(PyArena *) PyArena_New(void);
37 PyAPI_FUNC(void) PyArena_Free(PyArena *);
51 PyAPI_FUNC(void *) PyArena_Malloc(PyArena *, size_t size);
57 PyAPI_FUNC(int) PyArena_AddPyObject(PyArena *, PyObject *);
Dcompile.h71 PyArena *arena);
77 PyArena *arena);
99 PyAPI_FUNC(int) _PyAST_Optimize(struct _mod *, PyArena *arena, _PyASTOptimizeState *state);
Dast.h16 PyArena *arena);
21 PyArena *arena);
Dasdl.h28 asdl_seq *_Py_asdl_seq_new(Py_ssize_t size, PyArena *arena);
29 asdl_int_seq *_Py_asdl_int_seq_new(Py_ssize_t size, PyArena *arena);
Dpythonrun.h40 PyArena *arena);
46 PyArena *arena);
56 PyArena *arena);
66 PyArena *arena);
/external/python/cpython2/Python/
Dpyarena.c130 PyArena *
133 PyArena* arena = (PyArena *)malloc(sizeof(PyArena)); in PyArena_New()
135 return (PyArena*)PyErr_NoMemory(); in PyArena_New()
141 return (PyArena*)PyErr_NoMemory(); in PyArena_New()
147 return (PyArena*)PyErr_NoMemory(); in PyArena_New()
160 PyArena_Free(PyArena *arena) in PyArena_Free()
183 PyArena_Malloc(PyArena *arena, size_t size) in PyArena_Malloc()
206 PyArena_AddPyObject(PyArena *arena, PyObject *obj) in PyArena_AddPyObject()
DPython-ast.c586 static int obj2ast_object(PyObject* obj, PyObject** out, PyArena* arena) in obj2ast_object()
597 static int obj2ast_identifier(PyObject* obj, PyObject** out, PyArena* arena) in obj2ast_identifier()
607 static int obj2ast_string(PyObject* obj, PyObject** out, PyArena* arena) in obj2ast_string()
617 static int obj2ast_int(PyObject* obj, int* out, PyArena* arena) in obj2ast_int()
636 static int obj2ast_bool(PyObject* obj, bool* out, PyArena* arena) in obj2ast_bool()
969 static int obj2ast_mod(PyObject* obj, mod_ty* out, PyArena* arena);
970 static int obj2ast_stmt(PyObject* obj, stmt_ty* out, PyArena* arena);
971 static int obj2ast_expr(PyObject* obj, expr_ty* out, PyArena* arena);
972 static int obj2ast_expr_context(PyObject* obj, expr_context_ty* out, PyArena*
974 static int obj2ast_slice(PyObject* obj, slice_ty* out, PyArena* arena);
[all …]
Dasdl.c5 asdl_seq_new(int size, PyArena *arena) in asdl_seq_new()
36 asdl_int_seq_new(int size, PyArena *arena) in asdl_int_seq_new()
Dpythonrun.c52 PyCompilerFlags *, PyArena *);
820 PyArena *arena; in PyRun_InteractiveOneFlags()
1342 PyArena *arena = PyArena_New(); in PyRun_StringFlags()
1359 PyArena *arena = PyArena_New(); in PyRun_FileExFlags()
1378 PyCompilerFlags *flags, PyArena *arena) in run_mod()
1428 PyArena *arena = PyArena_New(); in Py_CompileStringFlags()
1453 PyArena *arena = PyArena_New(); in Py_SymtableString()
1472 PyCompilerFlags *flags, PyArena *arena) in PyParser_ASTFromString()
1501 PyArena *arena) in PyParser_ASTFromFile()
/external/python/cpython3/Python/
Dpyarena.c127 PyArena *
130 PyArena* arena = (PyArena *)PyMem_Malloc(sizeof(PyArena)); in PyArena_New()
132 return (PyArena*)PyErr_NoMemory(); in PyArena_New()
138 return (PyArena*)PyErr_NoMemory(); in PyArena_New()
144 return (PyArena*)PyErr_NoMemory(); in PyArena_New()
157 PyArena_Free(PyArena *arena) in PyArena_Free()
180 PyArena_Malloc(PyArena *arena, size_t size) in PyArena_Malloc()
203 PyArena_AddPyObject(PyArena *arena, PyObject *obj) in PyArena_AddPyObject()
Dast_opt.c8 make_const(expr_ty node, PyObject *val, PyArena *arena) in make_const()
39 fold_unaryop(expr_ty node, PyArena *arena, _PyASTOptimizeState *state) in fold_unaryop()
216 fold_binop(expr_ty node, PyArena *arena, _PyASTOptimizeState *state) in fold_binop()
298 fold_tuple(expr_ty node, PyArena *arena, _PyASTOptimizeState *state) in fold_tuple()
310 fold_subscr(expr_ty node, PyArena *arena, _PyASTOptimizeState *state) in fold_subscr()
335 fold_iter(expr_ty arg, PyArena *arena, _PyASTOptimizeState *state) in fold_iter()
368 fold_compare(expr_ty node, PyArena *arena, _PyASTOptimizeState *state) in fold_compare()
389 static int astfold_mod(mod_ty node_, PyArena *ctx_, _PyASTOptimizeState *state);
390 static int astfold_stmt(stmt_ty node_, PyArena *ctx_, _PyASTOptimizeState *state);
391 static int astfold_expr(expr_ty node_, PyArena *ctx_, _PyASTOptimizeState *state);
[all …]
Dasdl.c5 _Py_asdl_seq_new(Py_ssize_t size, PyArena *arena) in _Py_asdl_seq_new()
36 _Py_asdl_int_seq_new(Py_ssize_t size, PyArena *arena) in _Py_asdl_int_seq_new()
DPython-ast.c1128 static int obj2ast_object(astmodulestate *Py_UNUSED(state), PyObject* obj, PyObject** out, PyArena*… in obj2ast_object()
1143 …t obj2ast_constant(astmodulestate *Py_UNUSED(state), PyObject* obj, PyObject** out, PyArena* arena) in obj2ast_constant()
1154 static int obj2ast_identifier(astmodulestate *state, PyObject* obj, PyObject** out, PyArena* arena) in obj2ast_identifier()
1163 static int obj2ast_string(astmodulestate *state, PyObject* obj, PyObject** out, PyArena* arena) in obj2ast_string()
1172 static int obj2ast_int(astmodulestate* Py_UNUSED(state), PyObject* obj, int* out, PyArena* arena) in obj2ast_int()
1882 PyArena* arena);
1884 PyArena* arena);
1886 PyArena* arena);
1888 expr_context_ty* out, PyArena* arena);
1890 PyArena* arena);
[all …]
Dpythonrun.c66 PyCompilerFlags *, PyArena *);
185 PyArena *arena; in PyRun_InteractiveOneObjectEx()
1059 PyArena *arena; in PyRun_StringFlags()
1090 PyArena *arena = NULL; in PyRun_FileExFlags()
1187 PyCompilerFlags *flags, PyArena *arena) in run_mod()
1254 PyArena *arena = PyArena_New(); in Py_CompileStringObject()
1361 PyArena *arena; in _Py_SymtableStringObjectFlags()
1399 PyCompilerFlags *flags, PyArena *arena) in PyParser_ASTFromStringObject()
1429 PyCompilerFlags *flags, PyArena *arena) in PyParser_ASTFromString()
1445 PyArena *arena) in PyParser_ASTFromFileObject()
[all …]
/external/python/cpython3/Include/internal/
Dpegen_interface.h19 PyArena *arena);
25 PyArena *arena);
35 PyArena *arena);
40 PyArena *arena);
/external/python/cpython3/Parser/pegen/
Dpeg_api.c8 PyCompilerFlags *flags, PyArena *arena) in PyPegen_ASTFromString()
21 PyCompilerFlags *flags, PyArena *arena) in PyPegen_ASTFromStringObject()
32 PyPegen_ASTFromFilename(const char *filename, int mode, PyCompilerFlags *flags, PyArena *arena) in PyPegen_ASTFromFilename()
47 PyCompilerFlags *flags, int *errcode, PyArena *arena) in PyPegen_ASTFromFileObject()
Dpegen.h61 PyArena *arena;
226 Parser *_PyPegen_Parser_New(struct tok_state *, int, int, int, int *, PyArena *);
229 … const char *, const char *, PyCompilerFlags *, int *, PyArena *);
231 mod_ty _PyPegen_run_parser_from_file(const char *, int, PyObject *, PyCompilerFlags *, PyArena *);
232 mod_ty _PyPegen_run_parser_from_string(const char *, int, PyObject *, PyCompilerFlags *, PyArena *);
263 int end_col_offset, PyArena *arena);
/external/python/cpython3/Tools/peg_generator/peg_extension/
Dpeg_extension.c4 _build_return_object(mod_ty module, int mode, PyObject *filename_ob, PyArena *arena) in _build_return_object()
33 PyArena *arena = PyArena_New(); in parse_file()
72 PyArena *arena = PyArena_New(); in parse_string()

12