Debian Codegraph @

src/3rdparty/javascriptcore/JavaScriptCore/wtf/FastAllocBase.h

raw symbols SCIP
1 /*
2 * Copyright (C) 2008, 2009 Paul Pedriana <[email protected]>. All rights reserved.
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions
6 * are met:
7 *
8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright
11 * notice, this list of conditions and the following disclaimer in the
12 * documentation and/or other materials provided with the distribution.
13 * 3. Neither the name of Apple Computer, Inc. ("Apple") nor the names of
14 * its contributors may be used to endorse or promote products derived
15 * from this software without specific prior written permission.
16 *
17 * THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY
18 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
19 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
20 * DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY
21 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
22 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
23 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
24 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 */
28
29 #ifndef FastAllocBase_h
30 #define FastAllocBase_hcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/FastAllocBase.h:30:9`!
31
32 // Provides customizable overrides of fastMalloc/fastFree and operator new/delete
33 //
34 // Provided functionality:
35 // namespace WTF {
36 // class FastAllocBase;
37 //
38 // T* fastNew<T>();
39 // T* fastNew<T>(arg);
40 // T* fastNew<T>(arg, arg);
41 // T* fastNewArray<T>(count);
42 // void fastDelete(T* p);
43 // void fastDeleteArray(T* p);
44 // void fastNonNullDelete(T* p);
45 // void fastNonNullDeleteArray(T* p);
46 // }
47 //
48 // FastDelete assumes that the underlying
49 //
50 // Example usage:
51 // class Widget : public FastAllocBase { ... };
52 //
53 // char* charPtr = fastNew<char>();
54 // fastDelete(charPtr);
55 //
56 // char* charArrayPtr = fastNewArray<char>(37);
57 // fastDeleteArray(charArrayPtr);
58 //
59 // void** voidPtrPtr = fastNew<void*>();
60 // fastDelete(voidPtrPtr);
61 //
62 // void** voidPtrArrayPtr = fastNewArray<void*>(37);
63 // fastDeleteArray(voidPtrArrayPtr);
64 //
65 // POD* podPtr = fastNew<POD>();
66 // fastDelete(podPtr);
67 //
68 // POD* podArrayPtr = fastNewArray<POD>(37);
69 // fastDeleteArray(podArrayPtr);
70 //
71 // Object* objectPtr = fastNew<Object>();
72 // fastDelete(objectPtr);
73 //
74 // Object* objectArrayPtr = fastNewArray<Object>(37);
75 // fastDeleteArray(objectArrayPtr);
76 //
77
78 #include <new>
79 #include <stdint.h>
80 #include <stdlib.h>
81 #include <string.h>
82 #include "Assertions.h"cxx . . $ `<file>/src/3rdparty/javascriptcore/JavaScriptCore/wtf/Assertions.h`/
83 #include "FastMalloc.h"cxx . . $ `<file>/src/3rdparty/javascriptcore/JavaScriptCore/wtf/FastMalloc.h`/
84 #include "TypeTraits.h"cxx . . $ `<file>/src/3rdparty/javascriptcore/JavaScriptCore/wtf/TypeTraits.h`/
85
86 namespace WTFcxx . . $ `<built-in>:467:9`! {
87
88 class FastAllocBasecxx . . $ QTWTF/FastAllocBase# {
89 public:
90 // Placement operator new.
91 void* operatorcxx . . $ QTWTF/FastAllocBase#`operator new`(7cf5f2fc6057a0cc). new(size_tcxx . . $ size_t#, void* p) { return p; }
92 void* operatorcxx . . $ QTWTF/FastAllocBase#`operator new[]`(7cf5f2fc6057a0cc). new[](size_tcxx . . $ size_t#, void* p) { return p; }
93
94 void* operatorcxx . . $ QTWTF/FastAllocBase#`operator new`(bfcfa4d6b7f7ef64). new(size_tcxx . . $ size_t# size)
95 {
96 void* p = fastMalloccxx . . $ QTWTF/fastMalloc(bfcfa4d6b7f7ef64).(size);
97 fastMallocMatchValidateMalloccxx . . $ QTWTF/fastMallocMatchValidateMalloc(69548153c9894042).(p, Internalcxx . . $ QTWTF/Internal/::AllocTypeClassNewcxx . . $ QTWTF/Internal/AllocTypeClassNew.);
98 return p;
99 }
100
101 void operatorcxx . . $ QTWTF/FastAllocBase#`operator delete`(5d22bdacc48458e8). delete(void* p)
102 {
103 fastMallocMatchValidateFreecxx . . $ QTWTF/fastMallocMatchValidateFree(69548153c9894042).(p, Internalcxx . . $ QTWTF/Internal/::AllocTypeClassNewcxx . . $ QTWTF/Internal/AllocTypeClassNew.);
104 fastFreecxx . . $ QTWTF/fastFree(5d22bdacc48458e8).(p);
105 }
106
107 void* operatorcxx . . $ QTWTF/FastAllocBase#`operator new[]`(bfcfa4d6b7f7ef64). new[](size_tcxx . . $ size_t# size)
108 {
109 void* p = fastMalloccxx . . $ QTWTF/fastMalloc(bfcfa4d6b7f7ef64).(size);
110 fastMallocMatchValidateMalloccxx . . $ QTWTF/fastMallocMatchValidateMalloc(69548153c9894042).(p, Internalcxx . . $ QTWTF/Internal/::AllocTypeClassNewArraycxx . . $ QTWTF/Internal/AllocTypeClassNewArray.);
111 return p;
112 }
113
114 void operatorcxx . . $ QTWTF/FastAllocBase#`operator delete[]`(5d22bdacc48458e8). delete[](void* p)
115 {
116 fastMallocMatchValidateFreecxx . . $ QTWTF/fastMallocMatchValidateFree(69548153c9894042).(p, Internalcxx . . $ QTWTF/Internal/::AllocTypeClassNewArraycxx . . $ QTWTF/Internal/AllocTypeClassNewArray.);
117 fastFreecxx . . $ QTWTF/fastFree(5d22bdacc48458e8).(p);
118 }
119 };
120
121 // fastNew / fastDelete
122
123 template <typename T>
124 inline T* fastNewcxx . . $ QTWTF/fastNew(155dc7f103cdb9db).()
125 {
126 void* p = fastMalloccxx . . $ QTWTF/fastMalloc(bfcfa4d6b7f7ef64).(sizeof(T));
127
128 if (!p)
129 return 0;
130
131 fastMallocMatchValidateMalloccxx . . $ QTWTF/fastMallocMatchValidateMalloc(69548153c9894042).(p, Internalcxx . . $ QTWTF/Internal/::AllocTypeFastNewcxx . . $ QTWTF/Internal/AllocTypeFastNew.);
132 return ::new(p) T;
133 }
134
135 template <typename T, typename Arg1>
136 inline T* fastNewcxx . . $ QTWTF/fastNew(12bf399c05f63248).(Arg1 arg1)
137 {
138 void* p = fastMalloccxx . . $ QTWTF/fastMalloc(bfcfa4d6b7f7ef64).(sizeof(T));
139
140 if (!p)
141 return 0;
142
143 fastMallocMatchValidateMalloccxx . . $ QTWTF/fastMallocMatchValidateMalloc(69548153c9894042).(p, Internalcxx . . $ QTWTF/Internal/::AllocTypeFastNewcxx . . $ QTWTF/Internal/AllocTypeFastNew.);
144 return ::new(p) T(arg1);
145 }
146
147 template <typename T, typename Arg1, typename Arg2>
148 inline T* fastNewcxx . . $ QTWTF/fastNew(d65af866056fa2a).(Arg1 arg1, Arg2 arg2)
149 {
150 void* p = fastMalloccxx . . $ QTWTF/fastMalloc(bfcfa4d6b7f7ef64).(sizeof(T));
151
152 if (!p)
153 return 0;
154
155 fastMallocMatchValidateMalloccxx . . $ QTWTF/fastMallocMatchValidateMalloc(69548153c9894042).(p, Internalcxx . . $ QTWTF/Internal/::AllocTypeFastNewcxx . . $ QTWTF/Internal/AllocTypeFastNew.);
156 return ::new(p) T(arg1, arg2);
157 }
158
159 template <typename T, typename Arg1, typename Arg2, typename Arg3>
160 inline T* fastNewcxx . . $ QTWTF/fastNew(46f1d535c895f92b).(Arg1 arg1, Arg2 arg2, Arg3 arg3)
161 {
162 void* p = fastMalloccxx . . $ QTWTF/fastMalloc(bfcfa4d6b7f7ef64).(sizeof(T));
163
164 if (!p)
165 return 0;
166
167 fastMallocMatchValidateMalloccxx . . $ QTWTF/fastMallocMatchValidateMalloc(69548153c9894042).(p, Internalcxx . . $ QTWTF/Internal/::AllocTypeFastNewcxx . . $ QTWTF/Internal/AllocTypeFastNew.);
168 return ::new(p) T(arg1, arg2, arg3);
169 }
170
171 template <typename T, typename Arg1, typename Arg2, typename Arg3, typename Arg4>
172 inline T* fastNewcxx . . $ QTWTF/fastNew(658244ded4d237d5).(Arg1 arg1, Arg2 arg2, Arg3 arg3, Arg4 arg4)
173 {
174 void* p = fastMalloccxx . . $ QTWTF/fastMalloc(bfcfa4d6b7f7ef64).(sizeof(T));
175
176 if (!p)
177 return 0;
178
179 fastMallocMatchValidateMalloccxx . . $ QTWTF/fastMallocMatchValidateMalloc(69548153c9894042).(p, Internalcxx . . $ QTWTF/Internal/::AllocTypeFastNewcxx . . $ QTWTF/Internal/AllocTypeFastNew.);
180 return ::new(p) T(arg1, arg2, arg3, arg4);
181 }
182
183 template <typename T, typename Arg1, typename Arg2, typename Arg3, typename Arg4, typename Arg5>
184 inline T* fastNewcxx . . $ QTWTF/fastNew(6d82327567ff1df0).(Arg1 arg1, Arg2 arg2, Arg3 arg3, Arg4 arg4, Arg5 arg5)
185 {
186 void* p = fastMalloccxx . . $ QTWTF/fastMalloc(bfcfa4d6b7f7ef64).(sizeof(T));
187
188 if (!p)
189 return 0;
190
191 fastMallocMatchValidateMalloccxx . . $ QTWTF/fastMallocMatchValidateMalloc(69548153c9894042).(p, Internalcxx . . $ QTWTF/Internal/::AllocTypeFastNewcxx . . $ QTWTF/Internal/AllocTypeFastNew.);
192 return ::new(p) T(arg1, arg2, arg3, arg4, arg5);
193 }
194
195 namespace Internalcxx . . $ QTWTF/Internal/ {
196
197 // We define a union of pointer to an integer and pointer to T.
198 // When non-POD arrays are allocated we add a few leading bytes to tell what
199 // the size of the array is. We return to the user the pointer to T.
200 // The way to think of it is as if we allocate a struct like so:
201 // struct Array {
202 // AllocAlignmentInteger m_size;
203 // T m_T[array count];
204 // };
205
206 template <typename T>
207 union ArraySizecxx . . $ QTWTF/Internal/ArraySize# {
208 AllocAlignmentIntegercxx . . $ QTWTF/AllocAlignmentInteger#* sizecxx . . $ QTWTF/Internal/ArraySize#size.;
209 T* tcxx . . $ QTWTF/Internal/ArraySize#t.;
210 };
211
212 // This is a support template for fastNewArray.
213 // This handles the case wherein T has a trivial ctor and a trivial dtor.
214 template <typename T, bool trivialCtor, bool trivialDtor>
215 struct NewArrayImplcxx . . $ QTWTF/Internal/NewArrayImpl# {
216 static T* fastNewArraycxx . . $ QTWTF/Internal/NewArrayImpl#fastNewArray(60a54806b2015313).(size_tcxx . . $ size_t# count)
217 {
218 T* p = static_cast<T*>(fastMalloccxx . . $ QTWTF/fastMalloc(bfcfa4d6b7f7ef64).(sizeof(T) * count));
219 fastMallocMatchValidateMalloccxx . . $ QTWTF/fastMallocMatchValidateMalloc(69548153c9894042).(p, Internalcxx . . $ QTWTF/Internal/::AllocTypeFastNewArraycxx . . $ QTWTF/Internal/AllocTypeFastNewArray.);
220 return p;
221 }
222 };
223
224 // This is a support template for fastNewArray.
225 // This handles the case wherein T has a non-trivial ctor and a trivial dtor.
226 template <typename T>
227 struct NewArrayImplcxx . . $ QTWTF/Internal/NewArrayImpl#<T, false, true> {
228 static T* fastNewArraycxx . . $ QTWTF/Internal/NewArrayImpl#fastNewArray(60a54806b2015313).(size_tcxx . . $ size_t# count)
229 {
230 T* p = static_cast<T*>(fastMalloccxx . . $ QTWTF/fastMalloc(bfcfa4d6b7f7ef64).(sizeof(T) * count));
231
232 if (!p)
233 return 0;
234
235 fastMallocMatchValidateMalloccxx . . $ QTWTF/fastMallocMatchValidateMalloc(69548153c9894042).(p, Internalcxx . . $ QTWTF/Internal/::AllocTypeFastNewArraycxx . . $ QTWTF/Internal/AllocTypeFastNewArray.);
236
237 for (T* pObject = p, *pObjectEnd = pObject +cxx . . $ operator+(f3789794639247d3). count; pObject !=cxx . . $ QTWTF/`operator!=`(31369b2754de4004). pObjectEnd; ++pObject)
238 ::new(pObject) T;
239
240 return p;
241 }
242 };
243
244 // This is a support template for fastNewArray.
245 // This handles the case wherein T has a trivial ctor and a non-trivial dtor.
246 template <typename T>
247 struct NewArrayImplcxx . . $ QTWTF/Internal/NewArrayImpl#<T, true, false> {
248 static T* fastNewArraycxx . . $ QTWTF/Internal/NewArrayImpl#fastNewArray(60a54806b2015313).(size_tcxx . . $ size_t# count)
249 {
250 void* p = fastMalloccxx . . $ QTWTF/fastMalloc(bfcfa4d6b7f7ef64).(sizeof(AllocAlignmentIntegercxx . . $ QTWTF/AllocAlignmentInteger#) + (sizeof(T) * count));
251 ArraySizecxx . . $ QTWTF/Internal/ArraySize#<T> a = { static_cast<AllocAlignmentIntegercxx . . $ QTWTF/AllocAlignmentInteger#*>(p) };
252
253 if (!p)
254 return 0;
255
256 fastMallocMatchValidateMalloccxx . . $ QTWTF/fastMallocMatchValidateMalloc(69548153c9894042).(p, Internalcxx . . $ QTWTF/Internal/::AllocTypeFastNewArraycxx . . $ QTWTF/Internal/AllocTypeFastNewArray.);
257 *a.sizecxx . . $ QTWTF/Internal/ArraySize#size.++ = count;
258 // No need to construct the objects in this case.
259
260 return a.tcxx . . $ QTWTF/Internal/ArraySize#t.;
261 }
262 };
263
264 // This is a support template for fastNewArray.
265 // This handles the case wherein T has a non-trivial ctor and a non-trivial dtor.
266 template <typename T>
267 struct NewArrayImplcxx . . $ QTWTF/Internal/NewArrayImpl#<T, false, false> {
268 static T* fastNewArraycxx . . $ QTWTF/Internal/NewArrayImpl#fastNewArray(60a54806b2015313).(size_tcxx . . $ size_t# count)
269 {
270 void* p = fastMalloccxx . . $ QTWTF/fastMalloc(bfcfa4d6b7f7ef64).(sizeof(AllocAlignmentIntegercxx . . $ QTWTF/AllocAlignmentInteger#) + (sizeof(T) * count));
271 ArraySizecxx . . $ QTWTF/Internal/ArraySize#<T> a = { static_cast<AllocAlignmentIntegercxx . . $ QTWTF/AllocAlignmentInteger#*>(p) };
272
273 if (!p)
274 return 0;
275
276 fastMallocMatchValidateMalloccxx . . $ QTWTF/fastMallocMatchValidateMalloc(69548153c9894042).(p, Internalcxx . . $ QTWTF/Internal/::AllocTypeFastNewArraycxx . . $ QTWTF/Internal/AllocTypeFastNewArray.);
277 *a.sizecxx . . $ QTWTF/Internal/ArraySize#size.++ = count;
278
279 for (T* pT = a.tcxx . . $ QTWTF/Internal/ArraySize#t., *pTEnd = pT +cxx . . $ operator+(f3789794639247d3). count; pT !=cxx . . $ `operator!=`(5fef0b30dc60f5c). pTEnd; ++pT)
280 ::new(pT) T;
281
282 return a.tcxx . . $ QTWTF/Internal/ArraySize#t.;
283 }
284 };
285 } // namespace Internal
286
287 template <typename T>
288 inline T* fastNewArraycxx . . $ QTWTF/fastNewArray(60a54806b2015313).(size_tcxx . . $ size_t# count)
289 {
290 return Internalcxx . . $ QTWTF/Internal/::NewArrayImplcxx . . $ QTWTF/Internal/NewArrayImpl#<T, WTFcxx . . $ `<built-in>:467:9`!::HasTrivialConstructor<T>::value, WTFcxx . . $ `<built-in>:467:9`!::HasTrivialDestructor<T>::value>::fastNewArray(count);
291 }
292
293 template <typename T>
294 inline void fastDeletecxx . . $ QTWTF/fastDelete(ebd0a1552f8ce24f).(T* p)
295 {
296 if (!p)
297 return;
298
299 fastMallocMatchValidateFreecxx . . $ QTWTF/fastMallocMatchValidateFree(69548153c9894042).(p, Internalcxx . . $ QTWTF/Internal/::AllocTypeFastNewcxx . . $ QTWTF/Internal/AllocTypeFastNew.);
300 p->~T();
301 fastFreecxx . . $ QTWTF/fastFree(5d22bdacc48458e8).(p);
302 }
303
304 template <typename T>
305 inline void fastDeleteSkippingDestructorcxx . . $ QTWTF/fastDeleteSkippingDestructor(ebd0a1552f8ce24f).(T* p)
306 {
307 if (!p)
308 return;
309
310 fastMallocMatchValidateFreecxx . . $ QTWTF/fastMallocMatchValidateFree(69548153c9894042).(p, Internalcxx . . $ QTWTF/Internal/::AllocTypeFastNewcxx . . $ QTWTF/Internal/AllocTypeFastNew.);
311 fastFreecxx . . $ QTWTF/fastFree(5d22bdacc48458e8).(p);
312 }
313
314 namespace Internalcxx . . $ QTWTF/Internal/ {
315 // This is a support template for fastDeleteArray.
316 // This handles the case wherein T has a trivial dtor.
317 template <typename T, bool trivialDtor>
318 struct DeleteArrayImplcxx . . $ QTWTF/Internal/DeleteArrayImpl# {
319 static void fastDeleteArraycxx . . $ QTWTF/Internal/DeleteArrayImpl#fastDeleteArray(5d22bdacc48458e8).(void* p)
320 {
321 // No need to destruct the objects in this case.
322 // We expect that fastFree checks for null.
323 fastMallocMatchValidateFreecxx . . $ QTWTF/fastMallocMatchValidateFree(69548153c9894042).(p, Internalcxx . . $ QTWTF/Internal/::AllocTypeFastNewArraycxx . . $ QTWTF/Internal/AllocTypeFastNewArray.);
324 fastFreecxx . . $ QTWTF/fastFree(5d22bdacc48458e8).(p);
325 }
326 };
327
328 // This is a support template for fastDeleteArray.
329 // This handles the case wherein T has a non-trivial dtor.
330 template <typename T>
331 struct DeleteArrayImplcxx . . $ QTWTF/Internal/DeleteArrayImpl#<T, false> {
332 static void fastDeleteArraycxx . . $ QTWTF/Internal/DeleteArrayImpl#fastDeleteArray(ebd0a1552f8ce24f).(T* p)
333 {
334 if (!p)
335 return;
336
337 ArraySizecxx . . $ QTWTF/Internal/ArraySize#<T> a;
338 a.tcxx . . $ QTWTF/Internal/ArraySize#t. = p;
339 a.sizecxx . . $ QTWTF/Internal/ArraySize#size.--; // Decrement size pointer
340
341 T* pEnd = p +cxx . . $ operator+(f3789794639247d3). *a.sizecxx . . $ QTWTF/Internal/ArraySize#size.;
342 while (pEnd-- !=cxx . . $ `operator!=`(d8c68a82b7caa558). p)
343 pEnd->~T();
344
345 fastMallocMatchValidateFreecxx . . $ QTWTF/fastMallocMatchValidateFree(69548153c9894042).(a.sizecxx . . $ QTWTF/Internal/ArraySize#size., Internalcxx . . $ QTWTF/Internal/::AllocTypeFastNewArraycxx . . $ QTWTF/Internal/AllocTypeFastNewArray.);
346 fastFreecxx . . $ QTWTF/fastFree(5d22bdacc48458e8).(a.sizecxx . . $ QTWTF/Internal/ArraySize#size.);
347 }
348 };
349
350 } // namespace Internal
351
352 template <typename T>
353 void fastDeleteArraycxx . . $ QTWTF/fastDeleteArray(ebd0a1552f8ce24f).(T* p)
354 {
355 Internalcxx . . $ QTWTF/Internal/::DeleteArrayImplcxx . . $ QTWTF/Internal/DeleteArrayImpl#<T, WTFcxx . . $ `<built-in>:467:9`!::HasTrivialDestructor<T>::value>::fastDeleteArray(p);
356 }
357
358
359 template <typename T>
360 inline void fastNonNullDeletecxx . . $ QTWTF/fastNonNullDelete(ebd0a1552f8ce24f).(T* p)
361 {
362 fastMallocMatchValidateFreecxx . . $ QTWTF/fastMallocMatchValidateFree(69548153c9894042).(p, Internalcxx . . $ QTWTF/Internal/::AllocTypeFastNewcxx . . $ QTWTF/Internal/AllocTypeFastNew.);
363 p->~T();
364 fastFreecxx . . $ QTWTF/fastFree(5d22bdacc48458e8).(p);
365 }
366
367 namespace Internalcxx . . $ QTWTF/Internal/ {
368 // This is a support template for fastDeleteArray.
369 // This handles the case wherein T has a trivial dtor.
370 template <typename T, bool trivialDtor>
371 struct NonNullDeleteArrayImplcxx . . $ QTWTF/Internal/NonNullDeleteArrayImpl# {
372 static void fastNonNullDeleteArraycxx . . $ QTWTF/Internal/NonNullDeleteArrayImpl#fastNonNullDeleteArray(5d22bdacc48458e8).(void* p)
373 {
374 fastMallocMatchValidateFreecxx . . $ QTWTF/fastMallocMatchValidateFree(69548153c9894042).(p, Internalcxx . . $ QTWTF/Internal/::AllocTypeFastNewArraycxx . . $ QTWTF/Internal/AllocTypeFastNewArray.);
375 // No need to destruct the objects in this case.
376 fastFreecxx . . $ QTWTF/fastFree(5d22bdacc48458e8).(p);
377 }
378 };
379
380 // This is a support template for fastDeleteArray.
381 // This handles the case wherein T has a non-trivial dtor.
382 template <typename T>
383 struct NonNullDeleteArrayImplcxx . . $ QTWTF/Internal/NonNullDeleteArrayImpl#<T, false> {
384 static void fastNonNullDeleteArraycxx . . $ QTWTF/Internal/NonNullDeleteArrayImpl#fastNonNullDeleteArray(ebd0a1552f8ce24f).(T* p)
385 {
386 ArraySizecxx . . $ QTWTF/Internal/ArraySize#<T> a;
387 a.tcxx . . $ QTWTF/Internal/ArraySize#t. = p;
388 a.sizecxx . . $ QTWTF/Internal/ArraySize#size.--;
389
390 T* pEnd = p +cxx . . $ operator+(f3789794639247d3). *a.sizecxx . . $ QTWTF/Internal/ArraySize#size.;
391 while (pEnd-- !=cxx . . $ `operator!=`(d6fdaaa0b98f51ed). p)
392 pEnd->~T();
393
394 fastMallocMatchValidateFreecxx . . $ QTWTF/fastMallocMatchValidateFree(69548153c9894042).(a.sizecxx . . $ QTWTF/Internal/ArraySize#size., Internalcxx . . $ QTWTF/Internal/::AllocTypeFastNewArraycxx . . $ QTWTF/Internal/AllocTypeFastNewArray.);
395 fastFreecxx . . $ QTWTF/fastFree(5d22bdacc48458e8).(a.sizecxx . . $ QTWTF/Internal/ArraySize#size.);
396 }
397 };
398
399 } // namespace Internal
400
401 template <typename T>
402 void fastNonNullDeleteArraycxx . . $ QTWTF/fastNonNullDeleteArray(ebd0a1552f8ce24f).(T* p)
403 {
404 Internalcxx . . $ QTWTF/Internal/::NonNullDeleteArrayImplcxx . . $ QTWTF/Internal/NonNullDeleteArrayImpl#<T, WTFcxx . . $ `<built-in>:467:9`!::HasTrivialDestructor<T>::value>::fastNonNullDeleteArray(p);
405 }
406
407
408 } // namespace WTF
409
410 using WTFcxx . . $ `<built-in>:467:9`!::FastAllocBasecxx . . $ FastAllocBase#;
411 using WTFcxx . . $ `<built-in>:467:9`!::fastDeleteSkippingDestructorcxx . . $ QTWTF/fastDeleteSkippingDestructor(ebd0a1552f8ce24f).;
412
413 #endif // FastAllocBase_h