Home
last modified time | relevance | path

Searched refs:free_list (Results 1 – 20 of 20) sorted by relevance

/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Objects/
Dmethodobject.c10 static PyCFunctionObject *free_list = NULL; variable
20 op = free_list; in PyCFunction_NewEx()
22 free_list = (PyCFunctionObject *)(op->m_self); in PyCFunction_NewEx()
137 m->m_self = (PyObject *)free_list; in meth_dealloc()
138 free_list = m; in meth_dealloc()
399 while (free_list) { in PyCFunction_ClearFreeList()
400 PyCFunctionObject *v = free_list; in PyCFunction_ClearFreeList()
401 free_list = (PyCFunctionObject *)(v->m_self); in PyCFunction_ClearFreeList()
Dintobject.c45 static PyIntObject *free_list = NULL; variable
103 if (free_list == NULL) { in PyInt_FromLong()
104 if ((free_list = fill_free_list()) == NULL) in PyInt_FromLong()
108 v = free_list; in PyInt_FromLong()
109 free_list = (PyIntObject *)Py_TYPE(v); in PyInt_FromLong()
135 Py_TYPE(v) = (struct _typeobject *)free_list; in int_dealloc()
136 free_list = v; in int_dealloc()
145 Py_TYPE(v) = (struct _typeobject *)free_list; in int_free()
146 free_list = v; in int_free()
1464 if (!free_list && (free_list = fill_free_list()) == NULL) in _PyInt_Init()
[all …]
Dframeobject.c444 static PyFrameObject *free_list = NULL; variable
482 f->f_back = free_list; in frame_dealloc()
483 free_list = f; in frame_dealloc()
681 if (free_list == NULL) { in PyFrame_New()
692 f = free_list; in PyFrame_New()
693 free_list = free_list->f_back; in PyFrame_New()
968 while (free_list != NULL) { in PyFrame_ClearFreeList()
969 PyFrameObject *f = free_list; in PyFrame_ClearFreeList()
970 free_list = free_list->f_back; in PyFrame_ClearFreeList()
Dtupleobject.c18 static PyTupleObject *free_list[PyTuple_MAXSAVESIZE]; variable
58 if (size == 0 && free_list[0]) { in PyTuple_New()
59 op = free_list[0]; in PyTuple_New()
66 if (size < PyTuple_MAXSAVESIZE && (op = free_list[size]) != NULL) { in PyTuple_New()
67 free_list[size] = (PyTupleObject *) op->ob_item[0]; in PyTuple_New()
98 free_list[0] = op; in PyTuple_New()
228 op->ob_item[0] = (PyObject *) free_list[len]; in tupledealloc()
230 free_list[len] = op; in tupledealloc()
898 p = free_list[i]; in PyTuple_ClearFreeList()
900 free_list[i] = NULL; in PyTuple_ClearFreeList()
[all …]
Dfloatobject.c36 static PyFloatObject *free_list = NULL; variable
145 if (free_list == NULL) { in PyFloat_FromDouble()
146 if ((free_list = fill_free_list()) == NULL) in PyFloat_FromDouble()
150 op = free_list; in PyFloat_FromDouble()
151 free_list = (PyFloatObject *)Py_TYPE(op); in PyFloat_FromDouble()
243 Py_TYPE(op) = (struct _typeobject *)free_list; in float_dealloc()
244 free_list = op; in float_dealloc()
2216 free_list = NULL; in PyFloat_ClearFreeList()
2235 free_list; in PyFloat_ClearFreeList()
2236 free_list = p; in PyFloat_ClearFreeList()
Dclassobject.c10 static PyMethodObject *free_list; variable
2256 im = free_list; in PyMethod_New()
2258 free_list = (PyMethodObject *)(im->im_self); in PyMethod_New()
2391 im->im_self = (PyObject *)free_list; in instancemethod_dealloc()
2392 free_list = im; in instancemethod_dealloc()
2682 while (free_list) { in PyMethod_ClearFreeList()
2683 PyMethodObject *im = free_list; in PyMethod_ClearFreeList()
2684 free_list = (PyMethodObject *)(im->im_self); in PyMethod_ClearFreeList()
Dsetobject.c57 static PySetObject *free_list[PySet_MAXFREELIST]; variable
569 free_list[numfree++] = so; in set_dealloc()
1013 so = free_list[--numfree]; in make_new_set()
1083 so = free_list[numfree]; in PySet_Fini()
Ddictobject.c225 static PyDictObject *free_list[PyDict_MAXFREELIST]; variable
234 op = free_list[--numfree]; in PyDict_Fini()
259 mp = free_list[--numfree]; in PyDict_New()
1016 free_list[numfree++] = mp; in dict_dealloc()
Dlistobject.c97 static PyListObject *free_list[PyList_MAXFREELIST]; variable
106 op = free_list[--numfree]; in PyList_Fini()
136 op = free_list[numfree]; in PyList_New()
314 free_list[numfree++] = op; in list_dealloc()
Dunicodeobject.c97 static PyUnicodeObject *free_list = NULL; variable
333 if (free_list) { in _PyUnicode_New()
334 unicode = free_list; in _PyUnicode_New()
335 free_list = *(PyUnicodeObject **)unicode; in _PyUnicode_New()
402 *(PyUnicodeObject **)unicode = free_list; in unicode_dealloc()
403 free_list = unicode; in unicode_dealloc()
8965 for (u = free_list; u != NULL;) { in PyUnicode_ClearFreeList()
8974 free_list = NULL; in PyUnicode_ClearFreeList()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Objects/
Dmethodobject.c10 static PyCFunctionObject *free_list = NULL; variable
20 op = free_list; in PyCFunction_NewEx()
22 free_list = (PyCFunctionObject *)(op->m_self); in PyCFunction_NewEx()
137 m->m_self = (PyObject *)free_list; in meth_dealloc()
138 free_list = m; in meth_dealloc()
399 while (free_list) { in PyCFunction_ClearFreeList()
400 PyCFunctionObject *v = free_list; in PyCFunction_ClearFreeList()
401 free_list = (PyCFunctionObject *)(v->m_self); in PyCFunction_ClearFreeList()
Dintobject.c45 static PyIntObject *free_list = NULL; variable
103 if (free_list == NULL) { in PyInt_FromLong()
104 if ((free_list = fill_free_list()) == NULL) in PyInt_FromLong()
108 v = free_list; in PyInt_FromLong()
109 free_list = (PyIntObject *)Py_TYPE(v); in PyInt_FromLong()
135 Py_TYPE(v) = (struct _typeobject *)free_list; in int_dealloc()
136 free_list = v; in int_dealloc()
145 Py_TYPE(v) = (struct _typeobject *)free_list; in int_free()
146 free_list = v; in int_free()
1433 if (!free_list && (free_list = fill_free_list()) == NULL) in _PyInt_Init()
[all …]
Dframeobject.c442 static PyFrameObject *free_list = NULL; variable
480 f->f_back = free_list; in frame_dealloc()
481 free_list = f; in frame_dealloc()
679 if (free_list == NULL) { in PyFrame_New()
690 f = free_list; in PyFrame_New()
691 free_list = free_list->f_back; in PyFrame_New()
966 while (free_list != NULL) { in PyFrame_ClearFreeList()
967 PyFrameObject *f = free_list; in PyFrame_ClearFreeList()
968 free_list = free_list->f_back; in PyFrame_ClearFreeList()
Dtupleobject.c18 static PyTupleObject *free_list[PyTuple_MAXSAVESIZE]; variable
58 if (size == 0 && free_list[0]) { in PyTuple_New()
59 op = free_list[0]; in PyTuple_New()
66 if (size < PyTuple_MAXSAVESIZE && (op = free_list[size]) != NULL) { in PyTuple_New()
67 free_list[size] = (PyTupleObject *) op->ob_item[0]; in PyTuple_New()
98 free_list[0] = op; in PyTuple_New()
226 op->ob_item[0] = (PyObject *) free_list[len]; in tupledealloc()
228 free_list[len] = op; in tupledealloc()
909 p = free_list[i]; in PyTuple_ClearFreeList()
911 free_list[i] = NULL; in PyTuple_ClearFreeList()
[all …]
Dfloatobject.c36 static PyFloatObject *free_list = NULL; variable
145 if (free_list == NULL) { in PyFloat_FromDouble()
146 if ((free_list = fill_free_list()) == NULL) in PyFloat_FromDouble()
150 op = free_list; in PyFloat_FromDouble()
151 free_list = (PyFloatObject *)Py_TYPE(op); in PyFloat_FromDouble()
243 Py_TYPE(op) = (struct _typeobject *)free_list; in float_dealloc()
244 free_list = op; in float_dealloc()
2201 free_list = NULL; in PyFloat_ClearFreeList()
2220 free_list; in PyFloat_ClearFreeList()
2221 free_list = p; in PyFloat_ClearFreeList()
Dclassobject.c10 static PyMethodObject *free_list; variable
2232 im = free_list; in PyMethod_New()
2234 free_list = (PyMethodObject *)(im->im_self); in PyMethod_New()
2367 im->im_self = (PyObject *)free_list; in instancemethod_dealloc()
2368 free_list = im; in instancemethod_dealloc()
2658 while (free_list) { in PyMethod_ClearFreeList()
2659 PyMethodObject *im = free_list; in PyMethod_ClearFreeList()
2660 free_list = (PyMethodObject *)(im->im_self); in PyMethod_ClearFreeList()
Dsetobject.c57 static PySetObject *free_list[PySet_MAXFREELIST]; variable
570 free_list[numfree++] = so; in set_dealloc()
1014 so = free_list[--numfree]; in make_new_set()
1084 so = free_list[numfree]; in PySet_Fini()
Dlistobject.c97 static PyListObject *free_list[PyList_MAXFREELIST]; variable
106 op = free_list[--numfree]; in PyList_Fini()
136 op = free_list[numfree]; in PyList_New()
314 free_list[numfree++] = op; in list_dealloc()
Ddictobject.c225 static PyDictObject *free_list[PyDict_MAXFREELIST]; variable
234 op = free_list[--numfree]; in PyDict_Fini()
259 mp = free_list[--numfree]; in PyDict_New()
991 free_list[numfree++] = mp; in dict_dealloc()
Dunicodeobject.c96 static PyUnicodeObject *free_list; variable
320 if (free_list) { in _PyUnicode_New()
321 unicode = free_list; in _PyUnicode_New()
322 free_list = *(PyUnicodeObject **)unicode; in _PyUnicode_New()
389 *(PyUnicodeObject **)unicode = free_list; in unicode_dealloc()
390 free_list = unicode; in unicode_dealloc()
8827 free_list = NULL; in _PyUnicode_Init()
8855 for (u = free_list; u != NULL;) { in PyUnicode_ClearFreeList()
8864 free_list = NULL; in PyUnicode_ClearFreeList()