Home
last modified time | relevance | path

Searched refs:arena (Results 1 – 24 of 24) sorted by relevance

/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Python/
Dpyarena.c133 PyArena* arena = (PyArena *)malloc(sizeof(PyArena)); in PyArena_New() local
134 if (!arena) in PyArena_New()
137 arena->a_head = block_new(DEFAULT_BLOCK_SIZE); in PyArena_New()
138 arena->a_cur = arena->a_head; in PyArena_New()
139 if (!arena->a_head) { in PyArena_New()
140 free((void *)arena); in PyArena_New()
143 arena->a_objects = PyList_New(0); in PyArena_New()
144 if (!arena->a_objects) { in PyArena_New()
145 block_free(arena->a_head); in PyArena_New()
146 free((void *)arena); in PyArena_New()
[all …]
DPython-ast.c586 static int obj2ast_object(PyObject* obj, PyObject** out, PyArena* arena) in obj2ast_object() argument
591 PyArena_AddPyObject(arena, obj); in obj2ast_object()
600 static int obj2ast_int(PyObject* obj, int* out, PyArena* arena) in obj2ast_int() argument
619 static int obj2ast_bool(PyObject* obj, bool* out, PyArena* arena) in obj2ast_bool() argument
952 static int obj2ast_mod(PyObject* obj, mod_ty* out, PyArena* arena);
953 static int obj2ast_stmt(PyObject* obj, stmt_ty* out, PyArena* arena);
954 static int obj2ast_expr(PyObject* obj, expr_ty* out, PyArena* arena);
956 arena);
957 static int obj2ast_slice(PyObject* obj, slice_ty* out, PyArena* arena);
958 static int obj2ast_boolop(PyObject* obj, boolop_ty* out, PyArena* arena);
[all …]
Dasdl.c5 asdl_seq_new(int size, PyArena *arena) in asdl_seq_new() argument
25 seq = (asdl_seq *)PyArena_Malloc(arena, n); in asdl_seq_new()
36 asdl_int_seq_new(int size, PyArena *arena) in asdl_int_seq_new() argument
56 seq = (asdl_int_seq *)PyArena_Malloc(arena, n); in asdl_int_seq_new()
Dpythonrun.c799 PyArena *arena; in PyRun_InteractiveOneFlags() local
819 arena = PyArena_New(); in PyRun_InteractiveOneFlags()
820 if (arena == NULL) { in PyRun_InteractiveOneFlags()
827 flags, &errcode, arena); in PyRun_InteractiveOneFlags()
831 PyArena_Free(arena); in PyRun_InteractiveOneFlags()
841 PyArena_Free(arena); in PyRun_InteractiveOneFlags()
845 v = run_mod(mod, filename, d, d, flags, arena); in PyRun_InteractiveOneFlags()
846 PyArena_Free(arena); in PyRun_InteractiveOneFlags()
1303 PyArena *arena = PyArena_New(); in PyRun_StringFlags() local
1304 if (arena == NULL) in PyRun_StringFlags()
[all …]
Dast.c51 new_identifier(const char* n, PyArena *arena) { in new_identifier() argument
54 PyArena_AddPyObject(arena, id); in new_identifier()
217 PyArena *arena) in PyAST_FromNode() argument
238 c.c_arena = arena; in PyAST_FromNode()
244 stmts = asdl_seq_new(num_stmts(n), arena); in PyAST_FromNode()
270 return Module(stmts, arena); in PyAST_FromNode()
278 return Expression(testlist_ast, arena); in PyAST_FromNode()
282 stmts = asdl_seq_new(1, arena); in PyAST_FromNode()
286 arena)); in PyAST_FromNode()
289 return Interactive(stmts, arena); in PyAST_FromNode()
[all …]
Dbltinmodule.c518 PyArena *arena; in builtin_compile() local
521 arena = PyArena_New(); in builtin_compile()
522 mod = PyAST_obj2mod(cmd, arena, mode); in builtin_compile()
524 PyArena_Free(arena); in builtin_compile()
528 &cf, arena); in builtin_compile()
529 PyArena_Free(arena); in builtin_compile()
Dimport.c823 PyArena *arena = PyArena_New(); in parse_source_module() local
824 if (arena == NULL) in parse_source_module()
830 NULL, arena); in parse_source_module()
832 co = PyAST_Compile(mod, pathname, NULL, arena); in parse_source_module()
834 PyArena_Free(arena); in parse_source_module()
Dcompile.c252 PyArena *arena) in PyAST_Compile() argument
268 c.c_arena = arena; in PyAST_Compile()
302 PyArena *arena = PyArena_New(); in PyNode_Compile() local
303 if (!arena) in PyNode_Compile()
305 mod = PyAST_FromNode(n, NULL, filename, arena); in PyNode_Compile()
307 co = PyAST_Compile(mod, filename, NULL, arena); in PyNode_Compile()
308 PyArena_Free(arena); in PyNode_Compile()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Python/
Dpyarena.c133 PyArena* arena = (PyArena *)malloc(sizeof(PyArena)); in PyArena_New() local
134 if (!arena) in PyArena_New()
137 arena->a_head = block_new(DEFAULT_BLOCK_SIZE); in PyArena_New()
138 arena->a_cur = arena->a_head; in PyArena_New()
139 if (!arena->a_head) { in PyArena_New()
140 free((void *)arena); in PyArena_New()
143 arena->a_objects = PyList_New(0); in PyArena_New()
144 if (!arena->a_objects) { in PyArena_New()
145 block_free(arena->a_head); in PyArena_New()
146 free((void *)arena); in PyArena_New()
[all …]
DPython-ast.c586 static int obj2ast_object(PyObject* obj, PyObject** out, PyArena* arena) in obj2ast_object() argument
591 PyArena_AddPyObject(arena, obj); in obj2ast_object()
597 static int obj2ast_identifier(PyObject* obj, PyObject** out, PyArena* arena) in obj2ast_identifier() argument
604 return obj2ast_object(obj, out, arena); in obj2ast_identifier()
607 static int obj2ast_string(PyObject* obj, PyObject** out, PyArena* arena) in obj2ast_string() argument
614 return obj2ast_object(obj, out, arena); in obj2ast_string()
617 static int obj2ast_int(PyObject* obj, int* out, PyArena* arena) in obj2ast_int() argument
636 static int obj2ast_bool(PyObject* obj, bool* out, PyArena* arena) in obj2ast_bool() argument
969 static int obj2ast_mod(PyObject* obj, mod_ty* out, PyArena* arena);
970 static int obj2ast_stmt(PyObject* obj, stmt_ty* out, PyArena* arena);
[all …]
Dasdl.c5 asdl_seq_new(int size, PyArena *arena) in asdl_seq_new() argument
25 seq = (asdl_seq *)PyArena_Malloc(arena, n); in asdl_seq_new()
36 asdl_int_seq_new(int size, PyArena *arena) in asdl_int_seq_new() argument
56 seq = (asdl_int_seq *)PyArena_Malloc(arena, n); in asdl_int_seq_new()
Dpythonrun.c812 PyArena *arena; in PyRun_InteractiveOneFlags() local
832 arena = PyArena_New(); in PyRun_InteractiveOneFlags()
833 if (arena == NULL) { in PyRun_InteractiveOneFlags()
840 flags, &errcode, arena); in PyRun_InteractiveOneFlags()
844 PyArena_Free(arena); in PyRun_InteractiveOneFlags()
854 PyArena_Free(arena); in PyRun_InteractiveOneFlags()
858 v = run_mod(mod, filename, d, d, flags, arena); in PyRun_InteractiveOneFlags()
859 PyArena_Free(arena); in PyRun_InteractiveOneFlags()
1328 PyArena *arena = PyArena_New(); in PyRun_StringFlags() local
1329 if (arena == NULL) in PyRun_StringFlags()
[all …]
Dast.c51 new_identifier(const char* n, PyArena *arena) { in new_identifier() argument
54 PyArena_AddPyObject(arena, id); in new_identifier()
217 PyArena *arena) in PyAST_FromNode() argument
238 c.c_arena = arena; in PyAST_FromNode()
244 stmts = asdl_seq_new(num_stmts(n), arena); in PyAST_FromNode()
270 return Module(stmts, arena); in PyAST_FromNode()
278 return Expression(testlist_ast, arena); in PyAST_FromNode()
282 stmts = asdl_seq_new(1, arena); in PyAST_FromNode()
286 arena)); in PyAST_FromNode()
289 return Interactive(stmts, arena); in PyAST_FromNode()
[all …]
Dbltinmodule.c524 PyArena *arena; in builtin_compile() local
527 arena = PyArena_New(); in builtin_compile()
528 if (arena == NULL) in builtin_compile()
530 mod = PyAST_obj2mod(cmd, arena, mode); in builtin_compile()
532 PyArena_Free(arena); in builtin_compile()
536 &cf, arena); in builtin_compile()
537 PyArena_Free(arena); in builtin_compile()
Dimport.c855 PyArena *arena = PyArena_New(); in parse_source_module() local
856 if (arena == NULL) in parse_source_module()
862 NULL, arena); in parse_source_module()
864 co = PyAST_Compile(mod, pathname, NULL, arena); in parse_source_module()
866 PyArena_Free(arena); in parse_source_module()
Dcompile.c255 PyArena *arena) in PyAST_Compile() argument
271 c.c_arena = arena; in PyAST_Compile()
305 PyArena *arena = PyArena_New(); in PyNode_Compile() local
306 if (!arena) in PyNode_Compile()
308 mod = PyAST_FromNode(n, NULL, filename, arena); in PyNode_Compile()
310 co = PyAST_Compile(mod, filename, NULL, arena); in PyNode_Compile()
311 PyArena_Free(arena); in PyNode_Compile()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/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);
395 *arena);
398 col_offset, PyArena *arena);
401 lineno, int col_offset, PyArena *arena);
[all …]
Dasdl.h30 asdl_seq *asdl_seq_new(int size, PyArena *arena);
31 asdl_int_seq *asdl_int_seq_new(int size, PyArena *arena);
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/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);
395 *arena);
398 col_offset, PyArena *arena);
401 lineno, int col_offset, PyArena *arena);
[all …]
Dasdl.h30 asdl_seq *asdl_seq_new(int size, PyArena *arena);
31 asdl_int_seq *asdl_int_seq_new(int size, PyArena *arena);
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/
Dtest_multiprocessing.py1616 for arena, start, stop in L:
1617 all.append((heap._arenas.index(arena), start, stop,
1619 for arena, start, stop in heap._allocated_blocks:
1620 all.append((heap._arenas.index(arena), start, stop,
1627 (arena, start, stop) = all[i][:3]
1629 self.assertTrue((arena != narena and nstart == 0) or
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Modules/
Dparsermodule.c407 PyArena* arena; in parser_compilest() local
422 arena = PyArena_New(); in parser_compilest()
423 if (arena) { in parser_compilest()
424 mod = PyAST_FromNode(self->st_node, &(self->st_flags), str, arena); in parser_compilest()
426 res = (PyObject *)PyAST_Compile(mod, str, &(self->st_flags), arena); in parser_compilest()
428 PyArena_Free(arena); in parser_compilest()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/PyMod-2.7.2/Python/
Dimport.c823 PyArena *arena = PyArena_New(); in parse_source_module() local
824 if (arena == NULL) in parse_source_module()
830 NULL, arena); in parse_source_module()
832 co = PyAST_Compile(mod, pathname, NULL, arena); in parse_source_module()
834 PyArena_Free(arena); in parse_source_module()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Modules/
Dparsermodule.c446 PyArena* arena; in parser_compilest() local
461 arena = PyArena_New(); in parser_compilest()
462 if (arena) { in parser_compilest()
463 mod = PyAST_FromNode(self->st_node, &(self->st_flags), str, arena); in parser_compilest()
465 res = (PyObject *)PyAST_Compile(mod, str, &(self->st_flags), arena); in parser_compilest()
467 PyArena_Free(arena); in parser_compilest()