Home
last modified time | relevance | path

Searched refs:c_arena (Results 1 – 4 of 4) sorted by relevance

/external/python/cpython2/Python/
Dast.c22 PyArena *c_arena; /* arena for allocating memeory */ member
58 #define NEW_IDENTIFIER(n) new_identifier(STR(n), c->c_arena)
238 c.c_arena = arena; in PyAST_FromNode()
590 seq = asdl_seq_new((NCH(n) + 1) / 2, c->c_arena); in seq_for_testlist()
612 asdl_seq *args = asdl_seq_new(len, c->c_arena); in compiler_complex_args()
635 c->c_arena); in compiler_complex_args()
653 result = Tuple(args, Store, LINENO(n), n->n_col_offset, c->c_arena); in compiler_complex_args()
676 return arguments(NULL, NULL, NULL, NULL, c->c_arena); in ast_for_arguments()
689 args = (n_args ? asdl_seq_new(n_args, c->c_arena) : NULL); in ast_for_arguments()
692 defaults = (n_defaults ? asdl_seq_new(n_defaults, c->c_arena) : NULL); in ast_for_arguments()
[all …]
Dcompile.c146 PyArena *c_arena; /* pointer to memory allocation arena */ member
271 c.c_arena = arena; in PyAST_Compile()
3111 AugLoad, e->lineno, e->col_offset, c->c_arena); in compiler_augassign()
3122 AugLoad, e->lineno, e->col_offset, c->c_arena); in compiler_augassign()
/external/python/cpython3/Python/
Dast.c589 PyArena *c_arena; /* Arena for allocating memory. */ member
667 if (PyArena_AddPyObject(c->c_arena, id) < 0) { in new_identifier()
778 c.c_arena = arena; in PyAST_FromNodeObject()
1197 seq = _Py_asdl_seq_new((NCH(n) + 1) / 2, c->c_arena); in seq_for_testlist()
1237 ret = arg(name, annotation, LINENO(n), n->n_col_offset, c->c_arena); in ast_for_arg()
1296 c->c_arena); in handle_keywordonly_args()
1347 return arguments(NULL, NULL, NULL, NULL, NULL, NULL, c->c_arena); in ast_for_arguments()
1379 posargs = (nposargs ? _Py_asdl_seq_new(nposargs, c->c_arena) : NULL); in ast_for_arguments()
1383 _Py_asdl_seq_new(nkwonlyargs, c->c_arena) : NULL); in ast_for_arguments()
1387 _Py_asdl_seq_new(nposdefaults, c->c_arena) : NULL); in ast_for_arguments()
[all …]
Dcompile.c163 PyArena *c_arena; /* pointer to memory allocation arena */ member
323 c.c_arena = arena; in PyAST_CompileObject()
4580 AugLoad, e->lineno, e->col_offset, c->c_arena); in compiler_augassign()
4591 AugLoad, e->lineno, e->col_offset, c->c_arena); in compiler_augassign()