/src/cpython/Include/cpython/listobject.h
Line | Count | Source |
1 | | #ifndef Py_CPYTHON_LISTOBJECT_H |
2 | | # error "this header file must not be included directly" |
3 | | #endif |
4 | | |
5 | | typedef struct { |
6 | | PyObject_VAR_HEAD |
7 | | /* Vector of pointers to list elements. list[0] is ob_item[0], etc. */ |
8 | | PyObject **ob_item; |
9 | | |
10 | | /* ob_item contains space for 'allocated' elements. The number |
11 | | * currently in use is ob_size. |
12 | | * Invariants: |
13 | | * 0 <= ob_size <= allocated |
14 | | * len(list) == ob_size |
15 | | * ob_item == NULL implies ob_size == allocated == 0 |
16 | | * list.sort() temporarily sets allocated to -1 to detect mutations. |
17 | | * |
18 | | * Items must normally not be NULL, except during construction when |
19 | | * the list is not yet visible outside the function that builds it. |
20 | | */ |
21 | | Py_ssize_t allocated; |
22 | | } PyListObject; |
23 | | |
24 | | /* Cast argument to PyListObject* type. */ |
25 | | #define _PyList_CAST(op) \ |
26 | 1.47G | (assert(PyList_Check(op)), _Py_CAST(PyListObject*, (op))) |
27 | | |
28 | | // Macros and static inline functions, trading safety for speed |
29 | | |
30 | 770M | static inline Py_ssize_t PyList_GET_SIZE(PyObject *op) { |
31 | 770M | PyListObject *list = _PyList_CAST(op); |
32 | | #ifdef Py_GIL_DISABLED |
33 | | return _Py_atomic_load_ssize_relaxed(&(_PyVarObject_CAST(list)->ob_size)); |
34 | | #else |
35 | 770M | return Py_SIZE(list); |
36 | 770M | #endif |
37 | 770M | } bytesobject.c:PyList_GET_SIZE Line | Count | Source | 30 | 182k | static inline Py_ssize_t PyList_GET_SIZE(PyObject *op) { | 31 | 182k | PyListObject *list = _PyList_CAST(op); | 32 | | #ifdef Py_GIL_DISABLED | 33 | | return _Py_atomic_load_ssize_relaxed(&(_PyVarObject_CAST(list)->ob_size)); | 34 | | #else | 35 | 182k | return Py_SIZE(list); | 36 | 182k | #endif | 37 | 182k | } |
Unexecuted instantiation: call.c:PyList_GET_SIZE Unexecuted instantiation: exceptions.c:PyList_GET_SIZE Unexecuted instantiation: genericaliasobject.c:PyList_GET_SIZE Unexecuted instantiation: floatobject.c:PyList_GET_SIZE listobject.c:PyList_GET_SIZE Line | Count | Source | 30 | 124M | static inline Py_ssize_t PyList_GET_SIZE(PyObject *op) { | 31 | 124M | PyListObject *list = _PyList_CAST(op); | 32 | | #ifdef Py_GIL_DISABLED | 33 | | return _Py_atomic_load_ssize_relaxed(&(_PyVarObject_CAST(list)->ob_size)); | 34 | | #else | 35 | 124M | return Py_SIZE(list); | 36 | 124M | #endif | 37 | 124M | } |
Unexecuted instantiation: longobject.c:PyList_GET_SIZE Unexecuted instantiation: dictobject.c:PyList_GET_SIZE Unexecuted instantiation: memoryobject.c:PyList_GET_SIZE Unexecuted instantiation: moduleobject.c:PyList_GET_SIZE Line | Count | Source | 30 | 7.67M | static inline Py_ssize_t PyList_GET_SIZE(PyObject *op) { | 31 | 7.67M | PyListObject *list = _PyList_CAST(op); | 32 | | #ifdef Py_GIL_DISABLED | 33 | | return _Py_atomic_load_ssize_relaxed(&(_PyVarObject_CAST(list)->ob_size)); | 34 | | #else | 35 | 7.67M | return Py_SIZE(list); | 36 | 7.67M | #endif | 37 | 7.67M | } |
Unexecuted instantiation: obmalloc.c:PyList_GET_SIZE Unexecuted instantiation: picklebufobject.c:PyList_GET_SIZE Unexecuted instantiation: rangeobject.c:PyList_GET_SIZE Unexecuted instantiation: setobject.c:PyList_GET_SIZE Unexecuted instantiation: sliceobject.c:PyList_GET_SIZE Unexecuted instantiation: structseq.c:PyList_GET_SIZE Unexecuted instantiation: templateobject.c:PyList_GET_SIZE Unexecuted instantiation: tupleobject.c:PyList_GET_SIZE Unexecuted instantiation: typeobject.c:PyList_GET_SIZE Unexecuted instantiation: typevarobject.c:PyList_GET_SIZE unicodeobject.c:PyList_GET_SIZE Line | Count | Source | 30 | 19.7M | static inline Py_ssize_t PyList_GET_SIZE(PyObject *op) { | 31 | 19.7M | PyListObject *list = _PyList_CAST(op); | 32 | | #ifdef Py_GIL_DISABLED | 33 | | return _Py_atomic_load_ssize_relaxed(&(_PyVarObject_CAST(list)->ob_size)); | 34 | | #else | 35 | 19.7M | return Py_SIZE(list); | 36 | 19.7M | #endif | 37 | 19.7M | } |
Unexecuted instantiation: unicodectype.c:PyList_GET_SIZE unionobject.c:PyList_GET_SIZE Line | Count | Source | 30 | 421 | static inline Py_ssize_t PyList_GET_SIZE(PyObject *op) { | 31 | 421 | PyListObject *list = _PyList_CAST(op); | 32 | | #ifdef Py_GIL_DISABLED | 33 | | return _Py_atomic_load_ssize_relaxed(&(_PyVarObject_CAST(list)->ob_size)); | 34 | | #else | 35 | 421 | return Py_SIZE(list); | 36 | 421 | #endif | 37 | 421 | } |
Unexecuted instantiation: weakrefobject.c:PyList_GET_SIZE _warnings.c:PyList_GET_SIZE Line | Count | Source | 30 | 17.5k | static inline Py_ssize_t PyList_GET_SIZE(PyObject *op) { | 31 | 17.5k | PyListObject *list = _PyList_CAST(op); | 32 | | #ifdef Py_GIL_DISABLED | 33 | | return _Py_atomic_load_ssize_relaxed(&(_PyVarObject_CAST(list)->ob_size)); | 34 | | #else | 35 | 17.5k | return Py_SIZE(list); | 36 | 17.5k | #endif | 37 | 17.5k | } |
Unexecuted instantiation: bltinmodule.c:PyList_GET_SIZE Line | Count | Source | 30 | 617M | static inline Py_ssize_t PyList_GET_SIZE(PyObject *op) { | 31 | 617M | PyListObject *list = _PyList_CAST(op); | 32 | | #ifdef Py_GIL_DISABLED | 33 | | return _Py_atomic_load_ssize_relaxed(&(_PyVarObject_CAST(list)->ob_size)); | 34 | | #else | 35 | 617M | return Py_SIZE(list); | 36 | 617M | #endif | 37 | 617M | } |
Unexecuted instantiation: codecs.c:PyList_GET_SIZE codegen.c:PyList_GET_SIZE Line | Count | Source | 30 | 501 | static inline Py_ssize_t PyList_GET_SIZE(PyObject *op) { | 31 | 501 | PyListObject *list = _PyList_CAST(op); | 32 | | #ifdef Py_GIL_DISABLED | 33 | | return _Py_atomic_load_ssize_relaxed(&(_PyVarObject_CAST(list)->ob_size)); | 34 | | #else | 35 | 501 | return Py_SIZE(list); | 36 | 501 | #endif | 37 | 501 | } |
compile.c:PyList_GET_SIZE Line | Count | Source | 30 | 32.9k | static inline Py_ssize_t PyList_GET_SIZE(PyObject *op) { | 31 | 32.9k | PyListObject *list = _PyList_CAST(op); | 32 | | #ifdef Py_GIL_DISABLED | 33 | | return _Py_atomic_load_ssize_relaxed(&(_PyVarObject_CAST(list)->ob_size)); | 34 | | #else | 35 | 32.9k | return Py_SIZE(list); | 36 | 32.9k | #endif | 37 | 32.9k | } |
Unexecuted instantiation: context.c:PyList_GET_SIZE Unexecuted instantiation: errors.c:PyList_GET_SIZE flowgraph.c:PyList_GET_SIZE Line | Count | Source | 30 | 94.5k | static inline Py_ssize_t PyList_GET_SIZE(PyObject *op) { | 31 | 94.5k | PyListObject *list = _PyList_CAST(op); | 32 | | #ifdef Py_GIL_DISABLED | 33 | | return _Py_atomic_load_ssize_relaxed(&(_PyVarObject_CAST(list)->ob_size)); | 34 | | #else | 35 | 94.5k | return Py_SIZE(list); | 36 | 94.5k | #endif | 37 | 94.5k | } |
Unexecuted instantiation: frame.c:PyList_GET_SIZE Unexecuted instantiation: future.c:PyList_GET_SIZE Line | Count | Source | 30 | 208k | static inline Py_ssize_t PyList_GET_SIZE(PyObject *op) { | 31 | 208k | PyListObject *list = _PyList_CAST(op); | 32 | | #ifdef Py_GIL_DISABLED | 33 | | return _Py_atomic_load_ssize_relaxed(&(_PyVarObject_CAST(list)->ob_size)); | 34 | | #else | 35 | 208k | return Py_SIZE(list); | 36 | 208k | #endif | 37 | 208k | } |
Unexecuted instantiation: gc_gil.c:PyList_GET_SIZE Unexecuted instantiation: getargs.c:PyList_GET_SIZE Unexecuted instantiation: ceval_gil.c:PyList_GET_SIZE Unexecuted instantiation: hamt.c:PyList_GET_SIZE Unexecuted instantiation: hashtable.c:PyList_GET_SIZE Line | Count | Source | 30 | 112 | static inline Py_ssize_t PyList_GET_SIZE(PyObject *op) { | 31 | 112 | PyListObject *list = _PyList_CAST(op); | 32 | | #ifdef Py_GIL_DISABLED | 33 | | return _Py_atomic_load_ssize_relaxed(&(_PyVarObject_CAST(list)->ob_size)); | 34 | | #else | 35 | 112 | return Py_SIZE(list); | 36 | 112 | #endif | 37 | 112 | } |
Unexecuted instantiation: importdl.c:PyList_GET_SIZE initconfig.c:PyList_GET_SIZE Line | Count | Source | 30 | 16 | static inline Py_ssize_t PyList_GET_SIZE(PyObject *op) { | 31 | 16 | PyListObject *list = _PyList_CAST(op); | 32 | | #ifdef Py_GIL_DISABLED | 33 | | return _Py_atomic_load_ssize_relaxed(&(_PyVarObject_CAST(list)->ob_size)); | 34 | | #else | 35 | 16 | return Py_SIZE(list); | 36 | 16 | #endif | 37 | 16 | } |
Unexecuted instantiation: instrumentation.c:PyList_GET_SIZE Unexecuted instantiation: instruction_sequence.c:PyList_GET_SIZE Unexecuted instantiation: intrinsics.c:PyList_GET_SIZE Unexecuted instantiation: legacy_tracing.c:PyList_GET_SIZE Unexecuted instantiation: lock.c:PyList_GET_SIZE marshal.c:PyList_GET_SIZE Line | Count | Source | 30 | 270k | static inline Py_ssize_t PyList_GET_SIZE(PyObject *op) { | 31 | 270k | PyListObject *list = _PyList_CAST(op); | 32 | | #ifdef Py_GIL_DISABLED | 33 | | return _Py_atomic_load_ssize_relaxed(&(_PyVarObject_CAST(list)->ob_size)); | 34 | | #else | 35 | 270k | return Py_SIZE(list); | 36 | 270k | #endif | 37 | 270k | } |
Unexecuted instantiation: modsupport.c:PyList_GET_SIZE Unexecuted instantiation: mysnprintf.c:PyList_GET_SIZE Unexecuted instantiation: parking_lot.c:PyList_GET_SIZE Unexecuted instantiation: preconfig.c:PyList_GET_SIZE Unexecuted instantiation: pyarena.c:PyList_GET_SIZE Unexecuted instantiation: pyctype.c:PyList_GET_SIZE Unexecuted instantiation: pyhash.c:PyList_GET_SIZE Unexecuted instantiation: pylifecycle.c:PyList_GET_SIZE Unexecuted instantiation: pymath.c:PyList_GET_SIZE Unexecuted instantiation: pystate.c:PyList_GET_SIZE Unexecuted instantiation: pythonrun.c:PyList_GET_SIZE Unexecuted instantiation: pytime.c:PyList_GET_SIZE Unexecuted instantiation: qsbr.c:PyList_GET_SIZE Unexecuted instantiation: bootstrap_hash.c:PyList_GET_SIZE specialize.c:PyList_GET_SIZE Line | Count | Source | 30 | 7.91k | static inline Py_ssize_t PyList_GET_SIZE(PyObject *op) { | 31 | 7.91k | PyListObject *list = _PyList_CAST(op); | 32 | | #ifdef Py_GIL_DISABLED | 33 | | return _Py_atomic_load_ssize_relaxed(&(_PyVarObject_CAST(list)->ob_size)); | 34 | | #else | 35 | 7.91k | return Py_SIZE(list); | 36 | 7.91k | #endif | 37 | 7.91k | } |
symtable.c:PyList_GET_SIZE Line | Count | Source | 30 | 39.4k | static inline Py_ssize_t PyList_GET_SIZE(PyObject *op) { | 31 | 39.4k | PyListObject *list = _PyList_CAST(op); | 32 | | #ifdef Py_GIL_DISABLED | 33 | | return _Py_atomic_load_ssize_relaxed(&(_PyVarObject_CAST(list)->ob_size)); | 34 | | #else | 35 | 39.4k | return Py_SIZE(list); | 36 | 39.4k | #endif | 37 | 39.4k | } |
Unexecuted instantiation: sysmodule.c:PyList_GET_SIZE Unexecuted instantiation: thread.c:PyList_GET_SIZE Unexecuted instantiation: traceback.c:PyList_GET_SIZE Unexecuted instantiation: tracemalloc.c:PyList_GET_SIZE Unexecuted instantiation: getopt.c:PyList_GET_SIZE Unexecuted instantiation: pystrcmp.c:PyList_GET_SIZE Unexecuted instantiation: pystrtod.c:PyList_GET_SIZE Unexecuted instantiation: pystrhex.c:PyList_GET_SIZE Unexecuted instantiation: dtoa.c:PyList_GET_SIZE Unexecuted instantiation: formatter_unicode.c:PyList_GET_SIZE Unexecuted instantiation: fileutils.c:PyList_GET_SIZE Unexecuted instantiation: suggestions.c:PyList_GET_SIZE Unexecuted instantiation: perf_trampoline.c:PyList_GET_SIZE Unexecuted instantiation: perf_jit_trampoline.c:PyList_GET_SIZE Unexecuted instantiation: remote_debugging.c:PyList_GET_SIZE Unexecuted instantiation: dynload_shlib.c:PyList_GET_SIZE Unexecuted instantiation: config.c:PyList_GET_SIZE Unexecuted instantiation: gcmodule.c:PyList_GET_SIZE Unexecuted instantiation: atexitmodule.c:PyList_GET_SIZE Unexecuted instantiation: faulthandler.c:PyList_GET_SIZE Unexecuted instantiation: posixmodule.c:PyList_GET_SIZE Unexecuted instantiation: signalmodule.c:PyList_GET_SIZE Unexecuted instantiation: _tracemalloc.c:PyList_GET_SIZE Unexecuted instantiation: _suggestions.c:PyList_GET_SIZE Unexecuted instantiation: _codecsmodule.c:PyList_GET_SIZE Unexecuted instantiation: _collectionsmodule.c:PyList_GET_SIZE Unexecuted instantiation: _iomodule.c:PyList_GET_SIZE Unexecuted instantiation: iobase.c:PyList_GET_SIZE Unexecuted instantiation: fileio.c:PyList_GET_SIZE Unexecuted instantiation: bytesio.c:PyList_GET_SIZE Unexecuted instantiation: bufferedio.c:PyList_GET_SIZE Unexecuted instantiation: textio.c:PyList_GET_SIZE Unexecuted instantiation: stringio.c:PyList_GET_SIZE Unexecuted instantiation: itertoolsmodule.c:PyList_GET_SIZE Line | Count | Source | 30 | 1.00M | static inline Py_ssize_t PyList_GET_SIZE(PyObject *op) { | 31 | 1.00M | PyListObject *list = _PyList_CAST(op); | 32 | | #ifdef Py_GIL_DISABLED | 33 | | return _Py_atomic_load_ssize_relaxed(&(_PyVarObject_CAST(list)->ob_size)); | 34 | | #else | 35 | 1.00M | return Py_SIZE(list); | 36 | 1.00M | #endif | 37 | 1.00M | } |
Unexecuted instantiation: _sysconfig.c:PyList_GET_SIZE Unexecuted instantiation: _threadmodule.c:PyList_GET_SIZE Unexecuted instantiation: timemodule.c:PyList_GET_SIZE Unexecuted instantiation: _typesmodule.c:PyList_GET_SIZE Unexecuted instantiation: _typingmodule.c:PyList_GET_SIZE Unexecuted instantiation: _weakref.c:PyList_GET_SIZE Line | Count | Source | 30 | 9.04k | static inline Py_ssize_t PyList_GET_SIZE(PyObject *op) { | 31 | 9.04k | PyListObject *list = _PyList_CAST(op); | 32 | | #ifdef Py_GIL_DISABLED | 33 | | return _Py_atomic_load_ssize_relaxed(&(_PyVarObject_CAST(list)->ob_size)); | 34 | | #else | 35 | 9.04k | return Py_SIZE(list); | 36 | 9.04k | #endif | 37 | 9.04k | } |
Unexecuted instantiation: _functoolsmodule.c:PyList_GET_SIZE Unexecuted instantiation: _localemodule.c:PyList_GET_SIZE Unexecuted instantiation: _opcode.c:PyList_GET_SIZE Unexecuted instantiation: _operator.c:PyList_GET_SIZE Unexecuted instantiation: symtablemodule.c:PyList_GET_SIZE Unexecuted instantiation: getpath.c:PyList_GET_SIZE Unexecuted instantiation: frozen.c:PyList_GET_SIZE Unexecuted instantiation: getbuildinfo.c:PyList_GET_SIZE Unexecuted instantiation: peg_api.c:PyList_GET_SIZE Unexecuted instantiation: file_tokenizer.c:PyList_GET_SIZE Unexecuted instantiation: helpers.c:PyList_GET_SIZE Unexecuted instantiation: myreadline.c:PyList_GET_SIZE Unexecuted instantiation: abstract.c:PyList_GET_SIZE Unexecuted instantiation: boolobject.c:PyList_GET_SIZE Unexecuted instantiation: bytes_methods.c:PyList_GET_SIZE Unexecuted instantiation: bytearrayobject.c:PyList_GET_SIZE Unexecuted instantiation: capsule.c:PyList_GET_SIZE Unexecuted instantiation: cellobject.c:PyList_GET_SIZE Unexecuted instantiation: classobject.c:PyList_GET_SIZE Unexecuted instantiation: codeobject.c:PyList_GET_SIZE Unexecuted instantiation: complexobject.c:PyList_GET_SIZE Unexecuted instantiation: descrobject.c:PyList_GET_SIZE Unexecuted instantiation: enumobject.c:PyList_GET_SIZE Unexecuted instantiation: genobject.c:PyList_GET_SIZE Unexecuted instantiation: fileobject.c:PyList_GET_SIZE Unexecuted instantiation: frameobject.c:PyList_GET_SIZE Unexecuted instantiation: funcobject.c:PyList_GET_SIZE Unexecuted instantiation: interpolationobject.c:PyList_GET_SIZE Unexecuted instantiation: iterobject.c:PyList_GET_SIZE Unexecuted instantiation: odictobject.c:PyList_GET_SIZE Unexecuted instantiation: methodobject.c:PyList_GET_SIZE Unexecuted instantiation: namespaceobject.c:PyList_GET_SIZE Unexecuted instantiation: _contextvars.c:PyList_GET_SIZE Unexecuted instantiation: Python-ast.c:PyList_GET_SIZE Unexecuted instantiation: Python-tokenize.c:PyList_GET_SIZE Unexecuted instantiation: asdl.c:PyList_GET_SIZE Unexecuted instantiation: assemble.c:PyList_GET_SIZE Unexecuted instantiation: ast.c:PyList_GET_SIZE Unexecuted instantiation: ast_preprocess.c:PyList_GET_SIZE Unexecuted instantiation: ast_unparse.c:PyList_GET_SIZE Unexecuted instantiation: critical_section.c:PyList_GET_SIZE Unexecuted instantiation: crossinterp.c:PyList_GET_SIZE Unexecuted instantiation: getcopyright.c:PyList_GET_SIZE Unexecuted instantiation: getplatform.c:PyList_GET_SIZE Unexecuted instantiation: getversion.c:PyList_GET_SIZE Unexecuted instantiation: optimizer.c:PyList_GET_SIZE Unexecuted instantiation: pathconfig.c:PyList_GET_SIZE Unexecuted instantiation: structmember.c:PyList_GET_SIZE Unexecuted instantiation: pegen.c:PyList_GET_SIZE Unexecuted instantiation: pegen_errors.c:PyList_GET_SIZE Unexecuted instantiation: parser.c:PyList_GET_SIZE Unexecuted instantiation: buffer.c:PyList_GET_SIZE Unexecuted instantiation: lexer.c:PyList_GET_SIZE Unexecuted instantiation: state.c:PyList_GET_SIZE Unexecuted instantiation: readline_tokenizer.c:PyList_GET_SIZE Unexecuted instantiation: string_tokenizer.c:PyList_GET_SIZE Unexecuted instantiation: utf8_tokenizer.c:PyList_GET_SIZE Unexecuted instantiation: getcompiler.c:PyList_GET_SIZE Unexecuted instantiation: mystrtoul.c:PyList_GET_SIZE Unexecuted instantiation: token.c:PyList_GET_SIZE Unexecuted instantiation: action_helpers.c:PyList_GET_SIZE Unexecuted instantiation: string_parser.c:PyList_GET_SIZE |
38 | 770M | #define PyList_GET_SIZE(op) PyList_GET_SIZE(_PyObject_CAST(op)) |
39 | | |
40 | 195M | #define PyList_GET_ITEM(op, index) (_PyList_CAST(op)->ob_item[(index)]) |
41 | | |
42 | | static inline void |
43 | 507M | PyList_SET_ITEM(PyObject *op, Py_ssize_t index, PyObject *value) { |
44 | 507M | PyListObject *list = _PyList_CAST(op); |
45 | 507M | assert(0 <= index); |
46 | 507M | assert(index < list->allocated); |
47 | 507M | list->ob_item[index] = value; |
48 | 507M | } bytesobject.c:PyList_SET_ITEM Line | Count | Source | 43 | 2.47M | PyList_SET_ITEM(PyObject *op, Py_ssize_t index, PyObject *value) { | 44 | 2.47M | PyListObject *list = _PyList_CAST(op); | 45 | 2.47M | assert(0 <= index); | 46 | 2.47M | assert(index < list->allocated); | 47 | 2.47M | list->ob_item[index] = value; | 48 | 2.47M | } |
Unexecuted instantiation: call.c:PyList_SET_ITEM Unexecuted instantiation: exceptions.c:PyList_SET_ITEM Unexecuted instantiation: genericaliasobject.c:PyList_SET_ITEM Unexecuted instantiation: floatobject.c:PyList_SET_ITEM listobject.c:PyList_SET_ITEM Line | Count | Source | 43 | 155M | PyList_SET_ITEM(PyObject *op, Py_ssize_t index, PyObject *value) { | 44 | 155M | PyListObject *list = _PyList_CAST(op); | 45 | 155M | assert(0 <= index); | 46 | 155M | assert(index < list->allocated); | 47 | 155M | list->ob_item[index] = value; | 48 | 155M | } |
Unexecuted instantiation: longobject.c:PyList_SET_ITEM dictobject.c:PyList_SET_ITEM Line | Count | Source | 43 | 88.1k | PyList_SET_ITEM(PyObject *op, Py_ssize_t index, PyObject *value) { | 44 | 88.1k | PyListObject *list = _PyList_CAST(op); | 45 | 88.1k | assert(0 <= index); | 46 | 88.1k | assert(index < list->allocated); | 47 | 88.1k | list->ob_item[index] = value; | 48 | 88.1k | } |
memoryobject.c:PyList_SET_ITEM Line | Count | Source | 43 | 256 | PyList_SET_ITEM(PyObject *op, Py_ssize_t index, PyObject *value) { | 44 | 256 | PyListObject *list = _PyList_CAST(op); | 45 | 256 | assert(0 <= index); | 46 | 256 | assert(index < list->allocated); | 47 | 256 | list->ob_item[index] = value; | 48 | 256 | } |
Unexecuted instantiation: moduleobject.c:PyList_SET_ITEM Unexecuted instantiation: object.c:PyList_SET_ITEM Unexecuted instantiation: obmalloc.c:PyList_SET_ITEM Unexecuted instantiation: picklebufobject.c:PyList_SET_ITEM Unexecuted instantiation: rangeobject.c:PyList_SET_ITEM Unexecuted instantiation: setobject.c:PyList_SET_ITEM Unexecuted instantiation: sliceobject.c:PyList_SET_ITEM Unexecuted instantiation: structseq.c:PyList_SET_ITEM Unexecuted instantiation: templateobject.c:PyList_SET_ITEM Unexecuted instantiation: tupleobject.c:PyList_SET_ITEM typeobject.c:PyList_SET_ITEM Line | Count | Source | 43 | 239k | PyList_SET_ITEM(PyObject *op, Py_ssize_t index, PyObject *value) { | 44 | 239k | PyListObject *list = _PyList_CAST(op); | 45 | 239k | assert(0 <= index); | 46 | 239k | assert(index < list->allocated); | 47 | 239k | list->ob_item[index] = value; | 48 | 239k | } |
Unexecuted instantiation: typevarobject.c:PyList_SET_ITEM unicodeobject.c:PyList_SET_ITEM Line | Count | Source | 43 | 32.9M | PyList_SET_ITEM(PyObject *op, Py_ssize_t index, PyObject *value) { | 44 | 32.9M | PyListObject *list = _PyList_CAST(op); | 45 | 32.9M | assert(0 <= index); | 46 | 32.9M | assert(index < list->allocated); | 47 | 32.9M | list->ob_item[index] = value; | 48 | 32.9M | } |
Unexecuted instantiation: unicodectype.c:PyList_SET_ITEM Unexecuted instantiation: unionobject.c:PyList_SET_ITEM Unexecuted instantiation: weakrefobject.c:PyList_SET_ITEM _warnings.c:PyList_SET_ITEM Line | Count | Source | 43 | 80 | PyList_SET_ITEM(PyObject *op, Py_ssize_t index, PyObject *value) { | 44 | 80 | PyListObject *list = _PyList_CAST(op); | 45 | 80 | assert(0 <= index); | 46 | 80 | assert(index < list->allocated); | 47 | 80 | list->ob_item[index] = value; | 48 | 80 | } |
Unexecuted instantiation: bltinmodule.c:PyList_SET_ITEM Line | Count | Source | 43 | 316M | PyList_SET_ITEM(PyObject *op, Py_ssize_t index, PyObject *value) { | 44 | 316M | PyListObject *list = _PyList_CAST(op); | 45 | 316M | assert(0 <= index); | 46 | 316M | assert(index < list->allocated); | 47 | 316M | list->ob_item[index] = value; | 48 | 316M | } |
Unexecuted instantiation: codecs.c:PyList_SET_ITEM Unexecuted instantiation: codegen.c:PyList_SET_ITEM compile.c:PyList_SET_ITEM Line | Count | Source | 43 | 43.8k | PyList_SET_ITEM(PyObject *op, Py_ssize_t index, PyObject *value) { | 44 | 43.8k | PyListObject *list = _PyList_CAST(op); | 45 | 43.8k | assert(0 <= index); | 46 | 43.8k | assert(index < list->allocated); | 47 | 43.8k | list->ob_item[index] = value; | 48 | 43.8k | } |
Unexecuted instantiation: context.c:PyList_SET_ITEM Unexecuted instantiation: errors.c:PyList_SET_ITEM Unexecuted instantiation: flowgraph.c:PyList_SET_ITEM Unexecuted instantiation: frame.c:PyList_SET_ITEM Unexecuted instantiation: future.c:PyList_SET_ITEM Unexecuted instantiation: gc.c:PyList_SET_ITEM Unexecuted instantiation: gc_gil.c:PyList_SET_ITEM Unexecuted instantiation: getargs.c:PyList_SET_ITEM Unexecuted instantiation: ceval_gil.c:PyList_SET_ITEM Unexecuted instantiation: hamt.c:PyList_SET_ITEM Unexecuted instantiation: hashtable.c:PyList_SET_ITEM Unexecuted instantiation: import.c:PyList_SET_ITEM Unexecuted instantiation: importdl.c:PyList_SET_ITEM initconfig.c:PyList_SET_ITEM Line | Count | Source | 43 | 64 | PyList_SET_ITEM(PyObject *op, Py_ssize_t index, PyObject *value) { | 44 | 64 | PyListObject *list = _PyList_CAST(op); | 45 | 64 | assert(0 <= index); | 46 | 64 | assert(index < list->allocated); | 47 | 64 | list->ob_item[index] = value; | 48 | 64 | } |
Unexecuted instantiation: instrumentation.c:PyList_SET_ITEM Unexecuted instantiation: instruction_sequence.c:PyList_SET_ITEM Unexecuted instantiation: intrinsics.c:PyList_SET_ITEM Unexecuted instantiation: legacy_tracing.c:PyList_SET_ITEM Unexecuted instantiation: lock.c:PyList_SET_ITEM marshal.c:PyList_SET_ITEM Line | Count | Source | 43 | 786 | PyList_SET_ITEM(PyObject *op, Py_ssize_t index, PyObject *value) { | 44 | 786 | PyListObject *list = _PyList_CAST(op); | 45 | 786 | assert(0 <= index); | 46 | 786 | assert(index < list->allocated); | 47 | 786 | list->ob_item[index] = value; | 48 | 786 | } |
Unexecuted instantiation: modsupport.c:PyList_SET_ITEM Unexecuted instantiation: mysnprintf.c:PyList_SET_ITEM Unexecuted instantiation: parking_lot.c:PyList_SET_ITEM Unexecuted instantiation: preconfig.c:PyList_SET_ITEM Unexecuted instantiation: pyarena.c:PyList_SET_ITEM Unexecuted instantiation: pyctype.c:PyList_SET_ITEM Unexecuted instantiation: pyhash.c:PyList_SET_ITEM Unexecuted instantiation: pylifecycle.c:PyList_SET_ITEM Unexecuted instantiation: pymath.c:PyList_SET_ITEM Unexecuted instantiation: pystate.c:PyList_SET_ITEM Unexecuted instantiation: pythonrun.c:PyList_SET_ITEM Unexecuted instantiation: pytime.c:PyList_SET_ITEM Unexecuted instantiation: qsbr.c:PyList_SET_ITEM Unexecuted instantiation: bootstrap_hash.c:PyList_SET_ITEM Unexecuted instantiation: specialize.c:PyList_SET_ITEM Unexecuted instantiation: symtable.c:PyList_SET_ITEM Unexecuted instantiation: sysmodule.c:PyList_SET_ITEM Unexecuted instantiation: thread.c:PyList_SET_ITEM Unexecuted instantiation: traceback.c:PyList_SET_ITEM Unexecuted instantiation: tracemalloc.c:PyList_SET_ITEM Unexecuted instantiation: getopt.c:PyList_SET_ITEM Unexecuted instantiation: pystrcmp.c:PyList_SET_ITEM Unexecuted instantiation: pystrtod.c:PyList_SET_ITEM Unexecuted instantiation: pystrhex.c:PyList_SET_ITEM Unexecuted instantiation: dtoa.c:PyList_SET_ITEM Unexecuted instantiation: formatter_unicode.c:PyList_SET_ITEM Unexecuted instantiation: fileutils.c:PyList_SET_ITEM Unexecuted instantiation: suggestions.c:PyList_SET_ITEM Unexecuted instantiation: perf_trampoline.c:PyList_SET_ITEM Unexecuted instantiation: perf_jit_trampoline.c:PyList_SET_ITEM Unexecuted instantiation: remote_debugging.c:PyList_SET_ITEM Unexecuted instantiation: dynload_shlib.c:PyList_SET_ITEM Unexecuted instantiation: config.c:PyList_SET_ITEM Unexecuted instantiation: gcmodule.c:PyList_SET_ITEM Unexecuted instantiation: atexitmodule.c:PyList_SET_ITEM Unexecuted instantiation: faulthandler.c:PyList_SET_ITEM Unexecuted instantiation: posixmodule.c:PyList_SET_ITEM Unexecuted instantiation: signalmodule.c:PyList_SET_ITEM Unexecuted instantiation: _tracemalloc.c:PyList_SET_ITEM Unexecuted instantiation: _suggestions.c:PyList_SET_ITEM Unexecuted instantiation: _codecsmodule.c:PyList_SET_ITEM Unexecuted instantiation: _collectionsmodule.c:PyList_SET_ITEM Unexecuted instantiation: _iomodule.c:PyList_SET_ITEM Unexecuted instantiation: iobase.c:PyList_SET_ITEM Unexecuted instantiation: fileio.c:PyList_SET_ITEM Unexecuted instantiation: bytesio.c:PyList_SET_ITEM Unexecuted instantiation: bufferedio.c:PyList_SET_ITEM Unexecuted instantiation: textio.c:PyList_SET_ITEM Unexecuted instantiation: stringio.c:PyList_SET_ITEM Unexecuted instantiation: itertoolsmodule.c:PyList_SET_ITEM Unexecuted instantiation: sre.c:PyList_SET_ITEM Unexecuted instantiation: _sysconfig.c:PyList_SET_ITEM Unexecuted instantiation: _threadmodule.c:PyList_SET_ITEM Unexecuted instantiation: timemodule.c:PyList_SET_ITEM Unexecuted instantiation: _typesmodule.c:PyList_SET_ITEM Unexecuted instantiation: _typingmodule.c:PyList_SET_ITEM Unexecuted instantiation: _weakref.c:PyList_SET_ITEM Unexecuted instantiation: _abc.c:PyList_SET_ITEM Unexecuted instantiation: _functoolsmodule.c:PyList_SET_ITEM Unexecuted instantiation: _localemodule.c:PyList_SET_ITEM Unexecuted instantiation: _opcode.c:PyList_SET_ITEM Unexecuted instantiation: _operator.c:PyList_SET_ITEM Unexecuted instantiation: symtablemodule.c:PyList_SET_ITEM Unexecuted instantiation: getpath.c:PyList_SET_ITEM Unexecuted instantiation: frozen.c:PyList_SET_ITEM Unexecuted instantiation: getbuildinfo.c:PyList_SET_ITEM Unexecuted instantiation: peg_api.c:PyList_SET_ITEM Unexecuted instantiation: file_tokenizer.c:PyList_SET_ITEM Unexecuted instantiation: helpers.c:PyList_SET_ITEM Unexecuted instantiation: myreadline.c:PyList_SET_ITEM Unexecuted instantiation: abstract.c:PyList_SET_ITEM Unexecuted instantiation: boolobject.c:PyList_SET_ITEM Unexecuted instantiation: bytes_methods.c:PyList_SET_ITEM Unexecuted instantiation: bytearrayobject.c:PyList_SET_ITEM Unexecuted instantiation: capsule.c:PyList_SET_ITEM Unexecuted instantiation: cellobject.c:PyList_SET_ITEM Unexecuted instantiation: classobject.c:PyList_SET_ITEM Unexecuted instantiation: codeobject.c:PyList_SET_ITEM Unexecuted instantiation: complexobject.c:PyList_SET_ITEM Unexecuted instantiation: descrobject.c:PyList_SET_ITEM Unexecuted instantiation: enumobject.c:PyList_SET_ITEM Unexecuted instantiation: genobject.c:PyList_SET_ITEM Unexecuted instantiation: fileobject.c:PyList_SET_ITEM Unexecuted instantiation: frameobject.c:PyList_SET_ITEM Unexecuted instantiation: funcobject.c:PyList_SET_ITEM Unexecuted instantiation: interpolationobject.c:PyList_SET_ITEM Unexecuted instantiation: iterobject.c:PyList_SET_ITEM Unexecuted instantiation: odictobject.c:PyList_SET_ITEM Unexecuted instantiation: methodobject.c:PyList_SET_ITEM Unexecuted instantiation: namespaceobject.c:PyList_SET_ITEM Unexecuted instantiation: _contextvars.c:PyList_SET_ITEM Python-ast.c:PyList_SET_ITEM Line | Count | Source | 43 | 181k | PyList_SET_ITEM(PyObject *op, Py_ssize_t index, PyObject *value) { | 44 | 181k | PyListObject *list = _PyList_CAST(op); | 45 | 181k | assert(0 <= index); | 46 | 181k | assert(index < list->allocated); | 47 | 181k | list->ob_item[index] = value; | 48 | 181k | } |
Unexecuted instantiation: Python-tokenize.c:PyList_SET_ITEM Unexecuted instantiation: asdl.c:PyList_SET_ITEM Unexecuted instantiation: assemble.c:PyList_SET_ITEM Unexecuted instantiation: ast.c:PyList_SET_ITEM Unexecuted instantiation: ast_preprocess.c:PyList_SET_ITEM Unexecuted instantiation: ast_unparse.c:PyList_SET_ITEM Unexecuted instantiation: critical_section.c:PyList_SET_ITEM Unexecuted instantiation: crossinterp.c:PyList_SET_ITEM Unexecuted instantiation: getcopyright.c:PyList_SET_ITEM Unexecuted instantiation: getplatform.c:PyList_SET_ITEM Unexecuted instantiation: getversion.c:PyList_SET_ITEM Unexecuted instantiation: optimizer.c:PyList_SET_ITEM Unexecuted instantiation: pathconfig.c:PyList_SET_ITEM Unexecuted instantiation: structmember.c:PyList_SET_ITEM Unexecuted instantiation: pegen.c:PyList_SET_ITEM Unexecuted instantiation: pegen_errors.c:PyList_SET_ITEM Unexecuted instantiation: parser.c:PyList_SET_ITEM Unexecuted instantiation: buffer.c:PyList_SET_ITEM Unexecuted instantiation: lexer.c:PyList_SET_ITEM Unexecuted instantiation: state.c:PyList_SET_ITEM Unexecuted instantiation: readline_tokenizer.c:PyList_SET_ITEM Unexecuted instantiation: string_tokenizer.c:PyList_SET_ITEM Unexecuted instantiation: utf8_tokenizer.c:PyList_SET_ITEM Unexecuted instantiation: getcompiler.c:PyList_SET_ITEM Unexecuted instantiation: mystrtoul.c:PyList_SET_ITEM Unexecuted instantiation: token.c:PyList_SET_ITEM Unexecuted instantiation: action_helpers.c:PyList_SET_ITEM Unexecuted instantiation: string_parser.c:PyList_SET_ITEM |
49 | | #define PyList_SET_ITEM(op, index, value) \ |
50 | 507M | PyList_SET_ITEM(_PyObject_CAST(op), (index), _PyObject_CAST(value)) |
51 | | |
52 | | PyAPI_FUNC(int) PyList_Extend(PyObject *self, PyObject *iterable); |
53 | | PyAPI_FUNC(int) PyList_Clear(PyObject *self); |