Home
last modified time | relevance | path

Searched refs:const_cache (Results 1 – 5 of 5) sorted by relevance

/external/python/cpython3/Python/
Dassemble.c424 int first_lineno, PyObject *const_cache) in assemble_emit() argument
438 RETURN_IF_ERROR(_PyCompile_ConstCacheMergeOne(const_cache, &a->a_except_table)); in assemble_emit()
441 RETURN_IF_ERROR(_PyCompile_ConstCacheMergeOne(const_cache, &a->a_linetable)); in assemble_emit()
444 RETURN_IF_ERROR(_PyCompile_ConstCacheMergeOne(const_cache, &a->a_bytecode)); in assemble_emit()
543 makecode(_PyCompile_CodeUnitMetadata *umd, struct assembler *a, PyObject *const_cache, in makecode() argument
556 if (_PyCompile_ConstCacheMergeOne(const_cache, &names) < 0) { in makecode()
564 if (_PyCompile_ConstCacheMergeOne(const_cache, &consts) < 0) { in makecode()
618 if (_PyCompile_ConstCacheMergeOne(const_cache, &localsplusnames) < 0) { in makecode()
736 _PyAssemble_MakeCodeObject(_PyCompile_CodeUnitMetadata *umd, PyObject *const_cache, in _PyAssemble_MakeCodeObject() argument
752 int res = assemble_emit(&a, instrs, umd->u_firstlineno, const_cache); in _PyAssemble_MakeCodeObject()
[all …]
Dflowgraph.c1261 add_const(PyObject *newconst, PyObject *consts, PyObject *const_cache) in add_const() argument
1263 if (_PyCompile_ConstCacheMergeOne(const_cache, &newconst) < 0) { in add_const()
1296 fold_tuple_on_constants(PyObject *const_cache, in fold_tuple_on_constants() argument
1301 assert(PyDict_CheckExact(const_cache)); in fold_tuple_on_constants()
1326 int index = add_const(newconst, consts, const_cache); in fold_tuple_on_constants()
1529 basicblock_optimize_load_const(PyObject *const_cache, basicblock *bb, PyObject *consts) in basicblock_optimize_load_const() argument
1531 assert(PyDict_CheckExact(const_cache)); in basicblock_optimize_load_const()
1637 int index = add_const(cnt, consts, const_cache); in basicblock_optimize_load_const()
1651 optimize_load_const(PyObject *const_cache, cfg_builder *g, PyObject *consts) { in optimize_load_const() argument
1653 RETURN_IF_ERROR(basicblock_optimize_load_const(const_cache, b, consts)); in optimize_load_const()
[all …]
Dcompile.c868 merge_consts_recursive(PyObject *const_cache, PyObject *o) in merge_consts_recursive() argument
870 assert(PyDict_CheckExact(const_cache)); in merge_consts_recursive()
883 int res = PyDict_SetDefaultRef(const_cache, key, key, &t); in merge_consts_recursive()
899 PyObject *u = merge_consts_recursive(const_cache, item); in merge_consts_recursive()
941 PyObject *k = merge_consts_recursive(const_cache, item); in merge_consts_recursive()
976 compiler_add_const(PyObject *const_cache, struct compiler_unit *u, PyObject *o) in compiler_add_const() argument
978 assert(PyDict_CheckExact(const_cache)); in compiler_add_const()
979 PyObject *key = merge_consts_recursive(const_cache, o); in compiler_add_const()
990 compiler_addop_load_const(PyObject *const_cache, struct compiler_unit *u, location loc, PyObject *o) in compiler_addop_load_const() argument
992 Py_ssize_t arg = compiler_add_const(const_cache, u, o); in compiler_addop_load_const()
[all …]
/external/python/cpython3/Include/internal/
Dpycore_flowgraph.h24 int _PyCfg_OptimizeCodeUnit(struct _PyCfgBuilder *g, PyObject *consts, PyObject *const_cache,
33 _PyAssemble_MakeCodeObject(_PyCompile_CodeUnitMetadata *u, PyObject *const_cache,
Dpycore_compile.h75 int _PyCompile_ConstCacheMergeOne(PyObject *const_cache, PyObject **obj);