Home
last modified time | relevance | path

Searched refs:newobj (Results 1 – 25 of 60) sorted by relevance

123

/external/python/cpython2/Objects/stringlib/
Dctype.h54 PyObject* newobj; in stringlib_lower() local
55 newobj = STRINGLIB_NEW(NULL, STRINGLIB_LEN(self)); in stringlib_lower()
56 if (!newobj) in stringlib_lower()
58 _Py_bytes_lower(STRINGLIB_STR(newobj), STRINGLIB_STR(self), in stringlib_lower()
60 return newobj; in stringlib_lower()
66 PyObject* newobj; in stringlib_upper() local
67 newobj = STRINGLIB_NEW(NULL, STRINGLIB_LEN(self)); in stringlib_upper()
68 if (!newobj) in stringlib_upper()
70 _Py_bytes_upper(STRINGLIB_STR(newobj), STRINGLIB_STR(self), in stringlib_upper()
72 return newobj; in stringlib_upper()
[all …]
Dstring_format.h234 PyObject *newobj; in getattr() local
238 newobj = PyObject_GetAttr(obj, str); in getattr()
240 return newobj; in getattr()
254 PyObject *newobj; in getitem_idx() local
258 newobj = PyObject_GetItem(obj, idx_obj); in getitem_idx()
260 return newobj; in getitem_idx()
267 PyObject *newobj; in getitem_str() local
271 newobj = PyObject_GetItem(obj, str); in getitem_str()
273 return newobj; in getitem_str()
/external/python/cpython3/Objects/stringlib/
Dctype.h61 PyObject* newobj; in stringlib_lower() local
62 newobj = STRINGLIB_NEW(NULL, STRINGLIB_LEN(self)); in stringlib_lower()
63 if (!newobj) in stringlib_lower()
65 _Py_bytes_lower(STRINGLIB_STR(newobj), STRINGLIB_STR(self), in stringlib_lower()
67 return newobj; in stringlib_lower()
73 PyObject* newobj; in stringlib_upper() local
74 newobj = STRINGLIB_NEW(NULL, STRINGLIB_LEN(self)); in stringlib_upper()
75 if (!newobj) in stringlib_upper()
77 _Py_bytes_upper(STRINGLIB_STR(newobj), STRINGLIB_STR(self), in stringlib_upper()
79 return newobj; in stringlib_upper()
[all …]
Dunicode_format.h147 PyObject *newobj; in getattr() local
151 newobj = PyObject_GetAttr(obj, str); in getattr()
153 return newobj; in getattr()
167 PyObject *newobj; in getitem_idx() local
171 newobj = PyObject_GetItem(obj, idx_obj); in getitem_idx()
173 return newobj; in getitem_idx()
180 PyObject *newobj; in getitem_str() local
184 newobj = PyObject_GetItem(obj, str); in getitem_str()
186 return newobj; in getitem_str()
/external/python/cpython3/Modules/_sha3/
Dsha3module.c163 SHA3object *newobj; in newSHA3object() local
164 newobj = (SHA3object *)PyObject_New(SHA3object, type); in newSHA3object()
165 if (newobj == NULL) { in newSHA3object()
168 newobj->lock = NULL; in newSHA3object()
169 return newobj; in newSHA3object()
279 SHA3object *newobj; in _sha3_sha3_224_copy_impl() local
281 if ((newobj = newSHA3object(Py_TYPE(self))) == NULL) { in _sha3_sha3_224_copy_impl()
285 SHA3_copystate(newobj->hash_state, self->hash_state); in _sha3_sha3_224_copy_impl()
287 return (PyObject *)newobj; in _sha3_sha3_224_copy_impl()
/external/python/cpython3/Modules/
Dsha1module.c329 SHA1object *newobj; in SHA1Type_copy_impl() local
331 if ((newobj = newSHA1object()) == NULL) in SHA1Type_copy_impl()
334 newobj->hash_state = self->hash_state; in SHA1Type_copy_impl()
335 return (PyObject *)newobj; in SHA1Type_copy_impl()
D_operator.c1250 PyObject *newobj; in dotted_getattr() local
1262 newobj = PyObject_GetAttr(obj, attr_name); in dotted_getattr()
1264 if (newobj == NULL) { in dotted_getattr()
1268 obj = newobj; in dotted_getattr()
1271 newobj = PyObject_GetAttr(obj, attr); in dotted_getattr()
1272 if (newobj == NULL) in dotted_getattr()
1274 obj = newobj; in dotted_getattr()
Dmd5module.c352 MD5object *newobj; in MD5Type_copy_impl() local
354 if ((newobj = newMD5object())==NULL) in MD5Type_copy_impl()
357 newobj->hash_state = self->hash_state; in MD5Type_copy_impl()
358 return (PyObject *)newobj; in MD5Type_copy_impl()
D_hashopenssl.c179 EVPobject *newobj; in EVP_copy() local
181 if ( (newobj = newEVPobject(self->name))==NULL) in EVP_copy()
184 if (!locked_EVP_MD_CTX_copy(newobj->ctx, self)) { in EVP_copy()
185 Py_DECREF(newobj); in EVP_copy()
188 return (PyObject *)newobj; in EVP_copy()
Dsha256module.c414 SHAobject *newobj; in SHA256Type_copy_impl() local
417 if ( (newobj = newSHA256object())==NULL) in SHA256Type_copy_impl()
420 if ( (newobj = newSHA224object())==NULL) in SHA256Type_copy_impl()
424 SHAcopy(self, newobj); in SHA256Type_copy_impl()
425 return (PyObject *)newobj; in SHA256Type_copy_impl()
Dsha512module.c479 SHAobject *newobj; in SHA512Type_copy_impl() local
482 if ( (newobj = newSHA512object())==NULL) in SHA512Type_copy_impl()
485 if ( (newobj = newSHA384object())==NULL) in SHA512Type_copy_impl()
489 SHAcopy(self, newobj); in SHA512Type_copy_impl()
490 return (PyObject *)newobj; in SHA512Type_copy_impl()
D_json.c1462 PyObject *newobj; in encoder_listencode_obj() local
1523 newobj = PyObject_CallFunctionObjArgs(s->defaultfn, obj, NULL); in encoder_listencode_obj()
1524 if (newobj == NULL) { in encoder_listencode_obj()
1530 Py_DECREF(newobj); in encoder_listencode_obj()
1534 rv = encoder_listencode_obj(s, acc, newobj, indent_level); in encoder_listencode_obj()
1537 Py_DECREF(newobj); in encoder_listencode_obj()
/external/python/cpython2/Objects/
Dstringobject.c1994 PyObject *newobj; in string_lower() local
1996 newobj = PyString_FromStringAndSize(NULL, n); in string_lower()
1997 if (!newobj) in string_lower()
2000 s = PyString_AS_STRING(newobj); in string_lower()
2010 return newobj; in string_lower()
2027 PyObject *newobj; in string_upper() local
2029 newobj = PyString_FromStringAndSize(NULL, n); in string_upper()
2030 if (!newobj) in string_upper()
2033 s = PyString_AS_STRING(newobj); in string_upper()
2043 return newobj; in string_upper()
[all …]
Dtupleobject.c661 PyObject *tmp, *newobj, *item; in tuple_subtype_new() local
669 newobj = type->tp_alloc(type, n = PyTuple_GET_SIZE(tmp)); in tuple_subtype_new()
670 if (newobj == NULL) in tuple_subtype_new()
675 PyTuple_SET_ITEM(newobj, i, item); in tuple_subtype_new()
678 return newobj; in tuple_subtype_new()
Dintobject.c1120 PyObject *tmp, *newobj; in int_subtype_new() local
1137 newobj = type->tp_alloc(type, 0); in int_subtype_new()
1138 if (newobj == NULL) { in int_subtype_new()
1142 ((PyIntObject *)newobj)->ob_ival = ival; in int_subtype_new()
1144 return newobj; in int_subtype_new()
/external/v8/src/runtime/
Druntime-atomics.cc191 Handle<Object> oldobj, Handle<Object> newobj) { in DoCompareExchange() argument
193 T newval = FromObject<T>(newobj); in DoCompareExchange()
284 CONVERT_NUMBER_ARG_HANDLE_CHECKED(newobj, 3); in RUNTIME_FUNCTION()
294 return DoCompareExchange<ctype>(isolate, source, index, oldobj, newobj); in RUNTIME_FUNCTION()
/external/python/cpython2/Modules/
Dshamodule.c363 SHAobject *newobj; in SHA_copy() local
365 if ( (newobj = newSHAobject())==NULL) in SHA_copy()
368 SHAcopy(self, newobj); in SHA_copy()
369 return (PyObject *)newobj; in SHA_copy()
D_hashopenssl.c202 EVPobject *newobj; in EVP_copy() local
204 if ( (newobj = newEVPobject(self->name))==NULL) in EVP_copy()
207 if (!locked_EVP_MD_CTX_copy(newobj->ctx, self)) { in EVP_copy()
210 return (PyObject *)newobj; in EVP_copy()
Dsha256module.c410 SHAobject *newobj; in SHA256_copy() local
413 if ( (newobj = newSHA256object())==NULL) in SHA256_copy()
416 if ( (newobj = newSHA224object())==NULL) in SHA256_copy()
420 SHAcopy(self, newobj); in SHA256_copy()
421 return (PyObject *)newobj; in SHA256_copy()
Dsha512module.c476 SHAobject *newobj; in SHA512_copy() local
479 if ( (newobj = newSHA512object())==NULL) in SHA512_copy()
482 if ( (newobj = newSHA384object())==NULL) in SHA512_copy()
486 SHAcopy(self, newobj); in SHA512_copy()
487 return (PyObject *)newobj; in SHA512_copy()
Doperator.c669 PyObject *newobj, *str; in dotted_getattr() local
677 newobj = PyObject_GetAttr(obj, str); in dotted_getattr()
680 if (newobj == NULL) in dotted_getattr()
682 obj = newobj; in dotted_getattr()
/external/python/cpython3/Objects/
Dtupleobject.c690 PyObject *tmp, *newobj, *item; in tuple_subtype_new() local
698 newobj = type->tp_alloc(type, n = PyTuple_GET_SIZE(tmp)); in tuple_subtype_new()
699 if (newobj == NULL) in tuple_subtype_new()
704 PyTuple_SET_ITEM(newobj, i, item); in tuple_subtype_new()
707 return newobj; in tuple_subtype_new()
Dtypeobject.c4394 PyObject *newobj, *newargs, *state, *listitems, *dictitems; in reduce_newobj() local
4420 newobj = _PyObject_GetAttrId(copyreg, &PyId___newobj__); in reduce_newobj()
4422 if (newobj == NULL) { in reduce_newobj()
4430 Py_DECREF(newobj); in reduce_newobj()
4446 newobj = _PyObject_GetAttrId(copyreg, &PyId___newobj_ex__); in reduce_newobj()
4448 if (newobj == NULL) { in reduce_newobj()
4457 Py_DECREF(newobj); in reduce_newobj()
4471 Py_DECREF(newobj); in reduce_newobj()
4476 Py_DECREF(newobj); in reduce_newobj()
4482 result = PyTuple_Pack(5, newobj, newargs, state, listitems, dictitems); in reduce_newobj()
[all …]
Dfloatobject.c1639 PyObject *tmp, *newobj; in float_subtype_new() local
1646 newobj = type->tp_alloc(type, 0); in float_subtype_new()
1647 if (newobj == NULL) { in float_subtype_new()
1651 ((PyFloatObject *)newobj)->ob_fval = ((PyFloatObject *)tmp)->ob_fval; in float_subtype_new()
1653 return newobj; in float_subtype_new()
/external/python/cpython2/Lib/plat-mac/
Daepack.py356 newobj = mkobject(dict)
359 newobj.__class__ = classtype
360 return newobj

123