/external/libcxx/src/ |
H A D | new.cpp | 1 //===--------------------------- 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 D | cxa_new_delete.cpp | 9 // 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 D | JBig2_Object.cpp | 9 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 D | Prefix.h | 24 * 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 D | pycrypto_aes.py | 12 def new(key, mode, IV): function 21 self.context = Crypto.Cipher.AES.new(key, mode, IV)
|
H A D | pycrypto_rc4.py | 12 def new(key): function 20 self.context = Crypto.Cipher.ARC4.new(key)
|
H A D | pycrypto_tripledes.py | 12 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 D | scoped_autorelease_pool.h | 12 // 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 D | throttle.c | 124 * 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 D | vmbuf.c | 124 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 D | dtor.pass.cpp | 18 #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 D | codecvt_utf16.pass.cpp | 28 void* operator new(std::size_t s) throw(std::bad_alloc) 53 std::locale loc(std::locale::classic(), new C);
|
H A D | codecvt_utf8.pass.cpp | 28 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 D | char_pointer.pass.cpp | 15 #include <new> 22 void* operator new(std::size_t s) throw(std::bad_alloc)
|
H A D | locale_char_pointer_cat.pass.cpp | 15 #include <new> 22 void* operator new(std::size_t s) throw(std::bad_alloc)
|
H A D | locale_locale_cat.pass.cpp | 15 #include <new> 22 void* operator new(std::size_t s) throw(std::bad_alloc)
|
H A D | locale_string_cat.pass.cpp | 15 #include <new> 22 void* operator new(std::size_t s) throw(std::bad_alloc)
|
H A D | string.pass.cpp | 15 #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 D | ctor.pass.cpp | 14 // 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 D | NewDelete-custom.cpp | 12 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 D | asan_new_delete.cc | 12 // 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 D | msan_new_delete.cc | 12 // 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 D | utility_tests.cpp | 13 #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 D | overloaded-new.cpp | 1 // 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 D | model_neutral_mutable_entry.h | 104 void* operator new(size_t size) { return (::operator new)(size); }
|