/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.89G | (assert(PyList_Check(op)), _Py_CAST(PyListObject*, (op))) |
27 | | |
28 | | // Macros and static inline functions, trading safety for speed |
29 | | |
30 | 1.10G | static inline Py_ssize_t PyList_GET_SIZE(PyObject *op) { |
31 | 1.10G | 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.10G | return Py_SIZE(list); |
36 | 1.10G | #endif |
37 | 1.10G | } bytesobject.c:PyList_GET_SIZE Line | Count | Source | 30 | 199k | static inline Py_ssize_t PyList_GET_SIZE(PyObject *op) { | 31 | 199k | 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 | 199k | return Py_SIZE(list); | 36 | 199k | #endif | 37 | 199k | } |
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 | 135M | static inline Py_ssize_t PyList_GET_SIZE(PyObject *op) { | 31 | 135M | 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 | 135M | return Py_SIZE(list); | 36 | 135M | #endif | 37 | 135M | } |
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 | 8.51M | static inline Py_ssize_t PyList_GET_SIZE(PyObject *op) { | 31 | 8.51M | 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 | 8.51M | return Py_SIZE(list); | 36 | 8.51M | #endif | 37 | 8.51M | } |
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 | 22.1M | static inline Py_ssize_t PyList_GET_SIZE(PyObject *op) { | 31 | 22.1M | 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 | 22.1M | return Py_SIZE(list); | 36 | 22.1M | #endif | 37 | 22.1M | } |
Unexecuted instantiation: unicodectype.c:PyList_GET_SIZE unionobject.c:PyList_GET_SIZE Line | Count | Source | 30 | 463 | static inline Py_ssize_t PyList_GET_SIZE(PyObject *op) { | 31 | 463 | 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 | 463 | return Py_SIZE(list); | 36 | 463 | #endif | 37 | 463 | } |
Unexecuted instantiation: weakrefobject.c:PyList_GET_SIZE _warnings.c:PyList_GET_SIZE Line | Count | Source | 30 | 16.0k | static inline Py_ssize_t PyList_GET_SIZE(PyObject *op) { | 31 | 16.0k | 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.0k | return Py_SIZE(list); | 36 | 16.0k | #endif | 37 | 16.0k | } |
bltinmodule.c:PyList_GET_SIZE Line | Count | Source | 30 | 2 | static inline Py_ssize_t PyList_GET_SIZE(PyObject *op) { | 31 | 2 | 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 | 2 | return Py_SIZE(list); | 36 | 2 | #endif | 37 | 2 | } |
Line | Count | Source | 30 | 935M | static inline Py_ssize_t PyList_GET_SIZE(PyObject *op) { | 31 | 935M | 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 | 935M | return Py_SIZE(list); | 36 | 935M | #endif | 37 | 935M | } |
Unexecuted instantiation: codecs.c:PyList_GET_SIZE codegen.c:PyList_GET_SIZE Line | Count | Source | 30 | 712 | static inline Py_ssize_t PyList_GET_SIZE(PyObject *op) { | 31 | 712 | 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 | 712 | return Py_SIZE(list); | 36 | 712 | #endif | 37 | 712 | } |
compile.c:PyList_GET_SIZE Line | Count | Source | 30 | 37.8k | static inline Py_ssize_t PyList_GET_SIZE(PyObject *op) { | 31 | 37.8k | 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 | 37.8k | return Py_SIZE(list); | 36 | 37.8k | #endif | 37 | 37.8k | } |
Unexecuted instantiation: context.c:PyList_GET_SIZE Unexecuted instantiation: errors.c:PyList_GET_SIZE flowgraph.c:PyList_GET_SIZE Line | Count | Source | 30 | 111k | static inline Py_ssize_t PyList_GET_SIZE(PyObject *op) { | 31 | 111k | 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 | 111k | return Py_SIZE(list); | 36 | 111k | #endif | 37 | 111k | } |
Unexecuted instantiation: frame.c:PyList_GET_SIZE Unexecuted instantiation: future.c:PyList_GET_SIZE Line | Count | Source | 30 | 233k | static inline Py_ssize_t PyList_GET_SIZE(PyObject *op) { | 31 | 233k | 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 | 233k | return Py_SIZE(list); | 36 | 233k | #endif | 37 | 233k | } |
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 | 283k | static inline Py_ssize_t PyList_GET_SIZE(PyObject *op) { | 31 | 283k | 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 | 283k | return Py_SIZE(list); | 36 | 283k | #endif | 37 | 283k | } |
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 | 10.6k | static inline Py_ssize_t PyList_GET_SIZE(PyObject *op) { | 31 | 10.6k | 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 | 10.6k | return Py_SIZE(list); | 36 | 10.6k | #endif | 37 | 10.6k | } |
symtable.c:PyList_GET_SIZE Line | Count | Source | 30 | 45.2k | static inline Py_ssize_t PyList_GET_SIZE(PyObject *op) { | 31 | 45.2k | 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 | 45.2k | return Py_SIZE(list); | 36 | 45.2k | #endif | 37 | 45.2k | } |
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: _asynciomodule.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: _datetimemodule.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.50M | static inline Py_ssize_t PyList_GET_SIZE(PyObject *op) { | 31 | 1.50M | 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.50M | return Py_SIZE(list); | 36 | 1.50M | #endif | 37 | 1.50M | } |
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.43k | static inline Py_ssize_t PyList_GET_SIZE(PyObject *op) { | 31 | 9.43k | 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.43k | return Py_SIZE(list); | 36 | 9.43k | #endif | 37 | 9.43k | } |
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: pwdmodule.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 | 1.10G | #define PyList_GET_SIZE(op) PyList_GET_SIZE(_PyObject_CAST(op)) |
39 | | |
40 | 220M | #define PyList_GET_ITEM(op, index) (_PyList_CAST(op)->ob_item[(index)]) |
41 | | |
42 | | static inline void |
43 | 568M | PyList_SET_ITEM(PyObject *op, Py_ssize_t index, PyObject *value) { |
44 | 568M | PyListObject *list = _PyList_CAST(op); |
45 | 568M | assert(0 <= index); |
46 | 568M | assert(index < list->allocated); |
47 | 568M | list->ob_item[index] = value; |
48 | 568M | } bytesobject.c:PyList_SET_ITEM Line | Count | Source | 43 | 3.58M | PyList_SET_ITEM(PyObject *op, Py_ssize_t index, PyObject *value) { | 44 | 3.58M | PyListObject *list = _PyList_CAST(op); | 45 | 3.58M | assert(0 <= index); | 46 | 3.58M | assert(index < list->allocated); | 47 | 3.58M | list->ob_item[index] = value; | 48 | 3.58M | } |
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 | 167M | PyList_SET_ITEM(PyObject *op, Py_ssize_t index, PyObject *value) { | 44 | 167M | PyListObject *list = _PyList_CAST(op); | 45 | 167M | assert(0 <= index); | 46 | 167M | assert(index < list->allocated); | 47 | 167M | list->ob_item[index] = value; | 48 | 167M | } |
Unexecuted instantiation: longobject.c:PyList_SET_ITEM dictobject.c:PyList_SET_ITEM Line | Count | Source | 43 | 102k | PyList_SET_ITEM(PyObject *op, Py_ssize_t index, PyObject *value) { | 44 | 102k | PyListObject *list = _PyList_CAST(op); | 45 | 102k | assert(0 <= index); | 46 | 102k | assert(index < list->allocated); | 47 | 102k | list->ob_item[index] = value; | 48 | 102k | } |
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 | 311k | PyList_SET_ITEM(PyObject *op, Py_ssize_t index, PyObject *value) { | 44 | 311k | PyListObject *list = _PyList_CAST(op); | 45 | 311k | assert(0 <= index); | 46 | 311k | assert(index < list->allocated); | 47 | 311k | list->ob_item[index] = value; | 48 | 311k | } |
Unexecuted instantiation: typevarobject.c:PyList_SET_ITEM unicodeobject.c:PyList_SET_ITEM Line | Count | Source | 43 | 36.5M | PyList_SET_ITEM(PyObject *op, Py_ssize_t index, PyObject *value) { | 44 | 36.5M | PyListObject *list = _PyList_CAST(op); | 45 | 36.5M | assert(0 <= index); | 46 | 36.5M | assert(index < list->allocated); | 47 | 36.5M | list->ob_item[index] = value; | 48 | 36.5M | } |
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 | 361M | PyList_SET_ITEM(PyObject *op, Py_ssize_t index, PyObject *value) { | 44 | 361M | PyListObject *list = _PyList_CAST(op); | 45 | 361M | assert(0 <= index); | 46 | 361M | assert(index < list->allocated); | 47 | 361M | list->ob_item[index] = value; | 48 | 361M | } |
Unexecuted instantiation: codecs.c:PyList_SET_ITEM Unexecuted instantiation: codegen.c:PyList_SET_ITEM compile.c:PyList_SET_ITEM Line | Count | Source | 43 | 49.1k | PyList_SET_ITEM(PyObject *op, Py_ssize_t index, PyObject *value) { | 44 | 49.1k | PyListObject *list = _PyList_CAST(op); | 45 | 49.1k | assert(0 <= index); | 46 | 49.1k | assert(index < list->allocated); | 47 | 49.1k | list->ob_item[index] = value; | 48 | 49.1k | } |
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 | 819 | PyList_SET_ITEM(PyObject *op, Py_ssize_t index, PyObject *value) { | 44 | 819 | PyListObject *list = _PyList_CAST(op); | 45 | 819 | assert(0 <= index); | 46 | 819 | assert(index < list->allocated); | 47 | 819 | list->ob_item[index] = value; | 48 | 819 | } |
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: _asynciomodule.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: _datetimemodule.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 _opcode.c:PyList_SET_ITEM Line | Count | Source | 43 | 98 | PyList_SET_ITEM(PyObject *op, Py_ssize_t index, PyObject *value) { | 44 | 98 | PyListObject *list = _PyList_CAST(op); | 45 | 98 | assert(0 <= index); | 46 | 98 | assert(index < list->allocated); | 47 | 98 | list->ob_item[index] = value; | 48 | 98 | } |
Unexecuted instantiation: _operator.c:PyList_SET_ITEM Unexecuted instantiation: symtablemodule.c:PyList_SET_ITEM Unexecuted instantiation: pwdmodule.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 abstract.c:PyList_SET_ITEM Line | Count | Source | 43 | 368 | PyList_SET_ITEM(PyObject *op, Py_ssize_t index, PyObject *value) { | 44 | 368 | PyListObject *list = _PyList_CAST(op); | 45 | 368 | assert(0 <= index); | 46 | 368 | assert(index < list->allocated); | 47 | 368 | list->ob_item[index] = value; | 48 | 368 | } |
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 | 170k | PyList_SET_ITEM(PyObject *op, Py_ssize_t index, PyObject *value) { | 44 | 170k | PyListObject *list = _PyList_CAST(op); | 45 | 170k | assert(0 <= index); | 46 | 170k | assert(index < list->allocated); | 47 | 170k | list->ob_item[index] = value; | 48 | 170k | } |
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 | 568M | 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); |