Home
last modified time | relevance | path

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

/third_party/python/Include/internal/
Dpycore_ast.h60 asdl_mod_seq *_Py_asdl_mod_seq_new(Py_ssize_t size, PyArena *arena);
67 asdl_stmt_seq *_Py_asdl_stmt_seq_new(Py_ssize_t size, PyArena *arena);
74 asdl_expr_seq *_Py_asdl_expr_seq_new(Py_ssize_t size, PyArena *arena);
81 asdl_comprehension_seq *_Py_asdl_comprehension_seq_new(Py_ssize_t size, PyArena
89 asdl_excepthandler_seq *_Py_asdl_excepthandler_seq_new(Py_ssize_t size, PyArena
97 asdl_arguments_seq *_Py_asdl_arguments_seq_new(Py_ssize_t size, PyArena *arena);
104 asdl_arg_seq *_Py_asdl_arg_seq_new(Py_ssize_t size, PyArena *arena);
111 asdl_keyword_seq *_Py_asdl_keyword_seq_new(Py_ssize_t size, PyArena *arena);
118 asdl_alias_seq *_Py_asdl_alias_seq_new(Py_ssize_t size, PyArena *arena);
125 asdl_withitem_seq *_Py_asdl_withitem_seq_new(Py_ssize_t size, PyArena *arena);
[all …]
Dpycore_pyarena.h14 typedef struct _arena PyArena; typedef
38 PyAPI_FUNC(PyArena*) _PyArena_New(void);
39 PyAPI_FUNC(void) _PyArena_Free(PyArena *);
53 PyAPI_FUNC(void*) _PyArena_Malloc(PyArena *, size_t size);
59 PyAPI_FUNC(int) _PyArena_AddPyObject(PyArena *, PyObject *);
Dpycore_asdl.h47 asdl_generic_seq *_Py_asdl_generic_seq_new(Py_ssize_t size, PyArena *arena);
48 asdl_identifier_seq *_Py_asdl_identifier_seq_new(Py_ssize_t size, PyArena *arena);
49 asdl_int_seq *_Py_asdl_int_seq_new(Py_ssize_t size, PyArena *arena);
53 asdl_ ## NAME ## _seq *_Py_asdl_ ## NAME ## _seq_new(Py_ssize_t size, PyArena *arena) \
Dpycore_parser.h16 PyArena *arena);
26 PyArena *arena);
/third_party/python/Python/
Dpyarena.c128 PyArena *
131 PyArena* arena = (PyArena *)PyMem_Malloc(sizeof(PyArena)); in _PyArena_New()
133 return (PyArena*)PyErr_NoMemory(); in _PyArena_New()
139 return (PyArena*)PyErr_NoMemory(); in _PyArena_New()
145 return (PyArena*)PyErr_NoMemory(); in _PyArena_New()
158 _PyArena_Free(PyArena *arena) in _PyArena_Free()
181 _PyArena_Malloc(PyArena *arena, size_t size) in _PyArena_Malloc()
204 _PyArena_AddPyObject(PyArena *arena, PyObject *obj) in _PyArena_AddPyObject()
Dast_opt.c9 make_const(expr_ty node, PyObject *val, PyArena *arena) in make_const()
42 fold_unaryop(expr_ty node, PyArena *arena, _PyASTOptimizeState *state) in fold_unaryop()
228 fold_binop(expr_ty node, PyArena *arena, _PyASTOptimizeState *state) in fold_binop()
313 fold_tuple(expr_ty node, PyArena *arena, _PyASTOptimizeState *state) in fold_tuple()
325 fold_subscr(expr_ty node, PyArena *arena, _PyASTOptimizeState *state) in fold_subscr()
350 fold_iter(expr_ty arg, PyArena *arena, _PyASTOptimizeState *state) in fold_iter()
383 fold_compare(expr_ty node, PyArena *arena, _PyASTOptimizeState *state) in fold_compare()
404 static int astfold_mod(mod_ty node_, PyArena *ctx_, _PyASTOptimizeState *state);
405 static int astfold_stmt(stmt_ty node_, PyArena *ctx_, _PyASTOptimizeState *state);
406 static int astfold_expr(expr_ty node_, PyArena *ctx_, _PyASTOptimizeState *state);
[all …]
DPython-ast.c1004 …t obj2ast_object(struct ast_state *Py_UNUSED(state), PyObject* obj, PyObject** out, PyArena* arena) in obj2ast_object()
1019 …obj2ast_constant(struct ast_state *Py_UNUSED(state), PyObject* obj, PyObject** out, PyArena* arena) in obj2ast_constant()
1030 static int obj2ast_identifier(struct ast_state *state, PyObject* obj, PyObject** out, PyArena* aren… in obj2ast_identifier()
1039 static int obj2ast_string(struct ast_state *state, PyObject* obj, PyObject** out, PyArena* arena) in obj2ast_string()
1048 static int obj2ast_int(struct ast_state* Py_UNUSED(state), PyObject* obj, int* out, PyArena* arena) in obj2ast_int()
1846 PyArena* arena);
1848 PyArena* arena);
1850 PyArena* arena);
1852 expr_context_ty* out, PyArena* arena);
1854 out, PyArena* arena);
[all …]
Dpythonrun.c59 PyCompilerFlags *, PyArena *);
201 PyArena *arena; in PyRun_InteractiveOneObjectEx()
1169 PyArena *arena; in PyRun_StringFlags()
1193 PyArena *arena = _PyArena_New(); in pyrun_file()
1300 PyCompilerFlags *flags, PyArena *arena) in run_mod()
1366 PyArena *arena = _PyArena_New(); in Py_CompileStringObject()
Dbltinmodule.c818 PyArena *arena; in builtin_compile_impl()
Dsymtable.c2140 PyArena *arena; in _Py_SymtableStringObjectFlags()
Dcompile.c231 PyArena *c_arena; /* pointer to memory allocation arena */
404 int optimize, PyArena *arena) in _PyAST_Compile()
/third_party/python/Parser/
Dpeg_api.c8 PyCompilerFlags *flags, PyArena *arena) in _PyParser_ASTFromString()
21 PyCompilerFlags *flags, int *errcode, PyArena *arena) in _PyParser_ASTFromFile()
Dpegen.h61 PyArena *arena;
250 Parser *_PyPegen_Parser_New(struct tok_state *, int, int, int, int *, PyArena *);
253 … const char *, const char *, PyCompilerFlags *, int *, PyArena *);
255 mod_ty _PyPegen_run_parser_from_string(const char *, int, PyObject *, PyCompilerFlags *, PyArena *);
263 alias_ty _PyPegen_alias_for_star(Parser *, int, int, int, int, PyArena *);
289 int end_col_offset, PyArena *arena);
Dpegen.c1202 int feature_version, int *errcode, PyArena *arena) in _PyPegen_Parser_New()
1395 PyCompilerFlags *flags, int *errcode, PyArena *arena) in _PyPegen_run_parser_from_file_pointer()
1433 PyCompilerFlags *flags, PyArena *arena) in _PyPegen_run_parser_from_string()
1666 int end_col_offset, PyArena *arena) { in _PyPegen_alias_for_star()
2576 int end_col_offset, PyArena *arena) { in _PyPegen_collect_call_seqs()
Dstring_parser.c973 ExprList_Finish(ExprList *l, PyArena *arena) in ExprList_Finish()
/third_party/python/Tools/peg_generator/peg_extension/
Dpeg_extension.c6 _build_return_object(mod_ty module, int mode, PyObject *filename_ob, PyArena *arena) in _build_return_object()
35 PyArena *arena = _PyArena_New(); in parse_file()
83 PyArena *arena = _PyArena_New(); in parse_string()