Searched defs:new (Results 26 - 50 of 368) sorted by relevance

1234567891011>>

/external/libcxx/src/
H A Dnew.cpp1 //===--------------------------- new.cpp ----------------------------------===//
14 #include "new"
25 // shared library. The global holding the current new handler is
40 // Implement all new and delete operators as weak definitions
46 operator new(std::size_t size)
73 operator new(size_t size, const std::nothrow_t&) _NOEXCEPT
80 p = ::operator new(size);
92 operator new[](size_t size)
97 return ::operator new(size);
102 operator new[](size_
[all...]
/external/libcxxabi/src/
H A Dcxa_new_delete.cpp9 // This file implements the new and delete operators.
14 #include <new>
18 [new.delete.single]
36 operator new(std::size_t size)
62 [new.delete.single]
64 Calls operator new(size). If the call returns normally, returns the result of
69 operator new(size_t size, const std::nothrow_t&)
79 p = ::operator new(size);
88 [new.delete.array]
90 Returns operator new(siz
[all...]
/external/pdfium/core/src/fxcodec/jbig2/
H A DJBig2_Object.cpp9 void *CJBig2_Object::operator new(size_t size, CJBig2_Module *pModule, FX_LPCSTR filename, int line)
20 void *CJBig2_Object::operator new(size_t size, CJBig2_Module *pModule)
35 void *CJBig2_Object::operator new[](size_t size, CJBig2_Module *pModule, size_t unit_size,
53 void *CJBig2_Object::operator new[](size_t size, CJBig2_Module *pModule, size_t unit_size)
/external/chromium_org/third_party/WebKit/Source/build/mac/
H A DPrefix.h24 * 3) the special trick to catch us using new or delete without including "config.h"
78 #include <new>
94 #define new ("if you use new/delete make sure to include config.h at the top of the file"()) macro
95 #define delete ("if you use new/delete make sure to include config.h at the top of the file"())
/external/chromium_org/third_party/tlslite/tlslite/utils/
H A Dpycrypto_aes.py12 def new(key, mode, IV): function
21 self.context = Crypto.Cipher.AES.new(key, mode, IV)
H A Dpycrypto_rc4.py12 def new(key): function
20 self.context = Crypto.Cipher.ARC4.new(key)
H A Dpycrypto_tripledes.py12 def new(key, mode, IV): function
21 self.context = Crypto.Cipher.DES3.new(key, mode, IV)
/external/chromium_org/third_party/webrtc/base/
H A Dscoped_autorelease_pool.h12 // an instance of this class using "new" - that will result in a compile-time
42 // Declaring private overrides of new and delete here enforces the "only use
45 // Note: new is declared as "throw()" to get around a gcc warning about new
48 void* operator new(size_t size) throw() { return NULL; }
/external/ipsec-tools/src/racoon/
H A Dthrottle.c124 * No match, if auth failed, allocate a new throttle entry
144 time_t new; local
147 new = remaining + isakmp_cfg_config.auth_throttle;
149 if (new > THROTTLE_PENALTY_MAX)
150 new = THROTTLE_PENALTY_MAX;
152 te->penalty = now + new;
H A Dvmbuf.c124 vchar_t *new; local
131 if ((new = vmalloc(src->l)) == NULL)
134 memcpy(new->v, src->v, src->l);
136 return new;
/external/libcxx/test/localization/locale.categories/category.ctype/facet.ctype.special/facet.ctype.char.dtor/
H A Ddtor.pass.cpp18 #include <new>
22 void* operator new[](size_t sz)
24 return operator new(sz);
37 std::locale l(std::locale::classic(), new std::ctype<char>);
44 std::locale l(std::locale::classic(), new std::ctype<char>(table));
51 new std::ctype<char>(new std::ctype<char>::mask[256], true));
/external/libcxx/test/localization/locale.stdcvt/
H A Dcodecvt_utf16.pass.cpp28 void* operator new(std::size_t s) throw(std::bad_alloc)
53 std::locale loc(std::locale::classic(), new C);
H A Dcodecvt_utf8.pass.cpp28 void* operator new(std::size_t s) throw(std::bad_alloc)
53 std::locale loc(std::locale::classic(), new C);
/external/libcxx/test/localization/locales/locale/locale.cons/
H A Dchar_pointer.pass.cpp15 #include <new>
22 void* operator new(std::size_t s) throw(std::bad_alloc)
H A Dlocale_char_pointer_cat.pass.cpp15 #include <new>
22 void* operator new(std::size_t s) throw(std::bad_alloc)
H A Dlocale_locale_cat.pass.cpp15 #include <new>
22 void* operator new(std::size_t s) throw(std::bad_alloc)
H A Dlocale_string_cat.pass.cpp15 #include <new>
22 void* operator new(std::size_t s) throw(std::bad_alloc)
H A Dstring.pass.cpp15 #include <new>
22 void* operator new(std::size_t s) throw(std::bad_alloc)
/external/libcxx/test/localization/locales/locale.convenience/conversions/conversions.buffer/
H A Dctor.pass.cpp14 // wbuffer_convert(streambuf *bytebuf = 0, Codecvt *pcvt = new Codecvt,
21 #include <new>
25 void* operator new(std::size_t s) throw(std::bad_alloc)
59 B b(s.rdbuf(), new std::codecvt_utf8<wchar_t>);
66 B b(s.rdbuf(), new std::codecvt_utf8<wchar_t>, std::mbstate_t());
/external/clang/test/Analysis/
H A DNewDelete-custom.cpp12 void *operator new[](std::size_t size) throw() { return allocator(size); }
13 void *operator new(std::size_t size) throw() { return allocator(size); }
14 void *operator new(std::size_t size, std::nothrow_t& nothrow) throw() { return allocator(size); }
15 void *operator new(std::size_t, double d);
19 void *operator new(std::size_t);
23 void *p1 = C::operator new(0); // no warn
25 C *p2 = new C; // no warn
27 C *c3 = ::new C;
34 void *p = operator new[](0); // call is inlined, no warn
38 int *p = new in
[all...]
/external/compiler-rt/lib/asan/
H A Dasan_new_delete.cc12 // Interceptors for operators new and delete.
35 // Fake std::nothrow_t to avoid including <new>.
44 // On OS X it's not enough to just provide our own 'operator new' and
47 // dylib and libstdc++, each of those'll have its implementation of new and
62 void *operator new(size_t size) { OPERATOR_NEW_BODY(FROM_NEW); }
64 void *operator new[](size_t size) { OPERATOR_NEW_BODY(FROM_NEW_BR); }
66 void *operator new(size_t size, std::nothrow_t const&)
69 void *operator new[](size_t size, std::nothrow_t const&)
/external/compiler-rt/lib/msan/
H A Dmsan_new_delete.cc12 // Interceptors for operators new and delete.
31 // Fake std::nothrow_t to avoid including <new>.
42 void *operator new(size_t size) { OPERATOR_NEW_BODY; }
44 void *operator new[](size_t size) { OPERATOR_NEW_BODY; }
46 void *operator new(size_t size, std::nothrow_t const&) { OPERATOR_NEW_BODY; }
48 void *operator new[](size_t size, std::nothrow_t const&) { OPERATOR_NEW_BODY; }
/external/oprofile/libutil++/tests/
H A Dutility_tests.cpp13 #include <new>
24 void* operator new(size_t size) throw(bad_alloc)
30 void* operator new[](size_t size) throw(bad_alloc)
54 cerr << "new(size_t) leak\n";
59 cerr << "new[](size_t) leak\n";
70 scoped_ptr<A> a(new A);
72 scoped_ptr<A> a(new A);
83 scoped_array<A> b(new A[10]);
85 scoped_array<A> a(new A[10]);
/external/valgrind/main/massif/tests/
H A Doverloaded-new.cpp1 // operator new(unsigned)
2 // operator new[](unsigned)
3 // operator new(unsigned, std::nothrow_t const&)
4 // operator new[](unsigned, std::nothrow_t const&)
8 #include <new>
17 __attribute__((noinline)) void* operator new (std::size_t n) throw (std::bad_alloc)
22 __attribute__((noinline)) void* operator new (std::size_t n, std::nothrow_t const &) throw ()
27 __attribute__((noinline)) void* operator new[] (std::size_t n) throw (std::bad_alloc)
32 __attribute__((noinline)) void* operator new[] (std::size_t n, std::nothrow_t const &) throw ()
49 s* p1 = new
[all...]
/external/chromium_org/sync/syncable/
H A Dmodel_neutral_mutable_entry.h104 void* operator new(size_t size) { return (::operator new)(size); }

Completed in 479 milliseconds

1234567891011>>