Build fix.
[WebKit-https.git] / Source / WTF / ChangeLog
1 2012-05-22  Jessie Berlin  <jberlin@apple.com>
2
3         Build fix.
4
5         * wtf/RAMSize.cpp:
6         (WTF::computeRAMSize):
7         If you say you are going to return a size_t, actually return a size_t.
8
9 2012-05-21  Geoffrey Garen  <ggaren@apple.com>
10
11         GC allocation trigger should be tuned to system RAM
12         https://bugs.webkit.org/show_bug.cgi?id=87039
13
14         Reviewed by Darin Adler.
15
16         Added a helper function for measuring system RAM.
17
18         * GNUmakefile.list.am:
19         * WTF.gypi:
20         * WTF.pro:
21         * WTF.vcproj/WTF.vcproj:
22         * WTF.xcodeproj/project.pbxproj:
23         * wtf/AmountOfRAM.cpp: Added.
24         (WTF):
25         (WTF::computeAmountOfRAM):
26         (WTF::amountOfRAM):
27         * wtf/AmountOfRAM.h: Added.
28         (WTF):
29         * wtf/CMakeLists.txt:
30         * wtf/StdLibExtras.h:
31         (WTF):
32
33 2012-05-22  Allan Sandfeld Jensen  <allan.jensen@nokia.com>
34
35         GCC 4.7 and C++11 support.
36         https://bugs.webkit.org/show_bug.cgi?id=86465
37
38         Reviewed by Darin Adler.
39
40         Detect C++11 mode in GCC 4.7 and set appropiate compiler feature flags.
41         Turn C++11 override control into a compiler feature flag.
42         Fix non-clang support of compiler feature CXX_DELETED_FUNCTIONS.
43
44         * wtf/Compiler.h:
45         * wtf/Noncopyable.h:
46
47 2012-05-22  Filip Pizlo  <fpizlo@apple.com>
48
49         REGRESSION(r117861): It made almost all tests crash on Qt
50         https://bugs.webkit.org/show_bug.cgi?id=87082
51
52         Reviewed by Csaba Osztrogonác.
53         
54         Using OwnArrayPtr is a bad idea if you allocate array with fastCalloc.
55
56         * wtf/FastBitVector.h:
57         (WTF::FastBitVector::FastBitVector):
58         (WTF::FastBitVector::~FastBitVector):
59         (FastBitVector):
60         (WTF::FastBitVector::operator=):
61         (WTF::FastBitVector::resize):
62         (WTF::FastBitVector::setAll):
63         (WTF::FastBitVector::clearAll):
64         (WTF::FastBitVector::set):
65
66 2012-05-21  Filip Pizlo  <fpizlo@apple.com>
67
68         DFG should be able to compute dominators
69         https://bugs.webkit.org/show_bug.cgi?id=85269
70
71         Reviewed by Oliver Hunt.
72         
73         Merged r115754 from dfgopt.
74         
75         Added a bitvector class suitable for cheap static analysis. This class
76         differs from BitVector in that instead of optimizing for space, it
77         optimizes for execution time. Its API is also somewhat less friendly,
78         which is intentional; it's meant to be used in places where you know
79         up front how bit your bitvectors are going to be.
80
81         * GNUmakefile.list.am:
82         * WTF.vcproj/WTF.vcproj:
83         * WTF.xcodeproj/project.pbxproj:
84         * wtf/FastBitVector.h: Added.
85         (WTF):
86         (FastBitVector):
87         (WTF::FastBitVector::FastBitVector):
88         (WTF::FastBitVector::operator=):
89         (WTF::FastBitVector::numBits):
90         (WTF::FastBitVector::resize):
91         (WTF::FastBitVector::setAll):
92         (WTF::FastBitVector::clearAll):
93         (WTF::FastBitVector::set):
94         (WTF::FastBitVector::setAndCheck):
95         (WTF::FastBitVector::equals):
96         (WTF::FastBitVector::merge):
97         (WTF::FastBitVector::filter):
98         (WTF::FastBitVector::exclude):
99         (WTF::FastBitVector::clear):
100         (WTF::FastBitVector::get):
101         (WTF::FastBitVector::arrayLength):
102
103 2012-05-15  Gavin Barraclough  <barraclough@apple.com>
104
105         Add support for private names
106         https://bugs.webkit.org/show_bug.cgi?id=86509
107
108         Reviewed by Oliver Hunt.
109
110         The spec isn't final, but we can start adding support to allow property maps
111         to contain keys that aren't identifiers.
112
113         * wtf/text/StringImpl.h:
114         (WTF::StringImpl::StringImpl):
115         (StringImpl):
116         (WTF::StringImpl::createEmptyUnique):
117         (WTF::StringImpl::isEmptyUnique):
118             - Allow empty string impls to be allocated, which can be used as unique keys.
119
120 2012-05-21  Emil A Eklund <eae@chromium.org> and Levi Weintraub  <leviw@chromium.org>
121
122         Enable SUBPIXEL_LAYOUT feature flag on Chromium
123         https://bugs.webkit.org/show_bug.cgi?id=85555
124
125         Reviewed by Eric Seidel.
126
127         Enabling sub-pixel layout on Chromium port.
128
129         * wtf/Platform.h:
130
131 2012-05-21  Andreas Kling  <kling@webkit.org>
132
133         CSS: Move duplicate property elimination to parser.
134         <http://webkit.org/b/86948>
135
136         Reviewed by Antti Koivisto.
137
138         Add WTF::BitArray, a simple, malloc free, fixed-size bit array class.
139
140         * GNUmakefile.list.am:
141         * WTF.gypi:
142         * WTF.pro:
143         * WTF.vcproj/WTF.vcproj:
144         * WTF.xcodeproj/project.pbxproj:
145         * wtf/BitArray.h: Added.
146         (WTF):
147         (BitArray):
148         (WTF::BitArray::BitArray):
149         (WTF::BitArray::set):
150         (WTF::BitArray::get):
151         * wtf/CMakeLists.txt:
152
153 2012-05-21  Allan Sandfeld Jensen  <allan.jensen@nokia.com>
154
155         Colliding isinf/isnan between C99 and C++11 with GCC >=4.6
156         https://bugs.webkit.org/show_bug.cgi?id=59249
157
158         Reviewed by Darin Adler.
159
160         Workaround the isinf and isnan conflict in GCC C++11.
161
162         * wtf/Compiler.h:
163         * wtf/MathExtras.h:
164         (std::wtf_isinf):
165         (std::wtf_isnan):
166
167 2012-05-21  Andreas Kling  <kling@webkit.org>
168
169         REGRESSION(r117501): IconDatabase asserts on startup in synchronousIconForPageURL().
170         <http://webkit.org/b/86935>
171         <rdar://problem/11480012>
172
173         Reviewed by Anders Carlsson.
174
175         Added a swap() to HashCountedSet.
176
177         * wtf/HashCountedSet.h:
178         (HashCountedSet::swap):
179
180 2012-05-16  Geoffrey Garen  <ggaren@apple.com>
181
182         This is not a joke: 3.7X speedup from removing a call to sleep
183         https://bugs.webkit.org/show_bug.cgi?id=86702
184
185         Reviewed by Eric Seidel.
186
187         The speedup was on a GC benchmark, with a custom VM caching layer
188         not in TOT yet.
189
190         Instruments showed most GC threads spending the majority of their
191         time sleeping instead of doing useful work. Removing the call to
192         sleep sped up the benchmark.
193
194         * wtf/TCSpinLock.h:
195         (TCMalloc_SlowLock): Since a spin lock is only ever held for a short
196         amount of time, don't sleep for a long amount of time waiting for it
197         to unlock -- yielding to the scheduler is sufficient.
198
199         If we find a case where someone is sitting on a spin lock for over 2ms,
200         we should fix the spin lock holder, not the spin lock.
201
202 2012-05-16  Simon Fraser  <simon.fraser@apple.com>
203
204         Make things build with DUMP_HASHTABLE_STATS=1
205         https://bugs.webkit.org/show_bug.cgi?id=86571
206
207         Reviewed by Geoffrey Garen.
208         
209         DUMP_HASHTABLE_STATS bitrotted after the WTF separation. This patch
210         makes it build.
211         
212         Added WTF_EXPORTDATA to the global data, and WTF_EXPORT_PRIVATE to
213         the static HashTableStats methods. Added a dumpStats() method
214         that is not yet called anywhere; we can no longer rely on destroying
215         a global object to dump the stats because global destructors are
216         disallowed.
217
218         * wtf/HashTable.cpp:
219         (WTF):
220         (WTF::HashTableStats::recordCollisionAtCount):
221         (WTF::HashTableStats::dumpStats):
222         * wtf/HashTable.h:
223         (HashTableStats):
224
225 2012-05-15  Filip Pizlo  <fpizlo@apple.com>
226
227         shrinkToFit() is often not called for Vectors in CodeBlock
228         https://bugs.webkit.org/show_bug.cgi?id=86436
229
230         Reviewed by Oliver Hunt.
231         
232         Gave SegmentedVector a shrinkToFit() method. This only shrinks the segment
233         lookup table, which is likely to not be hugely profitable, but it is better
234         than nothing.
235
236         * wtf/SegmentedVector.h:
237         (SegmentedVector):
238         (WTF::SegmentedVector::shrinkToFit):
239
240 2012-05-15  Andy Estes  <aestes@apple.com>
241
242         Add WTF_USE_SECURITY_FRAMEWORK and use it in place of the less specific PLATFORM(MAC)
243         https://bugs.webkit.org/show_bug.cgi?id=86508
244
245         Reviewed by Sam Weinig.
246
247         * wtf/Platform.h:
248
249 2012-05-15  Zoltan Herczeg  <zherczeg@webkit.org>
250
251         NEONizing forceValidPreMultipliedPixels
252         https://bugs.webkit.org/show_bug.cgi?id=86468
253
254         Reviewed by Nikolas Zimmermann.
255
256         Allow to disable all intrinsics with a single macro.
257
258         * wtf/Platform.h:
259
260 2012-05-14  Andy Estes  <aestes@apple.com>
261
262         Add WTF_USE_APPKIT to differentiate platforms that use AppKit.framework from other Darwin platforms
263         https://bugs.webkit.org/show_bug.cgi?id=86432
264
265         Reviewed by Maciej Stachowiak.
266
267         * wtf/Platform.h:
268
269 2012-05-14  Mark Rowe  <mrowe@apple.com>
270
271         <http://webkit.org/b/86320> WTF.xcodeproj builds with -O3 in debug builds
272
273         Reviewed by Simon Fraser.
274
275         * WTF.xcodeproj/project.pbxproj: Ensure that the debug configuration uses the
276         same settings as the debug variant would.
277
278 2012-05-14  Wei James  <james.wei@intel.com>
279
280         [Chromium] ImageDiff should be build for host on Android
281         https://bugs.webkit.org/show_bug.cgi?id=82039
282
283         Reviewed by Adam Barth.
284
285         * WTF.gyp/WTF.gyp:
286
287 2012-05-14  Yong Li  <yoli@rim.com>
288
289         DFG JIT is not ARM EABI compatible
290         https://bugs.webkit.org/show_bug.cgi?id=84449
291
292         Reviewed by Filip Pizlo.
293
294         Add COMPILER_SUPPORTS(EABI) when __ARM_EABI__
295         or __EABI__ is defined.
296
297         * wtf/Compiler.h:
298
299 2012-05-10  Michał Pakuła vel Rutka  <m.pakula@samsung.com>
300
301         [EFL] Add OwnPtr specialization for Eina_Hash.
302         https://bugs.webkit.org/show_bug.cgi?id=85046
303
304         Reviewed by Andreas Kling.
305
306         Add an override for Eina_Hash for EFL port.
307
308         * wtf/OwnPtrCommon.h:
309         (WTF):
310         * wtf/efl/OwnPtrEfl.cpp:
311         (WTF::deleteOwnedPtr):
312         (WTF):
313
314 2012-05-09  Filip Pizlo  <fpizlo@apple.com>
315
316         It should be possible to get useful debug logging from the JIT memory allocator
317         https://bugs.webkit.org/show_bug.cgi?id=86042
318
319         Reviewed by Geoff Garen.
320
321         * wtf/MetaAllocator.cpp:
322         (WTF::MetaAllocator::findAndRemoveFreeSpace):
323         (WTF::MetaAllocator::addFreeSpace):
324         (WTF::MetaAllocator::dumpProfile):
325
326 2012-05-08  Sheriff Bot  <webkit.review.bot@gmail.com>
327
328         Unreviewed, rolling out r116440.
329         http://trac.webkit.org/changeset/116440
330         https://bugs.webkit.org/show_bug.cgi?id=85904
331
332         Broke the Chromium Android bot (Requested by beverloo on
333         #webkit).
334
335         * WTF.gyp/WTF.gyp:
336
337 2012-05-08  Adam Barth  <abarth@webkit.org>
338
339         [Chromium] OS(ANDROID) ImageDiff requires us to build WTF for both host and target
340         https://bugs.webkit.org/show_bug.cgi?id=85897
341
342         Reviewed by Tony Chang.
343
344         * WTF.gyp/WTF.gyp:
345
346 2012-05-08  Adam Barth  <abarth@webkit.org>
347
348         [Chromium] Assertions.cpp should work on OS(ANDROID)
349         https://bugs.webkit.org/show_bug.cgi?id=85867
350
351         Reviewed by Eric Seidel.
352
353         Some minor ifdefs for OS(ANDROID) on PLATFORM(CHROMIUM).
354
355         * wtf/Assertions.cpp:
356
357 2012-05-07  Adam Barth  <abarth@webkit.org>
358
359         [Chromium] Android wishes to use an empty implementation if AXObjectCache
360         https://bugs.webkit.org/show_bug.cgi?id=85842
361
362         Reviewed by Eric Seidel.
363
364         Disable accessibility on OS(ANDROID) for PLATFORM(CHROMIUM).
365
366         * wtf/Platform.h:
367
368 2012-05-04  Jeff Rogers  <jrogers@rim.com>
369
370         [BlackBerry] Implement numberOfProcessorCores() for QNX
371         https://bugs.webkit.org/show_bug.cgi?id=85638
372
373         Reviewed by Antonio Gomes.
374
375         * wtf/NumberOfCores.cpp:
376         (WTF::numberOfProcessorCores):
377
378 2012-05-03  Yong Li  <yoli@rim.com>
379
380         Mutex failure when HashTable is memory moved in debug build
381         https://bugs.webkit.org/show_bug.cgi?id=84970
382
383         Reviewed by Rob Buis.
384
385         1. Replace m_mutex with OwnPtr<m_mutex> so HashTable is still
386            memory movable in debug build.
387         2. Assert successes of pthread_mutex_init() and pthread_mutex_destroy().
388
389         * wtf/HashTable.h:
390         (HashTable):
391         (WTF::::HashTable):
392         (WTF::::invalidateIterators):
393         (WTF::addIterator):
394         (WTF::removeIterator):
395         * wtf/ThreadingPthreads.cpp:
396         (WTF::Mutex::Mutex):
397         (WTF::Mutex::~Mutex):
398
399 2012-05-02  Antti Koivisto  <antti@apple.com>
400
401         Add temporary feature define for parsed stylesheet caching
402         https://bugs.webkit.org/show_bug.cgi?id=85413
403
404         Rubber-stamped by Nikolas Zimmermann.
405
406         While not an externally visible feature this is still a significant internal change.
407         It is good to have define in case someone has an urgent need to turn it off.
408         
409         Caching is enabled by default on all platforms. The define should be removed after some bake time.
410
411         * wtf/Platform.h:
412
413 2012-05-02  Lauro Neto  <lauro.neto@openbossa.org>
414
415         [Qt]r57240 broke Qt build (gcc bug)
416         https://bugs.webkit.org/show_bug.cgi?id=37253
417
418         Reviewed by Csaba Osztrogonác.
419
420         Add back the inline hack just for ARM due to old version of
421         gcc still being used on Harmattan SDK. Thanks to Ossy for the
422         suggestion.
423         * wtf/PassRefPtr.h:
424         (WTF):
425
426 2012-05-02  Nico Weber  <thakis@chromium.org>
427
428         Let WebKit parse with clang on windows with -std=c++11
429         https://bugs.webkit.org/show_bug.cgi?id=85398
430
431         Reviewed by Ryosuke Niwa.
432
433         See http://trac.webkit.org/changeset/85945 for background on the line
434         I'm changing. With clang, __GXX_EXPERIMENTLAL_CXX0X__ is set in c++11
435         mode, but MSVC's c++ library doesn't have a tr1/memory header. So also
436         check for __GLIBCXX__, like it's done in the rest of this file.
437
438         * wtf/TypeTraits.h:
439
440 2012-05-02  Adenilson Cavalcanti  <cavalcantii@gmail.com>
441
442         [Qt]r57240 broke Qt build (gcc bug)
443         https://bugs.webkit.org/show_bug.cgi?id=37253
444
445         Reviewed by Noam Rosenthal.
446
447         Removing workaround macro since current gcc/Qt doesn't require it to compile.
448
449         * wtf/PassRefPtr.h:
450         (WTF):
451
452 2012-04-30  Oliver Hunt  <oliver@apple.com>
453
454         Investigate overflows in Canvas putImageData routine
455         https://bugs.webkit.org/show_bug.cgi?id=61373
456
457         Reviewed by Gavin Barraclough.
458
459         Allow floating point multiplies of checked types (complete with
460         bounds checks).
461
462         * wtf/CheckedArithmetic.h:
463         (Checked):
464         (WTF::Checked::operator*=):
465
466 2012-04-30  Benjamin Poulain  <benjamin@webkit.org>
467
468         Add String::startsWith() and endsWith() for string literals
469         https://bugs.webkit.org/show_bug.cgi?id=85154
470
471         Reviewed by Darin Adler.
472
473         When invoking StringImpl::startsWidth() or StringImpl::endsWith() with
474         a string literal, a new String was constructed implicitly, allocating
475         a new StringImpl and copying the characters for the operation.
476
477         This patch adds a version of those methods for single characters and
478         string literals.
479         This allows us to avoid allocating memory and use the characters in place,
480         and it permits some extra shortcuts in the implementation.
481
482         * wtf/text/AtomicString.h:
483         (WTF::AtomicString::startsWith):
484         (AtomicString):
485         (WTF::AtomicString::endsWith):
486         * wtf/text/StringImpl.cpp:
487         (WTF::equalInner):
488         (WTF):
489         (WTF::StringImpl::startsWith):
490         (WTF::StringImpl::endsWith):
491         * wtf/text/StringImpl.h:
492         (WTF::StringImpl::startsWith):
493         (StringImpl):
494         (WTF::StringImpl::endsWith):
495         * wtf/text/WTFString.h:
496         (WTF::String::startsWith):
497         (String):
498         (WTF::String::endsWith):
499
500 2012-04-30  Anders Carlsson  <andersca@apple.com>
501
502         WTF::bind should work with blocks
503         https://bugs.webkit.org/show_bug.cgi?id=85227
504
505         Reviewed by Sam Weinig.
506
507         Add a block type FunctionWrapper specialization.
508
509         * wtf/Functional.h:
510
511 2012-04-28  Emil A Eklund  <eae@chromium.org>
512
513         Add ENABLE_SUBPIXEL_LAYOUT controlling FractionalLayoutUnit denominator
514         https://bugs.webkit.org/show_bug.cgi?id=85146
515
516         Reviewed by Eric Seidel.
517
518         Add a new flag for controlling the fixed point denominator in
519         FractionalLayoutUnit. Controls whether the denominator is set to 60 or 1.
520         Until we change the LayoutUnit typedef this change will have no effect.
521
522         * wtf/Platform.h:
523
524 2012-04-29  Kent Tamura  <tkent@chromium.org>
525
526         [Mac] Add LocalizedDateMac
527         https://bugs.webkit.org/show_bug.cgi?id=85039
528
529         Reviewed by Kentaro Hara.
530
531         * wtf/DateMath.h:
532         (WTF): Add monthFullName[]. It is useful to make fallback month
533         names for calendar/date related features.
534
535 2012-04-26  Carlos Garcia Campos  <cgarcia@igalia.com>
536
537         [SOUP] Add a way to register custom uri schemes in WebKit2
538         https://bugs.webkit.org/show_bug.cgi?id=84130
539
540         Reviewed by Martin Robinson.
541
542         Add GPtrArray template to be able to use GRefPtr with GPtrArrays.
543
544         * wtf/gobject/GRefPtr.cpp:
545         (WTF::refGPtr):
546         (WTF):
547         (WTF::derefGPtr):
548         * wtf/gobject/GRefPtr.h:
549         (WTF):
550         * wtf/gobject/GTypedefs.h:
551
552 2012-04-26  Nico Weber  <thakis@chromium.org>
553
554         Don't define WTF_COMPILER_SUPPORTS_CXX_NULLPTR twice when building with clang on windows.
555         https://bugs.webkit.org/show_bug.cgi?id=85018
556
557         Reviewed by Anders Carlsson.
558
559         Clang sets _MSC_VER when compiling for a -pc-win32 target (just like it sets __GNUC__ on unix).
560         As a result, WTF_COMPILER_SUPPORTS_CXX_NULLPTR gets currently set twice, once for clang and
561         once for _MSC_VER. Guard the second instance with !COMPILER(CLANG). This matches the gcc code
562         for WTF_COMPILER_SUPPORTS_CXX_NULLPTR in the same file.
563
564         * wtf/Compiler.h:
565
566 2012-04-26  Antonio Gomes  <agomes@rim.com>
567
568         [BlackBerry] properly disable DRAG_SUPPORT
569         https://bugs.webkit.org/show_bug.cgi?id=84952
570
571         Reviewed by Daniel Bates.
572
573         * wtf/Platform.h: Remove the line that disables drag support from here
574         for the BlackBerry port.
575
576 2012-04-25  Benjamin Poulain  <benjamin@webkit.org>
577
578         Add a version of StringImpl::find() without offset
579         https://bugs.webkit.org/show_bug.cgi?id=83968
580
581         Reviewed by Sam Weinig.
582
583         This patch add a version of StringImpl::find() without offset, Instead of using the default
584         value for the index.
585
586         By not having the index, we can skip a couple of branches and a few instructions. This gives
587         significant gains when the strings are short-ish.
588
589         The case of empty string is moved below (matchLength == 1) since it is a less common operation.
590
591         * wtf/text/StringImpl.cpp:
592         (WTF::StringImpl::find):
593         (WTF):
594         * wtf/text/StringImpl.h:
595         (StringImpl):
596         * wtf/text/WTFString.h:
597         (String):
598         (WTF::String::find):
599
600 2012-04-25  Darin Adler  <darin@apple.com>
601
602         Iterating a HashMap<String, X> involves a string equality comparison to check for the empty value
603         https://bugs.webkit.org/show_bug.cgi?id=84524
604
605         Reviewed by Antti Koivisto.
606
607         * wtf/HashMap.h: Added a struct template, HashMapValueTraits, that derives from
608         PairHashTraits, adds an isEmptyValue function that looks only at the key, not
609         the mapped value, in the hash table value, and uses the isHashTraitsEmptyValue
610         function template to check if the key is empty.
611
612 2012-04-25  Landry Breuil  <landry@openbsd.org>
613
614         Include <sys/param.h>, needed for sysctl() on OpenBSD/NetBSD
615         https://bugs.webkit.org/show_bug.cgi?id=82585
616
617         Reviewed by Zoltan Herczeg.
618
619         * wtf/NumberOfCores.cpp: include <sys/param.h> on the BSDs
620
621 2012-04-25  Kenneth Russell  <kbr@google.com>
622
623         Delete CanvasPixelArray, ByteArray, JSByteArray and JSC code once unreferenced
624         https://bugs.webkit.org/show_bug.cgi?id=83655
625
626         Reviewed by Oliver Hunt.
627
628         * GNUmakefile.list.am:
629         * WTF.gypi:
630         * WTF.pro:
631         * WTF.vcproj/WTF.vcproj:
632         * WTF.xcodeproj/project.pbxproj:
633         * wtf/ByteArray.cpp: Removed.
634         * wtf/ByteArray.h: Removed.
635         * wtf/CMakeLists.txt:
636
637 2012-04-25  Philippe Normand  <pnormand@igalia.com>
638
639         Webkit build fails due to missing gstreamer include file on Kubuntu 8.04
640         https://bugs.webkit.org/show_bug.cgi?id=81913
641
642         Reviewed by Tor Arne Vestbø.
643
644         * WTF.pri: GStreamer build support implies GLib support, as it's
645         done in WebCore.pri.
646
647 2012-04-24  Benjamin Poulain  <bpoulain@apple.com>
648
649         Generalize the single character optimization of r114072
650         https://bugs.webkit.org/show_bug.cgi?id=83961
651
652         Reviewed by Eric Seidel.
653
654         This patch makes some improvment over String::find() in the case of lookup for a single
655         character.
656
657         The two function find(UChar|LChar) are replaced by a template.
658
659         The case of searching a UChar in a 8bit string has a shortcut if the UChar cannot
660         possibly match any character in the range of the type LChar.
661
662         The slow case StringImpl::find(StringImpl*) is modified to
663         -Do not allocate in the fast case if only one string is 8bit.
664         -Use the shortcut for searching UChar in LChar.
665
666         This speed up the function by about 7% when avoiding string conversion.
667
668         * wtf/text/StringImpl.cpp:
669         (WTF::StringImpl::find):
670         * wtf/text/StringImpl.h:
671         (StringImpl):
672         (WTF):
673         (WTF::find):
674         (WTF::StringImpl::find):
675
676 2012-04-24  Darin Adler  <darin@apple.com>
677
678         Iterating a HashMap<String, X> involves a string equality comparison to check for the empty value
679         https://bugs.webkit.org/show_bug.cgi?id=84524
680
681         Reviewed by Antti Koivisto.
682
683         Added a new algorithm for checking for empty buckets that can be specialized.
684         Specialized it for String. We may later want to do the same thing for KURL.
685         It's not important to do it for AtomicString, since AtomicString's == function
686         is already a simple pointer equality compare. We may also later want to do
687         something similar for pairs that have String objects in them.
688
689         * wtf/HashTable.h:
690         (WTF::HashTable::isEmptyBucket): Call the new isHashTraitsEmptyValue function, which
691         will do something more efficient for String.
692
693         * wtf/HashTraits.h: Added hasIsEmptyValueFunction to hash traits, with a default value
694         of false. This allows us to continue to get automatic comparison with the appropriate
695         emptyValue result for all existing traits, but supply a custom isEmptyValue function
696         for HashTraits<String>. Putting an isEmptyValue function into the traits would require
697         overriding it in every class that has a custom value for emptyValue. Specialized
698         HashTraits for String to add hasIsEmptyValueFunction and declare, but not define, the
699         isEmptyValue function.
700         (WTF::isHashTraitsEmptyValue): Added a function that uses the HashTraitsEmptyValueChecker
701         struct to use either == combined with the emptyValue function or the isEmptyValue function.
702
703         * wtf/text/StringHash.h: Removed unneeded includes and sorted the using statements at
704         the bottom of the file.
705         (WTF::HashTraits<String>::isEmptyValue): Define this function here, since here we have
706         included the WTFString.h header; the HashTraits.h header compiles without WTFString.h.
707
708 2012-04-23  Kenneth Russell  <kbr@google.com>
709
710         Change ImageData to reference Uint8ClampedArray rather than CanvasPixelArray
711         https://bugs.webkit.org/show_bug.cgi?id=73011
712
713         Reviewed by Oliver Hunt.
714
715         * wtf/ArrayBuffer.h:
716         (ArrayBuffer):
717         (WTF::ArrayBuffer::create):
718         (WTF::ArrayBuffer::createUninitialized):
719         (WTF):
720         (WTF::ArrayBufferContents::tryAllocate):
721         * wtf/TypedArrayBase.h:
722         (WTF::TypedArrayBase::createUninitialized):
723         (TypedArrayBase):
724         * wtf/Uint8ClampedArray.h:
725         (Uint8ClampedArray):
726         (WTF::Uint8ClampedArray::createUninitialized):
727         (WTF):
728         (WTF::Uint8ClampedArray::zeroFill):
729
730 2012-04-23  George Staikos  <staikos@webkit.org>
731
732         Enable parallel GC for BlackBerry.
733         https://bugs.webkit.org/show_bug.cgi?id=84633
734
735         Reviewed by Antonio Gomes.
736
737         * wtf/Platform.h:
738
739 2012-04-23  Sheriff Bot  <webkit.review.bot@gmail.com>
740
741         Unreviewed, rolling out r114914.
742         http://trac.webkit.org/changeset/114914
743         https://bugs.webkit.org/show_bug.cgi?id=84615
744
745         Causing infinite hangs on some tests involving HashMaps with
746         integer keys (Requested by dimich on #webkit).
747
748         * wtf/HashTable.h:
749         (WTF::HashTable::isEmptyBucket):
750         * wtf/HashTraits.h:
751         * wtf/text/StringHash.h:
752
753 2012-04-23  Darin Adler  <darin@apple.com>
754
755         Iterating a HashMap<String, X> involves a string equality comparison to check for the empty value
756         https://bugs.webkit.org/show_bug.cgi?id=84524
757
758         Reviewed by Antti Koivisto.
759
760         Added a new algorithm for checking for empty buckets that can be specialized.
761         Specialized it for String. We may later want to do the same thing for KURL.
762         It's not important to do it for AtomicString, since AtomicString's == function
763         is already a simple pointer equality compare.
764
765         * wtf/HashTable.h:
766         (WTF::HashTable::isEmptyBucket): Call the new isHashTraitsEmptyValue function, which
767         will do something more efficient for String.
768
769         * wtf/HashTraits.h: Added hasIsEmptyValueFunction to hash traits, with a default value
770         of false. This allows us to continue to get automatic comparison with the appropriate
771         emptyValue result for all existing traits, but supply a custom isEmptyValue function
772         for HashTraits<String>. Putting an isEmptyValue function into the traits would require
773         overriding it in every class that has a custom value for emptyValue. Specialized
774         HashTraits for String to add hasIsEmptyValueFunction and declare, but not define, the
775         isEmptyValue function.
776         (WTF::isHashTraitsEmptyValue): Added a function that uses the HashTraitsEmptyValueChecker
777         struct to use either == combined with the emptyValue function or the isEmptyValue function.
778         (PairHashTraits): Define hasIsEmptyValueFunction and isEmptyValue.
779
780         * wtf/text/StringHash.h: Removed unneeded includes and sorted the using statements at
781         the bottom of the file.
782         (WTF::HashTraits<String>::isEmptyValue): Define this function here, since here we have
783         included the WTFString.h header; the HashTraits.h header compiles without WTFString.h.
784
785 2012-04-18  Myles Maxfield  <mmaxfield@google.com>
786
787         Somehow, there's an errant backslash in my last WTF patch
788         https://bugs.webkit.org/show_bug.cgi?id=84290
789
790         Reviewed by Andreas Kling.
791
792         * wtf/StdLibExtras.h:
793         (WTF::roundUpToMultipleOf):
794
795 2012-04-16  Nico Weber  <thakis@chromium.org>
796
797         Make NullPtr.h compile with clang -std=c++11 and libstdc++4.2
798         https://bugs.webkit.org/show_bug.cgi?id=83999
799
800         Reviewed by Sam Weinig.
801
802         Before this patch, NullPtr.h assumed that a working |nullptr| implied
803         a working |std::nullptr_t| as well. With clang and libstdc++4.2, this
804         is not true.
805
806         I tested (-stdlib=libc++, -stdlib=libstdc++) x (-std=c++11, -std=c++03)
807         with clang.
808
809         * wtf/NullPtr.h:
810         (std):
811
812 2012-04-14  Sam Weinig  <sam@webkit.org>
813
814         Harden WTF::ByteArray::create()
815         https://bugs.webkit.org/show_bug.cgi?id=83318
816
817         Reviewed by Maciej Stachowiak.
818
819         * wtf/ByteArray.cpp:
820         (WTF::ByteArray::create):
821         Add overflow check. I don't believe there is anyway to trigger this currently,
822         hence no tests, so this should be considered hardening.
823
824 2012-04-12  Benjamin Poulain  <bpoulain@apple.com>
825
826         Inline StringImpl::find(UChar, ...)
827         https://bugs.webkit.org/show_bug.cgi?id=83737
828
829         Reviewed by Geoffrey Garen.
830
831         The implementation of StringImpl::find() is a simple branch before invoking one of
832         two inline functions. The overhead of having a function for StringImpl::find() is significant.
833
834         It is better to let the compiler decide if that should be inlined or not.
835
836         * wtf/text/StringImpl.cpp:
837         * wtf/text/StringImpl.h:
838         (StringImpl):
839         (WTF::find):
840         (WTF):
841         (WTF::reverseFind):
842         (WTF::StringImpl::find):
843         * wtf/text/WTFString.h:
844
845 2012-04-12  Balazs Kelemen  <kbalazs@webkit.org>
846
847         [Qt] Fix WebKit1 build with V8
848         https://bugs.webkit.org/show_bug.cgi?id=83322
849
850         Reviewed by Adam Barth.
851
852         * wtf/StdLibExtras.h:
853         (WTF):
854
855 2012-04-12  Jer Noble  <jer.noble@apple.com>
856
857         ThreadingWin: Mutex::unlock() can be "over-unlocked".
858         https://bugs.webkit.org/show_bug.cgi?id=83725
859
860         Reviewed by David Levin.
861
862         In order to support the behavior of pthread_mutex_trylock(), the Windows Mutex class includes
863         a recursion counter which is incremented in Mutex::lock(), decremented in Mutex::unlock(),
864         and checked in Mutex::tryLock().  If the mutex is "over-unlocked", the counter wraps around to
865         MAX_INT, and subsequent calls to Mutex::trylock() will fail. Raise an ASSERT in this situation
866         so the "over-unlock" will be caught.
867
868         * wtf/ThreadingWin.cpp:
869         (WTF::Mutex::unlock): ASSERT if unlocking a non-locked mutex.
870
871 2012-04-10  Mark Rowe  <mrowe@apple.com>
872
873         <rdar://problem/10583749> WebKit2 should log to both ASL and stderr
874
875         Reviewed by Sam Weinig.
876
877         * wtf/Assertions.cpp: Add a WTFLogAlways function that unconditionally logs the given message.
878         * wtf/Assertions.h:
879
880 2012-04-10  Patrick Gansterer  <paroga@webkit.org>
881
882         Cleanup wtf/Platform.h and config.h files
883         https://bugs.webkit.org/show_bug.cgi?id=83431
884
885         Reviewed by Eric Seidel.
886
887         The ENABLE() and USE() macros take care about the case when the flag
888         isn't defined. So there is no need to define anything with 0.
889
890         Also move duplicated code from the config.h files to Platform.h and
891         merge a few preprocessor commands to make the file more readable.
892
893         * config.h:
894         * wtf/Platform.h:
895
896 2012-04-10  Filip Pizlo  <fpizlo@apple.com>
897
898         DFG should flush SetLocals to arguments
899         https://bugs.webkit.org/show_bug.cgi?id=83554
900
901         Reviewed by Gavin Barraclough.
902         
903         Added an isRoot() method that is a faster shorthand for saying
904         find() == this.
905
906         * wtf/UnionFind.h:
907         (WTF::UnionFind::isRoot):
908         (UnionFind):
909
910 2012-04-10  Adam Klein  <adamk@chromium.org>
911
912         Remove unused NonNullPassRefPtr from WTF
913         https://bugs.webkit.org/show_bug.cgi?id=82389
914
915         Reviewed by Kentaro Hara.
916
917         NonNullPassRefPtr seems to be unused since JSC allocation was
918         restructured in r84052.
919
920         If someone decides they need this later, they can always revert this patch.
921
922         * wtf/PassRefPtr.h:
923         * wtf/RefPtr.h:
924         (RefPtr):
925
926 2012-04-10  Patrick Gansterer  <paroga@webkit.org>
927
928         [CMake] Enable USE_FOLDERS property
929         https://bugs.webkit.org/show_bug.cgi?id=83571
930
931         Reviewed by Daniel Bates.
932
933         Setting the FOLDER property on targets gives more structure 
934         to the generated Visual Studio solutions.
935         This does not affect other CMake generators.
936
937         * wtf/CMakeLists.txt:
938
939 2012-04-09  Patrick Gansterer  <paroga@webkit.org>
940
941         Port BinarySemaphoreWin.cpp to WinCE
942         https://bugs.webkit.org/show_bug.cgi?id=83502
943
944         Reviewed by Daniel Bates.
945
946         Replace WaitForSingleObjectEx with WaitForSingleObject since
947         the additonal parameter supported by the extended function
948         is not used anyway and the function does not exist on WinCE.
949
950         * wtf/CMakeLists.txt:
951         * wtf/PlatformWinCE.cmake:
952         * wtf/threads/win/BinarySemaphoreWin.cpp:
953         (WTF::BinarySemaphore::wait):
954
955 2012-04-09  Patrick Gansterer  <paroga@webkit.org>
956
957         [CMake] Build fix for USE_SYSTEM_MALLOC after r113570.
958
959         * wtf/CMakeLists.txt:
960
961 2012-04-09  Patrick Gansterer  <paroga@webkit.org>
962
963         Remove HAVE_STDINT_H
964         https://bugs.webkit.org/show_bug.cgi?id=83434
965
966         Reviewed by Kentaro Hara.
967
968         HAVE_STDINT_H is defined with 1 all the time and we us stdint.h without HAVE(STDINT_H) already.
969
970         * config.h:
971         * wtf/FastMalloc.cpp:
972         * wtf/TCPageMap.h:
973         * wtf/TCSpinLock.h:
974         * wtf/TCSystemAlloc.cpp:
975
976 2012-04-06  Benjamin Poulain  <bpoulain@apple.com>
977
978         Get rid of the useless flag PREEMPT_GEOLOCATION_PERMISSION
979         https://bugs.webkit.org/show_bug.cgi?id=83325
980
981         Reviewed by Ryosuke Niwa.
982
983         * wtf/Platform.h: Remove the flag.
984
985 2012-04-06  Darin Adler  <darin@apple.com>
986
987         Streamline strtod and fix some related problems
988         https://bugs.webkit.org/show_bug.cgi?id=82857
989
990         Reviewed by Geoffrey Garen.
991
992         Replaced the strtod function template with a parseDouble function, eliminating
993         the following unneeded features:
994
995         - need for a trailing null character and a call to strlen
996         - needless conversion of string lengths from size_t to int and back that created
997           the possibility of incorrect truncation
998         - one level of function call; use inlining instead
999         - construction of the StringToDoubleConverter object; it was used to pass
1000           arguments that are known at compile time
1001         - most of the StringToDoubleConverter::StringToDouble function's body; it was
1002           code we did not need
1003         - parsing of Infinity and NaN at the strtod level; added recently when we moved
1004           from the old strtod to the new one, and not needed or helpful at this level
1005         - multiple copies of code to narrow to single byte strings; in many cases
1006           this was done even when starting with an LChar string that is already
1007           single-byte, now we handle this with an overload of parseDouble
1008
1009         * wtf/dtoa.cpp:
1010         Removed a long comment about the original strtod function that no longer
1011         applies since we deleted that function long ago. Removed a lot of includes.
1012         Removed the strtod function templates and its instantiations, since they
1013         are now replaced by the parseDouble function.
1014         (WTF::Internal::parseDoubleFromLongString): Added.
1015         * wtf/dtoa.h:
1016         Added an include of ASCIICType.h so we can use isASCII in a function in this
1017         header. Left the heretofore unneeded include of double-conversion.h, since we
1018         now want to use it in a function in this header. Removed the AllowTrailingJunkTag
1019         and AllowTrailingSpacesTag enumerations and the strtod function template. Added
1020         new parseDouble function, and inline implementation of it.
1021
1022         * wtf/dtoa/double-conversion.cc: Removed quite a bit of unused code, hardcoding
1023         all the StringToDouble function arguments that come from data members so it can
1024         be a much smaller static member function. Also changed the types of arguments
1025         from int to size_t.
1026         * wtf/dtoa/double-conversion.h: Removed most of the StringToDoubleConverter
1027         class, leaving only the conversion function as a static member function.
1028
1029         * wtf/text/StringImpl.cpp:
1030         (WTF::StringImpl::toDouble): Got rid of didReadNumber.
1031         (WTF::StringImpl::toFloat): Ditto.
1032         * wtf/text/StringImpl.h: Ditto.
1033         * wtf/text/WTFString.cpp:
1034         (WTF::String::toDouble): Got rid of didReadNumber.
1035         (WTF::String::toFloat): Ditto.
1036         (WTF::toDoubleType): Rewrote this function to use parseDouble. Moved the code
1037         to skip leading spaces here, because other callers of parseDouble don't want
1038         to do that. Repurposed the check for an empty string so it's now the same
1039         code shared by all the "parsed nothing" cases. Removed the code to convert
1040         the buffer to ASCII for two reasons: (1) We don't need that code at all when
1041         CharType is LChar, and (2) We now handle this through the two overloads for
1042         the parseDouble function. Disallowing trailing junk is now handled here,
1043         rather than inside parseDouble.
1044         (WTF::charactersToDouble): Updated for changes to toDoubleType. Removed the
1045         didReadNumber argument.
1046         (WTF::charactersToFloat): Ditto. Also added overloads that return the parsed
1047         length. These are a slightly more powerful way to do what didReadNumber was
1048         used for before.
1049
1050         * wtf/text/WTFString.h: Added comments, eliminated didReadNumber, and added
1051         overloads of charactersToFloat that replace charactersToFloatIgnoringJunk.
1052
1053 2012-04-05  Patrick Gansterer  <paroga@webkit.org>
1054
1055         [WinCE] Remove unnecessary function decleration
1056         https://bugs.webkit.org/show_bug.cgi?id=83155
1057
1058         Reviewed by Kentaro Hara.
1059
1060         * wtf/DateMath.cpp:
1061         * wtf/Platform.h:
1062
1063 2012-04-04  Patrick Gansterer  <paroga@webkit.org>
1064
1065         Add WTF::getCurrentLocalTime()
1066         https://bugs.webkit.org/show_bug.cgi?id=83164
1067
1068         Reviewed by Alexey Proskuryakov.
1069
1070         Replace the calls to WTF::getLocalTime() with time(0) with the new function.
1071         This allows us to use Win32 API on windows to get the same result in a next step.
1072
1073         Also remove the inline keyword from WTF::getLocalTime(), since there is no need for
1074         it and it will make the later Win32 API changes easier.
1075
1076         * WTF.gyp/WTF.gyp:
1077         * wtf/CurrentTime.cpp:
1078         (WTF::getLocalTime):
1079         (WTF::getCurrentLocalTime):
1080         * wtf/CurrentTime.h:
1081
1082 2012-04-04  Chris Rogers  <crogers@google.com>
1083
1084         Web Audio should use MutexTryLocker class
1085         https://bugs.webkit.org/show_bug.cgi?id=83194
1086
1087         Reviewed by Kenneth Russell.
1088
1089         Add MutexTryLocker class which can be used as a stack-based object wrapping a Mutex.
1090         It will automatically unlock the Mutex in its destructor if the tryLock() succeeded.
1091
1092         * wtf/ThreadingPrimitives.h:
1093         (MutexTryLocker):
1094         (WTF::MutexTryLocker::MutexTryLocker):
1095         (WTF::MutexTryLocker::~MutexTryLocker):
1096         (WTF::MutexTryLocker::locked):
1097         Check if the tryLock() on the Mutex succeeded.
1098         (WTF):
1099
1100 2012-04-04  Kausalya Madhusudhanan  <kmadhusu@chromium.org>
1101
1102         [Coverity] Address some uninit constructor values.
1103         https://bugs.webkit.org/show_bug.cgi?id=82424
1104
1105         Reviewed by Stephen White.
1106
1107         New tests are not required since I did not modify any code behavior. I just initialized the class member variables in the constructor.
1108
1109         * wtf/ArrayBufferView.cpp:
1110         (WTF::ArrayBufferView::ArrayBufferView):
1111
1112 2012-03-30  David Barr  <davidbarr@chromium.org>
1113
1114         Split up top-level .gitignore and .gitattributes
1115         https://bugs.webkit.org/show_bug.cgi?id=82687
1116
1117         Reviewed by Tor Arne Vestbø.
1118
1119         * WTF.gyp/.gitignore: Added.
1120
1121 2012-03-29  Kevin Ollivier  <kevino@theolliviers.com>
1122
1123         [wx] Unreviewed build fix. Add export symbols needed to
1124         build wx under Windows.
1125         
1126         * wtf/NullPtr.h:
1127         * wtf/ParallelJobsGeneric.h:
1128         (ParallelEnvironment):
1129         * wtf/ThreadSpecific.h:
1130         (WTF):
1131
1132 2012-03-29  Kevin Ollivier  <kevino@theolliviers.com>
1133
1134         [wx] Unreviewed build fix. Add WTF_EXPORT_PRIVATE_NO_RTTI
1135         so that ports not using RTTI can add symbol exports to
1136         classes that RTTI ports export with WTF_EXPORT_PRIVATE_RTTI.
1137
1138         * wtf/ArrayBufferView.h:
1139         * wtf/ExportMacros.h:
1140
1141 2012-03-29  Caio Marcelo de Oliveira Filho  <caio.oliveira@openbossa.org>
1142
1143         HashMap<>::add should return a more descriptive object
1144         https://bugs.webkit.org/show_bug.cgi?id=71063
1145
1146         Reviewed by Ryosuke Niwa.
1147
1148         Make HashTable<>::add() and derivate functions return an AddResult struct instead
1149         of a pair. This struct contains contains 'iterator' and 'isNewEntry' members, that are
1150         more readable at callsites than previous 'first' and 'second'.
1151
1152         * wtf/HashCountedSet.h:
1153         (HashCountedSet):
1154         (WTF::::add):
1155         * wtf/HashMap.h:
1156         (HashMap):
1157         (WTF):
1158         (WTF::::set):
1159         * wtf/HashSet.h:
1160         (HashSet):
1161         (WTF::::add):
1162         (WTF):
1163         * wtf/HashTable.h:
1164         (WTF::HashTableAddResult::HashTableAddResult):
1165         (HashTableAddResult):
1166         (WTF):
1167         (HashTable):
1168         (WTF::HashTable::add):
1169         (WTF::::add):
1170         (WTF::::addPassingHashCode):
1171         * wtf/ListHashSet.h:
1172         (ListHashSet):
1173         (WTF::::add):
1174         (WTF::::insertBefore):
1175         * wtf/RefPtrHashMap.h:
1176         (WTF):
1177         (WTF::::set):
1178         * wtf/Spectrum.h:
1179         (WTF::Spectrum::add):
1180         * wtf/WTFThreadData.cpp:
1181         (JSC::IdentifierTable::add):
1182         * wtf/WTFThreadData.h:
1183         (IdentifierTable):
1184         * wtf/text/AtomicString.cpp:
1185         (WTF::addToStringTable):
1186         (WTF::AtomicString::addSlowCase):
1187
1188 2012-03-29  Andreas Kling  <kling@webkit.org>
1189
1190         String: Subscript operator shouldn't force conversion to 16-bit characters.
1191         <http://webkit.org/b/82613>
1192
1193         Reviewed by Anders Carlsson.
1194
1195         Forward String::operator[] to StringImpl::operator[] instead of indexing into characters().
1196         This avoid implicit conversion of 8-bit strings to 16-bit, and as an example, reduces memory
1197         usage on http://www.allthingsd.com/ by 360kB.
1198
1199         * wtf/text/WTFString.h:
1200         (WTF::String::operator[]):
1201
1202 2012-03-28  Carlos Garcia Campos  <cgarcia@igalia.com>
1203
1204         [GTK] Implement PlatformStrategies
1205         https://bugs.webkit.org/show_bug.cgi?id=82454
1206
1207         Reviewed by Xan Lopez.
1208
1209         * wtf/Platform.h: Define WTF_USE_PLATFORM_STRATEGIES for GTK+
1210         platform too.
1211
1212 2012-03-26  Ryosuke Niwa  <rniwa@webkit.org>
1213
1214         Set eol-style: native on WTF.sln per Ryan Sleevi's request.
1215
1216         * WTF.vcproj/WTF.sln: Added property svn:eol-style.
1217
1218 2012-03-26  Ryosuke Niwa  <rniwa@webkit.org>
1219
1220         Chromium build fix; add BitVector.h/cpp to gypi.
1221
1222         * WTF.gypi:
1223
1224 2012-03-26  Ryosuke Niwa  <rniwa@webkit.org>
1225
1226         Touch BitVector as a speculative fix for Chromium Linux.
1227
1228         * wtf/BitVector.h:
1229         (BitVector):
1230
1231 2012-03-23  Ryosuke Niwa  <rniwa@webkit.org>
1232
1233         cssText should use shorthand notations
1234         https://bugs.webkit.org/show_bug.cgi?id=81737
1235
1236         Reviewed by Enrica Casucci.
1237
1238         * wtf/BitVector.h:
1239         (BitVector):
1240         (WTF::BitVector::ensureSizeAndSet): Added.
1241
1242 2012-03-26  Carlos Garcia Campos  <cgarcia@igalia.com>
1243
1244         Unreviewed. Fix make distcheck.
1245
1246         * GNUmakefile.list.am: Add config.h to the source file list.
1247
1248 2012-03-25  Kevin Ollivier  <kevino@theolliviers.com>
1249
1250         [wx] Unreviewed build fix. Move WTF to its own static lib build.
1251
1252         * wscript: Added.
1253
1254 2012-03-23  Tony Chang  <tony@chromium.org>
1255
1256         [chromium] Unreviewed, move a comment closer to where it matters and
1257         make it more specific.
1258
1259         * WTF.gyp/WTF.gyp:
1260
1261 2012-03-23  Steve Falkenburg  <sfalken@apple.com>
1262
1263         Update Apple Windows build files for WTF move
1264         https://bugs.webkit.org/show_bug.cgi?id=82069
1265
1266         Reviewed by Jessie Berlin.
1267
1268         * WTF.vcproj/WTF.make: Added.
1269         * WTF.vcproj/WTF.sln: Added.
1270
1271 2012-03-23  Dean Jackson  <dino@apple.com>
1272
1273         Disable CSS_SHADERS in Apple builds
1274         https://bugs.webkit.org/show_bug.cgi?id=81996
1275
1276         Reviewed by Simon Fraser.
1277
1278         Put ENABLE_CSS_SHADERS into Platform.h, but disable for
1279         Apple builds.
1280
1281         * wtf/Platform.h:
1282
1283 2012-03-23  Tony Chang  <tony@chromium.org>
1284
1285         [chromium] rename newwtf target back to wtf
1286         https://bugs.webkit.org/show_bug.cgi?id=82064
1287
1288         Reviewed by Adam Barth.
1289
1290         * WTF.gyp/WTF.gyp:
1291
1292 2012-03-22  Jessie Berlin  <jberlin@apple.com>
1293
1294         Windows build fix after r111778.
1295
1296         * WTF.vcproj/WTF.vcproj:
1297         DateMath.h and DateMath.cpp should be built by WTF, since they are part of WTF.
1298
1299 2012-03-22  Raphael Kubo da Costa  <rakuco@FreeBSD.org>
1300
1301         [CMake] Unreviewed build fix after r111778.
1302
1303         * CMakeLists.txt: Added.
1304         * wtf/CMakeLists.txt: Add ${CMAKE_BINARY_DIR} to the include paths
1305         for cmakeconfig.h to be found.
1306
1307 2012-03-22  Tony Chang  <tony@chromium.org>
1308
1309         Unreviewed, attempt to fix the chromium-win build and another attempt
1310         at fixing the chromium-android build.
1311
1312         * WTF.gyp/WTF.gyp:
1313
1314 2012-03-22  Tony Chang  <tony@chromium.org>
1315
1316         Unreviewed, attempt to fix chromium-android build.
1317
1318         * WTF.gyp/WTF.gyp:
1319
1320 2012-03-22  Tony Chang  <tony@chromium.org>
1321
1322         Unreviewed, fix chromium build after wtf move.
1323
1324         Move wtf_config and wtf settings to newwtf.
1325
1326         * WTF.gyp/WTF.gyp:
1327
1328 2012-03-22  Martin Robinson  <mrobinson@igalia.com>
1329
1330         One more GTK+ build fix after r111778.
1331
1332         * GNUmakefile.am: Adding missing include path.
1333
1334 2012-03-22  Martin Robinson  <mrobinson@igalia.com>
1335
1336         Fixed the GTK+ WTF/JavaScriptCore build after r111778.
1337
1338         * GNUmakefile.am: Remove some extra trailing backslashes and a few uncessary
1339           variables.
1340         * GNUmakefile.list.am: Ditto.
1341
1342 2012-03-22  Dan Bernstein  <mitz@apple.com>
1343
1344         Fixed the JavaScriptCore debug build after r111778.
1345
1346         * WTF.xcodeproj/project.pbxproj: Use debug DEBUG_DEFINES when building
1347         the Debug configuration.
1348
1349 2012-03-22  Csaba Osztrogonác  <ossy@webkit.org>
1350
1351         Actually move WTF files to their new home
1352         https://bugs.webkit.org/show_bug.cgi?id=81844
1353
1354         [Qt] Unreviewed buildfix after r111778.
1355
1356         * WTF.pri:
1357
1358 2012-03-22  Eric Seidel  <eric@webkit.org>
1359
1360         Actually move WTF files to their new home
1361         https://bugs.webkit.org/show_bug.cgi?id=81844
1362
1363         Unreviewed attempt to fix AppleWin.
1364
1365         * WTF.vcproj/WTFCommon.vsprops:
1366
1367 2012-03-22  Eric Seidel  <eric@webkit.org>
1368
1369         Actually move WTF files to their new home
1370         https://bugs.webkit.org/show_bug.cgi?id=81844
1371
1372         Unreviewed.  The 5MB file move is not very reviewable,
1373         but various port representatives have OK'd changes to the
1374         individual build systems.
1375
1376         * Configurations/WTF.xcconfig:
1377         * GNUmakefile.list.am:
1378         * Stub.cpp: Removed.
1379         * Stub.h: Removed.
1380         * WTF.gypi:
1381         * WTF.pri:
1382         * WTF.pro:
1383         * WTF.vcproj/WTF.vcproj:
1384         * WTF.vcproj/copy-files.cmd:
1385         * WTF.xcodeproj/project.pbxproj:
1386         * config.h:
1387         * wtf/ASCIICType.h: Renamed from Source/JavaScriptCore/wtf/ASCIICType.h.
1388         (WTF):
1389         (WTF::isASCII):
1390         (WTF::isASCIIAlpha):
1391         (WTF::isASCIIDigit):
1392         (WTF::isASCIIAlphanumeric):
1393         (WTF::isASCIIHexDigit):
1394         (WTF::isASCIILower):
1395         (WTF::isASCIIOctalDigit):
1396         (WTF::isASCIIPrintable):
1397         (WTF::isASCIISpace):
1398         (WTF::isASCIIUpper):
1399         (WTF::toASCIILower):
1400         (WTF::toASCIILowerUnchecked):
1401         (WTF::toASCIIUpper):
1402         (WTF::toASCIIHexValue):
1403         (WTF::lowerNibbleToASCIIHexDigit):
1404         (WTF::upperNibbleToASCIIHexDigit):
1405         (WTF::isASCIIAlphaCaselessEqual):
1406         * wtf/AVLTree.h: Renamed from Source/JavaScriptCore/wtf/AVLTree.h.
1407         (WTF):
1408         (AVLTreeDefaultBSet):
1409         (WTF::AVLTreeDefaultBSet::operator[]):
1410         (WTF::AVLTreeDefaultBSet::set):
1411         (WTF::AVLTreeDefaultBSet::reset):
1412         (AVLTree):
1413         (WTF::AVLTree::abstractor):
1414         (WTF::AVLTree::purge):
1415         (WTF::AVLTree::is_empty):
1416         (WTF::AVLTree::AVLTree):
1417         (Iterator):
1418         (WTF::AVLTree::Iterator::Iterator):
1419         (WTF::AVLTree::Iterator::start_iter):
1420         (WTF::AVLTree::Iterator::start_iter_least):
1421         (WTF::AVLTree::Iterator::start_iter_greatest):
1422         (WTF::AVLTree::Iterator::operator*):
1423         (WTF::AVLTree::Iterator::operator++):
1424         (WTF::AVLTree::Iterator::operator--):
1425         (WTF::AVLTree::Iterator::cmp_k_n):
1426         (WTF::AVLTree::Iterator::cmp_n_n):
1427         (WTF::AVLTree::Iterator::get_lt):
1428         (WTF::AVLTree::Iterator::get_gt):
1429         (WTF::AVLTree::Iterator::null):
1430         (WTF::AVLTree::build):
1431         (abs_plus_root):
1432         (WTF::AVLTree::get_lt):
1433         (WTF::AVLTree::set_lt):
1434         (WTF::AVLTree::get_gt):
1435         (WTF::AVLTree::set_gt):
1436         (WTF::AVLTree::get_bf):
1437         (WTF::AVLTree::set_bf):
1438         (WTF::AVLTree::cmp_k_n):
1439         (WTF::AVLTree::cmp_n_n):
1440         (WTF::AVLTree::null):
1441         (WTF::AVLTree::balance):
1442         (WTF::::insert):
1443         (WTF::::search):
1444         (WTF::::search_least):
1445         (WTF::::search_greatest):
1446         (WTF::::remove):
1447         (WTF::::subst):
1448         * wtf/Alignment.h: Renamed from Source/JavaScriptCore/wtf/Alignment.h.
1449         (WTF):
1450         (WTF::swap):
1451         * wtf/AlwaysInline.h: Renamed from Source/JavaScriptCore/wtf/AlwaysInline.h.
1452         * wtf/ArrayBuffer.cpp: Renamed from Source/JavaScriptCore/wtf/ArrayBuffer.cpp.
1453         (WTF):
1454         (WTF::ArrayBuffer::transfer):
1455         (WTF::ArrayBuffer::addView):
1456         (WTF::ArrayBuffer::removeView):
1457         * wtf/ArrayBuffer.h: Renamed from Source/JavaScriptCore/wtf/ArrayBuffer.h.
1458         (WTF):
1459         (ArrayBufferContents):
1460         (WTF::ArrayBufferContents::ArrayBufferContents):
1461         (WTF::ArrayBufferContents::data):
1462         (WTF::ArrayBufferContents::sizeInBytes):
1463         (WTF::ArrayBufferContents::transfer):
1464         (ArrayBuffer):
1465         (WTF::ArrayBuffer::isNeutered):
1466         (WTF::ArrayBuffer::~ArrayBuffer):
1467         (WTF::ArrayBuffer::clampValue):
1468         (WTF::ArrayBuffer::create):
1469         (WTF::ArrayBuffer::ArrayBuffer):
1470         (WTF::ArrayBuffer::data):
1471         (WTF::ArrayBuffer::byteLength):
1472         (WTF::ArrayBuffer::slice):
1473         (WTF::ArrayBuffer::sliceImpl):
1474         (WTF::ArrayBuffer::clampIndex):
1475         (WTF::ArrayBufferContents::tryAllocate):
1476         (WTF::ArrayBufferContents::~ArrayBufferContents):
1477         * wtf/ArrayBufferView.cpp: Renamed from Source/JavaScriptCore/wtf/ArrayBufferView.cpp.
1478         (WTF):
1479         (WTF::ArrayBufferView::ArrayBufferView):
1480         (WTF::ArrayBufferView::~ArrayBufferView):
1481         (WTF::ArrayBufferView::neuter):
1482         * wtf/ArrayBufferView.h: Renamed from Source/JavaScriptCore/wtf/ArrayBufferView.h.
1483         (WTF):
1484         (WTF::ArrayBufferView::setImpl):
1485         (WTF::ArrayBufferView::setRangeImpl):
1486         (WTF::ArrayBufferView::zeroRangeImpl):
1487         (WTF::ArrayBufferView::calculateOffsetAndLength):
1488         * wtf/Assertions.cpp: Renamed from Source/JavaScriptCore/wtf/Assertions.cpp.
1489         * wtf/Assertions.h: Renamed from Source/JavaScriptCore/wtf/Assertions.h.
1490         (assertUnused):
1491         (assertWithMessageUnused):
1492         * wtf/Atomics.h: Renamed from Source/JavaScriptCore/wtf/Atomics.h.
1493         (WTF):
1494         (WTF::atomicIncrement):
1495         (WTF::atomicDecrement):
1496         (WTF::weakCompareAndSwap):
1497         (WTF::weakCompareAndSwapUIntPtr):
1498         * wtf/BitVector.cpp: Renamed from Source/JavaScriptCore/wtf/BitVector.cpp.
1499         (WTF):
1500         (WTF::BitVector::setSlow):
1501         (WTF::BitVector::resize):
1502         (WTF::BitVector::clearAll):
1503         (WTF::BitVector::OutOfLineBits::create):
1504         (WTF::BitVector::OutOfLineBits::destroy):
1505         (WTF::BitVector::resizeOutOfLine):
1506         (WTF::BitVector::dump):
1507         * wtf/BitVector.h: Renamed from Source/JavaScriptCore/wtf/BitVector.h.
1508         (WTF):
1509         (BitVector):
1510         (WTF::BitVector::BitVector):
1511         (WTF::BitVector::~BitVector):
1512         (WTF::BitVector::operator=):
1513         (WTF::BitVector::size):
1514         (WTF::BitVector::ensureSize):
1515         (WTF::BitVector::quickGet):
1516         (WTF::BitVector::quickSet):
1517         (WTF::BitVector::quickClear):
1518         (WTF::BitVector::get):
1519         (WTF::BitVector::set):
1520         (WTF::BitVector::clear):
1521         (WTF::BitVector::bitsInPointer):
1522         (WTF::BitVector::maxInlineBits):
1523         (WTF::BitVector::byteCount):
1524         (WTF::BitVector::makeInlineBits):
1525         (OutOfLineBits):
1526         (WTF::BitVector::OutOfLineBits::numBits):
1527         (WTF::BitVector::OutOfLineBits::numWords):
1528         (WTF::BitVector::OutOfLineBits::bits):
1529         (WTF::BitVector::OutOfLineBits::OutOfLineBits):
1530         (WTF::BitVector::isInline):
1531         (WTF::BitVector::outOfLineBits):
1532         (WTF::BitVector::bits):
1533         * wtf/Bitmap.h: Renamed from Source/JavaScriptCore/wtf/Bitmap.h.
1534         (WTF):
1535         (Bitmap):
1536         (WTF::::Bitmap):
1537         (WTF::::get):
1538         (WTF::::set):
1539         (WTF::::testAndSet):
1540         (WTF::::testAndClear):
1541         (WTF::::concurrentTestAndSet):
1542         (WTF::::concurrentTestAndClear):
1543         (WTF::::clear):
1544         (WTF::::clearAll):
1545         (WTF::::nextPossiblyUnset):
1546         (WTF::::findRunOfZeros):
1547         (WTF::::count):
1548         (WTF::::isEmpty):
1549         (WTF::::isFull):
1550         * wtf/BlockStack.h: Renamed from Source/JavaScriptCore/wtf/BlockStack.h.
1551         (WTF):
1552         (BlockStack):
1553         (WTF::::BlockStack):
1554         (WTF::::~BlockStack):
1555         (WTF::::blocks):
1556         (WTF::::grow):
1557         (WTF::::shrink):
1558         * wtf/BloomFilter.h: Renamed from Source/JavaScriptCore/wtf/BloomFilter.h.
1559         (WTF):
1560         (BloomFilter):
1561         (WTF::BloomFilter::maximumCount):
1562         (WTF::BloomFilter::BloomFilter):
1563         (WTF::BloomFilter::mayContain):
1564         (WTF::BloomFilter::add):
1565         (WTF::BloomFilter::remove):
1566         (WTF::BloomFilter::firstSlot):
1567         (WTF::BloomFilter::secondSlot):
1568         (WTF::::add):
1569         (WTF::::remove):
1570         (WTF::::clear):
1571         (WTF::::likelyEmpty):
1572         (WTF::::isClear):
1573         * wtf/BoundsCheckedPointer.h: Renamed from Source/JavaScriptCore/wtf/BoundsCheckedPointer.h.
1574         (WTF):
1575         (BoundsCheckedPointer):
1576         (WTF::BoundsCheckedPointer::BoundsCheckedPointer):
1577         (WTF::BoundsCheckedPointer::operator=):
1578         (WTF::BoundsCheckedPointer::operator+=):
1579         (WTF::BoundsCheckedPointer::operator-=):
1580         (WTF::BoundsCheckedPointer::operator+):
1581         (WTF::BoundsCheckedPointer::operator-):
1582         (WTF::BoundsCheckedPointer::operator++):
1583         (WTF::BoundsCheckedPointer::operator--):
1584         (WTF::BoundsCheckedPointer::operator<):
1585         (WTF::BoundsCheckedPointer::operator<=):
1586         (WTF::BoundsCheckedPointer::operator>):
1587         (WTF::BoundsCheckedPointer::operator>=):
1588         (WTF::BoundsCheckedPointer::operator==):
1589         (WTF::BoundsCheckedPointer::operator!=):
1590         (WTF::BoundsCheckedPointer::operator!):
1591         (WTF::BoundsCheckedPointer::get):
1592         (WTF::BoundsCheckedPointer::operator*):
1593         (WTF::BoundsCheckedPointer::operator[]):
1594         (WTF::BoundsCheckedPointer::strcat):
1595         (WTF::BoundsCheckedPointer::validate):
1596         * wtf/BumpPointerAllocator.h: Renamed from Source/JavaScriptCore/wtf/BumpPointerAllocator.h.
1597         (WTF):
1598         (BumpPointerPool):
1599         (WTF::BumpPointerPool::ensureCapacity):
1600         (WTF::BumpPointerPool::alloc):
1601         (WTF::BumpPointerPool::dealloc):
1602         (WTF::BumpPointerPool::operator new):
1603         (WTF::BumpPointerPool::BumpPointerPool):
1604         (WTF::BumpPointerPool::create):
1605         (WTF::BumpPointerPool::shrink):
1606         (WTF::BumpPointerPool::destroy):
1607         (WTF::BumpPointerPool::ensureCapacityCrossPool):
1608         (WTF::BumpPointerPool::deallocCrossPool):
1609         (BumpPointerAllocator):
1610         (WTF::BumpPointerAllocator::BumpPointerAllocator):
1611         (WTF::BumpPointerAllocator::~BumpPointerAllocator):
1612         (WTF::BumpPointerAllocator::startAllocator):
1613         (WTF::BumpPointerAllocator::stopAllocator):
1614         * wtf/ByteArray.cpp: Renamed from Source/JavaScriptCore/wtf/ByteArray.cpp.
1615         (WTF):
1616         (WTF::ByteArray::create):
1617         * wtf/ByteArray.h: Renamed from Source/JavaScriptCore/wtf/ByteArray.h.
1618         (ByteArray):
1619         (WTF::ByteArray::length):
1620         (WTF::ByteArray::set):
1621         (WTF::ByteArray::get):
1622         (WTF::ByteArray::data):
1623         (WTF::ByteArray::clear):
1624         (WTF::ByteArray::deref):
1625         (WTF::ByteArray::offsetOfSize):
1626         (WTF::ByteArray::offsetOfData):
1627         (WTF::ByteArray::ByteArray):
1628         * wtf/CMakeLists.txt: Renamed from Source/JavaScriptCore/wtf/CMakeLists.txt.
1629         * wtf/CONTRIBUTORS.pthreads-win32: Renamed from Source/JavaScriptCore/wtf/CONTRIBUTORS.pthreads-win32.
1630         * wtf/CheckedArithmetic.h: Renamed from Source/JavaScriptCore/wtf/CheckedArithmetic.h.
1631         (WTF):
1632         (CrashOnOverflow):
1633         (WTF::CrashOnOverflow::overflowed):
1634         (WTF::CrashOnOverflow::clearOverflow):
1635         (WTF::CrashOnOverflow::hasOverflowed):
1636         (RecordOverflow):
1637         (WTF::RecordOverflow::RecordOverflow):
1638         (WTF::RecordOverflow::overflowed):
1639         (WTF::RecordOverflow::clearOverflow):
1640         (WTF::RecordOverflow::hasOverflowed):
1641         (WTF::isInBounds):
1642         (RemoveChecked):
1643         (WTF::safeAdd):
1644         (WTF::safeSub):
1645         (WTF::safeMultiply):
1646         (WTF::safeEquals):
1647         (WTF::workAroundClangBug):
1648         (Checked):
1649         (WTF::Checked::Checked):
1650         (WTF::Checked::operator=):
1651         (WTF::Checked::operator++):
1652         (WTF::Checked::operator--):
1653         (WTF::Checked::operator!):
1654         (WTF::Checked::operator UnspecifiedBoolType*):
1655         (WTF::Checked::unsafeGet):
1656         (WTF::Checked::operator+=):
1657         (WTF::Checked::operator-=):
1658         (WTF::Checked::operator*=):
1659         (WTF::Checked::operator==):
1660         (WTF::Checked::operator!=):
1661         (WTF::operator+):
1662         (WTF::operator-):
1663         (WTF::operator*):
1664         * wtf/CheckedBoolean.h: Renamed from Source/JavaScriptCore/wtf/CheckedBoolean.h.
1665         (CheckedBoolean):
1666         (CheckedBoolean::CheckedBoolean):
1667         (CheckedBoolean::~CheckedBoolean):
1668         (CheckedBoolean::operator bool):
1669         * wtf/Compiler.h: Renamed from Source/JavaScriptCore/wtf/Compiler.h.
1670         * wtf/Complex.h: Renamed from Source/JavaScriptCore/wtf/Complex.h.
1671         (WTF):
1672         (WTF::complexFromMagnitudePhase):
1673         * wtf/CryptographicallyRandomNumber.cpp: Renamed from Source/JavaScriptCore/wtf/CryptographicallyRandomNumber.cpp.
1674         (WTF::cryptographicallyRandomNumber):
1675         (WTF):
1676         (WTF::cryptographicallyRandomValues):
1677         * wtf/CryptographicallyRandomNumber.h: Renamed from Source/JavaScriptCore/wtf/CryptographicallyRandomNumber.h.
1678         (WTF):
1679         * wtf/CurrentTime.cpp: Renamed from Source/JavaScriptCore/wtf/CurrentTime.cpp.
1680         (WTF):
1681         (WTF::highResUpTime):
1682         (WTF::lowResUTCTime):
1683         (WTF::qpcAvailable):
1684         (WTF::currentTime):
1685         (WTF::currentSystemTime):
1686         (WTF::monotonicallyIncreasingTime):
1687         * wtf/CurrentTime.h: Renamed from Source/JavaScriptCore/wtf/CurrentTime.h.
1688         (WTF):
1689         (WTF::currentTimeMS):
1690         (WTF::getLocalTime):
1691         * wtf/DataLog.cpp: Renamed from Source/JavaScriptCore/wtf/DataLog.cpp.
1692         (WTF):
1693         (WTF::initializeLogFileOnce):
1694         (WTF::initializeLogFile):
1695         (WTF::dataFile):
1696         (WTF::dataLogV):
1697         (WTF::dataLog):
1698         * wtf/DataLog.h: Renamed from Source/JavaScriptCore/wtf/DataLog.h.
1699         (WTF):
1700         * wtf/DateMath.cpp: Renamed from Source/JavaScriptCore/wtf/DateMath.cpp.
1701         (WTF):
1702         (WTF::isLeapYear):
1703         (WTF::daysInYear):
1704         (WTF::daysFrom1970ToYear):
1705         (WTF::msToDays):
1706         (WTF::twoDigitStringFromNumber):
1707         (WTF::msToYear):
1708         (WTF::dayInYear):
1709         (WTF::msToMilliseconds):
1710         (WTF::msToMinutes):
1711         (WTF::msToHours):
1712         (WTF::monthFromDayInYear):
1713         (WTF::checkMonth):
1714         (WTF::dayInMonthFromDayInYear):
1715         (WTF::monthToDayInYear):
1716         (WTF::dateToDaysFrom1970):
1717         (WTF::maximumYearForDST):
1718         (WTF::minimumYearForDST):
1719         (WTF::equivalentYearForDST):
1720         (WTF::calculateUTCOffset):
1721         (WTF::calculateDSTOffsetSimple):
1722         (WTF::calculateDSTOffset):
1723         (WTF::initializeDates):
1724         (WTF::ymdhmsToSeconds):
1725         (KnownZone):
1726         (WTF::skipSpacesAndComments):
1727         (WTF::findMonth):
1728         (WTF::parseLong):
1729         (WTF::parseES5DatePortion):
1730         (WTF::parseES5TimePortion):
1731         (WTF::parseES5DateFromNullTerminatedCharacters):
1732         (WTF::parseDateFromNullTerminatedCharacters):
1733         (WTF::timeClip):
1734         (WTF::makeRFC2822DateString):
1735         * wtf/DateMath.h: Renamed from Source/JavaScriptCore/wtf/DateMath.h.
1736         (WTF):
1737         (WTF::jsCurrentTime):
1738         * wtf/DecimalNumber.cpp: Renamed from Source/JavaScriptCore/wtf/DecimalNumber.cpp.
1739         (WTF):
1740         (WTF::DecimalNumber::bufferLengthForStringDecimal):
1741         (WTF::DecimalNumber::bufferLengthForStringExponential):
1742         (WTF::DecimalNumber::toStringDecimal):
1743         (WTF::DecimalNumber::toStringExponential):
1744         * wtf/DecimalNumber.h: Renamed from Source/JavaScriptCore/wtf/DecimalNumber.h.
1745         (WTF):
1746         (DecimalNumber):
1747         (WTF::DecimalNumber::DecimalNumber):
1748         (WTF::DecimalNumber::sign):
1749         (WTF::DecimalNumber::exponent):
1750         (WTF::DecimalNumber::significand):
1751         (WTF::DecimalNumber::precision):
1752         * wtf/Decoder.h: Renamed from Source/JavaScriptCore/wtf/Decoder.h.
1753         (WTF):
1754         (Decoder):
1755         (WTF::Decoder::Decoder):
1756         (WTF::Decoder::~Decoder):
1757         * wtf/Deque.h: Renamed from Source/JavaScriptCore/wtf/Deque.h.
1758         (WTF):
1759         (Deque):
1760         (WTF::Deque::size):
1761         (WTF::Deque::isEmpty):
1762         (WTF::Deque::begin):
1763         (WTF::Deque::end):
1764         (WTF::Deque::rbegin):
1765         (WTF::Deque::rend):
1766         (WTF::Deque::first):
1767         (WTF::Deque::last):
1768         (DequeIteratorBase):
1769         (WTF::DequeIteratorBase::assign):
1770         (DequeIterator):
1771         (WTF::DequeIterator::DequeIterator):
1772         (WTF::DequeIterator::operator=):
1773         (WTF::DequeIterator::operator*):
1774         (WTF::DequeIterator::operator->):
1775         (WTF::DequeIterator::operator==):
1776         (WTF::DequeIterator::operator!=):
1777         (WTF::DequeIterator::operator++):
1778         (WTF::DequeIterator::operator--):
1779         (DequeConstIterator):
1780         (WTF::DequeConstIterator::DequeConstIterator):
1781         (WTF::DequeConstIterator::operator=):
1782         (WTF::DequeConstIterator::operator*):
1783         (WTF::DequeConstIterator::operator->):
1784         (WTF::DequeConstIterator::operator==):
1785         (WTF::DequeConstIterator::operator!=):
1786         (WTF::DequeConstIterator::operator++):
1787         (WTF::DequeConstIterator::operator--):
1788         (DequeReverseIterator):
1789         (WTF::DequeReverseIterator::DequeReverseIterator):
1790         (WTF::DequeReverseIterator::operator=):
1791         (WTF::DequeReverseIterator::operator*):
1792         (WTF::DequeReverseIterator::operator->):
1793         (WTF::DequeReverseIterator::operator==):
1794         (WTF::DequeReverseIterator::operator!=):
1795         (WTF::DequeReverseIterator::operator++):
1796         (WTF::DequeReverseIterator::operator--):
1797         (DequeConstReverseIterator):
1798         (WTF::DequeConstReverseIterator::DequeConstReverseIterator):
1799         (WTF::DequeConstReverseIterator::operator=):
1800         (WTF::DequeConstReverseIterator::operator*):
1801         (WTF::DequeConstReverseIterator::operator->):
1802         (WTF::DequeConstReverseIterator::operator==):
1803         (WTF::DequeConstReverseIterator::operator!=):
1804         (WTF::DequeConstReverseIterator::operator++):
1805         (WTF::DequeConstReverseIterator::operator--):
1806         (WTF::::checkValidity):
1807         (WTF::::checkIndexValidity):
1808         (WTF::::invalidateIterators):
1809         (WTF::::Deque):
1810         (WTF::deleteAllValues):
1811         (WTF::=):
1812         (WTF::::destroyAll):
1813         (WTF::::~Deque):
1814         (WTF::::swap):
1815         (WTF::::clear):
1816         (WTF::::findIf):
1817         (WTF::::expandCapacityIfNeeded):
1818         (WTF::::expandCapacity):
1819         (WTF::::takeFirst):
1820         (WTF::::append):
1821         (WTF::::prepend):
1822         (WTF::::removeFirst):
1823         (WTF::::remove):
1824         (WTF::::addToIteratorsList):
1825         (WTF::::removeFromIteratorsList):
1826         (WTF::::DequeIteratorBase):
1827         (WTF::::~DequeIteratorBase):
1828         (WTF::::isEqual):
1829         (WTF::::increment):
1830         (WTF::::decrement):
1831         (WTF::::after):
1832         (WTF::::before):
1833         * wtf/DisallowCType.h: Renamed from Source/JavaScriptCore/wtf/DisallowCType.h.
1834         * wtf/DoublyLinkedList.h: Renamed from Source/JavaScriptCore/wtf/DoublyLinkedList.h.
1835         (WTF):
1836         (DoublyLinkedListNode):
1837         (WTF::::DoublyLinkedListNode):
1838         (WTF::::setPrev):
1839         (WTF::::setNext):
1840         (WTF::::prev):
1841         (WTF::::next):
1842         (DoublyLinkedList):
1843         (WTF::::DoublyLinkedList):
1844         (WTF::::isEmpty):
1845         (WTF::::size):
1846         (WTF::::clear):
1847         (WTF::::head):
1848         (WTF::::tail):
1849         (WTF::::push):
1850         (WTF::::append):
1851         (WTF::::remove):
1852         (WTF::::removeHead):
1853         * wtf/DynamicAnnotations.cpp: Renamed from Source/JavaScriptCore/wtf/DynamicAnnotations.cpp.
1854         (WTFAnnotateBenignRaceSized):
1855         (WTFAnnotateHappensBefore):
1856         (WTFAnnotateHappensAfter):
1857         * wtf/DynamicAnnotations.h: Renamed from Source/JavaScriptCore/wtf/DynamicAnnotations.h.
1858         * wtf/Encoder.h: Renamed from Source/JavaScriptCore/wtf/Encoder.h.
1859         (WTF):
1860         (Encoder):
1861         (WTF::Encoder::Encoder):
1862         (WTF::Encoder::~Encoder):
1863         * wtf/ExportMacros.h: Renamed from Source/JavaScriptCore/wtf/ExportMacros.h.
1864         * wtf/FastAllocBase.h: Renamed from Source/JavaScriptCore/wtf/FastAllocBase.h.
1865         (WTF):
1866         (WTF::fastNew):
1867         (Internal):
1868         (WTF::Internal::NewArrayImpl::fastNewArray):
1869         (WTF::fastNewArray):
1870         (WTF::fastDelete):
1871         (WTF::fastDeleteSkippingDestructor):
1872         (WTF::Internal::DeleteArrayImpl::fastDeleteArray):
1873         (WTF::fastDeleteArray):
1874         (WTF::fastNonNullDelete):
1875         (WTF::Internal::NonNullDeleteArrayImpl::fastNonNullDeleteArray):
1876         (WTF::fastNonNullDeleteArray):
1877         * wtf/FastMalloc.cpp: Renamed from Source/JavaScriptCore/wtf/FastMalloc.cpp.
1878         (WTF):
1879         (WTF::isForbidden):
1880         (WTF::fastMallocForbid):
1881         (WTF::fastMallocAllow):
1882         (WTF::initializeIsForbiddenKey):
1883         (Internal):
1884         (WTF::Internal::fastMallocMatchFailed):
1885         (WTF::fastZeroedMalloc):
1886         (WTF::fastStrDup):
1887         (WTF::tryFastZeroedMalloc):
1888         (WTF::tryFastMalloc):
1889         (WTF::fastMalloc):
1890         (WTF::tryFastCalloc):
1891         (WTF::fastCalloc):
1892         (WTF::fastFree):
1893         (WTF::tryFastRealloc):
1894         (WTF::fastRealloc):
1895         (WTF::releaseFastMallocFreeMemory):
1896         (WTF::fastMallocStatistics):
1897         (WTF::fastMallocSize):
1898         (FastMallocZone):
1899         (WTF::FastMallocZone::goodSize):
1900         (WTF::FastMallocZone::check):
1901         (WTF::FastMallocZone::print):
1902         (WTF::FastMallocZone::log):
1903         (WTF::FastMallocZone::forceLock):
1904         (WTF::FastMallocZone::forceUnlock):
1905         (WTF::FastMallocZone::statistics):
1906         (WTF::FastMallocZone::zoneValloc):
1907         (WTF::FastMallocZone::zoneDestroy):
1908         (WTF::KernelSupportsTLS):
1909         (WTF::CheckIfKernelSupportsTLS):
1910         (WTF::ClassIndex):
1911         (TCEntry):
1912         (WTF::LgFloor):
1913         (WTF::SLL_Next):
1914         (WTF::SLL_SetNext):
1915         (WTF::SLL_Push):
1916         (WTF::SLL_Pop):
1917         (WTF::SLL_PopRange):
1918         (WTF::SLL_PushRange):
1919         (WTF::SLL_Size):
1920         (WTF::SizeClass):
1921         (WTF::ByteSizeForClass):
1922         (WTF::NumMoveSize):
1923         (WTF::InitSizeClasses):
1924         (WTF::MetaDataAlloc):
1925         (PageHeapAllocator):
1926         (WTF::PageHeapAllocator::Init):
1927         (WTF::PageHeapAllocator::New):
1928         (WTF::PageHeapAllocator::Delete):
1929         (WTF::PageHeapAllocator::inuse):
1930         (WTF::PageHeapAllocator::recordAdministrativeRegions):
1931         (WTF::pages):
1932         (WTF::AllocationSize):
1933         (Span):
1934         (WTF::Event):
1935         (WTF::NewSpan):
1936         (WTF::DeleteSpan):
1937         (WTF::DLL_Init):
1938         (WTF::DLL_Remove):
1939         (WTF::DLL_IsEmpty):
1940         (WTF::DLL_Length):
1941         (WTF::DLL_Print):
1942         (WTF::DLL_Prepend):
1943         (StackTrace):
1944         (MapSelector):
1945         (TCMalloc_PageHeap):
1946         (WTF::TCMalloc_PageHeap::GetDescriptor):
1947         (WTF::TCMalloc_PageHeap::GetDescriptorEnsureSafe):
1948         (WTF::TCMalloc_PageHeap::SystemBytes):
1949         (WTF::TCMalloc_PageHeap::FreeBytes):
1950         (WTF::TCMalloc_PageHeap::GetSizeClassIfCached):
1951         (WTF::TCMalloc_PageHeap::CacheSizeClass):
1952         (SpanList):
1953         (WTF::TCMalloc_PageHeap::RecordSpan):
1954         (WTF::TCMalloc_PageHeap::init):
1955         (WTF::TCMalloc_PageHeap::initializeScavenger):
1956         (WTF::TCMalloc_PageHeap::isScavengerSuspended):
1957         (WTF::TCMalloc_PageHeap::scheduleScavenger):
1958         (WTF::TCMalloc_PageHeap::rescheduleScavenger):
1959         (WTF::TCMalloc_PageHeap::suspendScavenger):
1960         (WTF::TCMalloc_PageHeap::scavengerTimerFired):
1961         (WTF::TCMalloc_PageHeap::runScavengerThread):
1962         (WTF::TCMalloc_PageHeap::signalScavenger):
1963         (WTF::TCMalloc_PageHeap::scavenge):
1964         (WTF::TCMalloc_PageHeap::shouldScavenge):
1965         (WTF::TCMalloc_PageHeap::New):
1966         (WTF::TCMalloc_PageHeap::AllocLarge):
1967         (WTF::TCMalloc_PageHeap::Split):
1968         (WTF::TCMalloc_PageHeap::Carve):
1969         (WTF::mergeDecommittedStates):
1970         (WTF::TCMalloc_PageHeap::Delete):
1971         (WTF::TCMalloc_PageHeap::IncrementalScavenge):
1972         (WTF::TCMalloc_PageHeap::RegisterSizeClass):
1973         (WTF::TCMalloc_PageHeap::ReturnedBytes):
1974         (WTF::PagesToMB):
1975         (WTF::TCMalloc_PageHeap::Dump):
1976         (WTF::TCMalloc_PageHeap::GrowHeap):
1977         (WTF::TCMalloc_PageHeap::Check):
1978         (WTF::TCMalloc_PageHeap::CheckList):
1979         (WTF::TCMalloc_PageHeap::ReleaseFreeList):
1980         (WTF::TCMalloc_PageHeap::ReleaseFreePages):
1981         (TCMalloc_ThreadCache_FreeList):
1982         (WTF::TCMalloc_ThreadCache_FreeList::Init):
1983         (WTF::TCMalloc_ThreadCache_FreeList::length):
1984         (WTF::TCMalloc_ThreadCache_FreeList::empty):
1985         (WTF::TCMalloc_ThreadCache_FreeList::lowwatermark):
1986         (WTF::TCMalloc_ThreadCache_FreeList::clear_lowwatermark):
1987         (WTF::TCMalloc_ThreadCache_FreeList::Push):
1988         (WTF::TCMalloc_ThreadCache_FreeList::PushRange):
1989         (WTF::TCMalloc_ThreadCache_FreeList::PopRange):
1990         (WTF::TCMalloc_ThreadCache_FreeList::Pop):
1991         (WTF::TCMalloc_ThreadCache_FreeList::enumerateFreeObjects):
1992         (TCMalloc_ThreadCache):
1993         (WTF::TCMalloc_ThreadCache::freelist_length):
1994         (WTF::TCMalloc_ThreadCache::Size):
1995         (WTF::TCMalloc_ThreadCache::enumerateFreeObjects):
1996         (TCMalloc_Central_FreeList):
1997         (WTF::TCMalloc_Central_FreeList::length):
1998         (WTF::TCMalloc_Central_FreeList::tc_length):
1999         (WTF::TCMalloc_Central_FreeList::enumerateFreeObjects):
2000         (TCMalloc_Central_FreeListPadded):
2001         (WTF::getPageHeap):
2002         (WTF::TCMalloc_PageHeap::periodicScavenge):
2003         (WTF::TCMalloc_PageHeap::scavengerThread):
2004         (WTF::setThreadHeap):
2005         (WTF::TCMalloc_Central_FreeList::Init):
2006         (WTF::TCMalloc_Central_FreeList::ReleaseListToSpans):
2007         (WTF::TCMalloc_Central_FreeList::ReleaseToSpans):
2008         (WTF::TCMalloc_Central_FreeList::EvictRandomSizeClass):
2009         (WTF::TCMalloc_Central_FreeList::MakeCacheSpace):
2010         (WTF::TCMalloc_Central_FreeList::ShrinkCache):
2011         (WTF::TCMalloc_Central_FreeList::InsertRange):
2012         (WTF::TCMalloc_Central_FreeList::RemoveRange):
2013         (WTF::TCMalloc_Central_FreeList::FetchFromSpansSafe):
2014         (WTF::TCMalloc_Central_FreeList::FetchFromSpans):
2015         (WTF::TCMalloc_Central_FreeList::Populate):
2016         (WTF::TCMalloc_ThreadCache::SampleAllocation):
2017         (WTF::TCMalloc_ThreadCache::Init):
2018         (WTF::TCMalloc_ThreadCache::Cleanup):
2019         (WTF::TCMalloc_ThreadCache::Allocate):
2020         (WTF::TCMalloc_ThreadCache::Deallocate):
2021         (WTF::TCMalloc_ThreadCache::FetchFromCentralCache):
2022         (WTF::TCMalloc_ThreadCache::ReleaseToCentralCache):
2023         (WTF::TCMalloc_ThreadCache::Scavenge):
2024         (WTF::TCMalloc_ThreadCache::PickNextSample):
2025         (WTF::TCMalloc_ThreadCache::InitModule):
2026         (WTF::TCMalloc_ThreadCache::NewHeap):
2027         (WTF::TCMalloc_ThreadCache::GetThreadHeap):
2028         (WTF::TCMalloc_ThreadCache::GetCache):
2029         (WTF::TCMalloc_ThreadCache::GetCacheIfPresent):
2030         (WTF::TCMalloc_ThreadCache::InitTSD):
2031         (WTF::TCMalloc_ThreadCache::CreateCacheIfNecessary):
2032         * wtf/FastMalloc.h: Renamed from Source/JavaScriptCore/wtf/FastMalloc.h.
2033         (WTF):
2034         (WTF::TryMallocReturnValue::TryMallocReturnValue):
2035         (WTF::TryMallocReturnValue::~TryMallocReturnValue):
2036         (TryMallocReturnValue):
2037         (WTF::TryMallocReturnValue::operator PossiblyNull<T>):
2038         (WTF::TryMallocReturnValue::getValue):
2039         (FastMallocStatistics):
2040         (ValidationHeader):
2041         (Internal):
2042         (WTF::Internal::fastMallocValidationHeader):
2043         (WTF::Internal::fastMallocValidationSuffix):
2044         (WTF::Internal::fastMallocMatchValidationType):
2045         (WTF::Internal::setFastMallocMatchValidationType):
2046         (WTF::fastMallocMatchValidateMalloc):
2047         (WTF::fastMallocMatchValidateFree):
2048         (WTF::fastMallocValidate):
2049         (throw):
2050         * wtf/FixedArray.h: Renamed from Source/JavaScriptCore/wtf/FixedArray.h.
2051         (WTF):
2052         (FixedArray):
2053         (WTF::FixedArray::operator[]):
2054         (WTF::FixedArray::data):
2055         (WTF::FixedArray::size):
2056         * wtf/Float32Array.h: Renamed from Source/JavaScriptCore/wtf/Float32Array.h.
2057         (WTF):
2058         (Float32Array):
2059         (WTF::Float32Array::set):
2060         (WTF::Float32Array::item):
2061         (WTF::Float32Array::isFloatArray):
2062         (WTF::Float32Array::create):
2063         (WTF::Float32Array::Float32Array):
2064         (WTF::Float32Array::subarray):
2065         * wtf/Float64Array.h: Renamed from Source/JavaScriptCore/wtf/Float64Array.h.
2066         (WTF):
2067         (Float64Array):
2068         (WTF::Float64Array::set):
2069         (WTF::Float64Array::item):
2070         (WTF::Float64Array::isDoubleArray):
2071         (WTF::Float64Array::create):
2072         (WTF::Float64Array::Float64Array):
2073         (WTF::Float64Array::subarray):
2074         * wtf/Forward.h: Renamed from Source/JavaScriptCore/wtf/Forward.h.
2075         (WTF):
2076         * wtf/Functional.h: Renamed from Source/JavaScriptCore/wtf/Functional.h.
2077         (WTF):
2078         (HasRefAndDeref):
2079         (NoType):
2080         (BaseMixin):
2081         (WTF::R):
2082         (WTF::C::):
2083         (WTF::RefAndDeref::ref):
2084         (WTF::RefAndDeref::deref):
2085         (ParamStorageTraits):
2086         (WTF::ParamStorageTraits::wrap):
2087         (WTF::ParamStorageTraits::unwrap):
2088         (FunctionImplBase):
2089         (WTF::FunctionImplBase::~FunctionImplBase):
2090         (FunctionBase):
2091         (WTF::FunctionBase::isNull):
2092         (WTF::FunctionBase::FunctionBase):
2093         (WTF::FunctionBase::impl):
2094         (WTF::bind):
2095         * wtf/GetPtr.h: Renamed from Source/JavaScriptCore/wtf/GetPtr.h.
2096         (WTF):
2097         (WTF::getPtr):
2098         * wtf/HashCountedSet.h: Renamed from Source/JavaScriptCore/wtf/HashCountedSet.h.
2099         (WTF):
2100         (HashCountedSet):
2101         (WTF::HashCountedSet::HashCountedSet):
2102         (WTF::::size):
2103         (WTF::::capacity):
2104         (WTF::::isEmpty):
2105         (WTF::::begin):
2106         (WTF::::end):
2107         (WTF::::find):
2108         (WTF::::contains):
2109         (WTF::::count):
2110         (WTF::::add):
2111         (WTF::::remove):
2112         (WTF::::removeAll):
2113         (WTF::::clear):
2114         (WTF::copyToVector):
2115         * wtf/HashFunctions.h: Renamed from Source/JavaScriptCore/wtf/HashFunctions.h.
2116         (WTF):
2117         (WTF::intHash):
2118         (WTF::IntHash::hash):
2119         (WTF::IntHash::equal):
2120         (IntHash):
2121         (WTF::FloatHash::hash):
2122         (WTF::FloatHash::equal):
2123         (FloatHash):
2124         (WTF::PtrHash::hash):
2125         (WTF::PtrHash::equal):
2126         (PtrHash):
2127         (WTF::PairHash::hash):
2128         (WTF::PairHash::equal):
2129         (PairHash):
2130         * wtf/HashIterators.h: Renamed from Source/JavaScriptCore/wtf/HashIterators.h.
2131         (WTF):
2132         (HashTableConstKeysIterator):
2133         (WTF::HashTableConstKeysIterator::HashTableConstKeysIterator):
2134         (WTF::HashTableConstKeysIterator::get):
2135         (WTF::HashTableConstKeysIterator::operator*):
2136         (WTF::HashTableConstKeysIterator::operator->):
2137         (WTF::HashTableConstKeysIterator::operator++):
2138         (HashTableConstValuesIterator):
2139         (WTF::HashTableConstValuesIterator::HashTableConstValuesIterator):
2140         (WTF::HashTableConstValuesIterator::get):
2141         (WTF::HashTableConstValuesIterator::operator*):
2142         (WTF::HashTableConstValuesIterator::operator->):
2143         (WTF::HashTableConstValuesIterator::operator++):
2144         (HashTableKeysIterator):
2145         (WTF::HashTableKeysIterator::HashTableKeysIterator):
2146         (WTF::HashTableKeysIterator::get):
2147         (WTF::HashTableKeysIterator::operator*):
2148         (WTF::HashTableKeysIterator::operator->):
2149         (WTF::HashTableKeysIterator::operator++):
2150         (WTF::HashTableKeysIterator::operator HashTableConstKeysIterator<HashTableType, KeyType, MappedType>):
2151         (HashTableValuesIterator):
2152         (WTF::HashTableValuesIterator::HashTableValuesIterator):
2153         (WTF::HashTableValuesIterator::get):
2154         (WTF::HashTableValuesIterator::operator*):
2155         (WTF::HashTableValuesIterator::operator->):
2156         (WTF::HashTableValuesIterator::operator++):
2157         (WTF::HashTableValuesIterator::operator HashTableConstValuesIterator<HashTableType, KeyType, MappedType>):
2158         (WTF::operator==):
2159         (WTF::operator!=):
2160         * wtf/HashMap.h: Renamed from Source/JavaScriptCore/wtf/HashMap.h.
2161         (WTF):
2162         (ReferenceTypeMaker):
2163         (HashMap):
2164         (WTF::HashMap::keys):
2165         (WTF::HashMap::values):
2166         (HashMapKeysProxy):
2167         (WTF::HashMap::HashMapKeysProxy::begin):
2168         (WTF::HashMap::HashMapKeysProxy::end):
2169         (HashMapValuesProxy):
2170         (WTF::HashMap::HashMapValuesProxy::begin):
2171         (WTF::HashMap::HashMapValuesProxy::end):
2172         (WTF::PairFirstExtractor::extract):
2173         (WTF::HashMapTranslator::hash):
2174         (WTF::HashMapTranslator::equal):
2175         (WTF::HashMapTranslator::translate):
2176         (WTF::HashMapTranslatorAdapter::hash):
2177         (WTF::HashMapTranslatorAdapter::equal):
2178         (WTF::HashMapTranslatorAdapter::translate):
2179         (WTF::::swap):
2180         (WTF::::size):
2181         (WTF::::capacity):
2182         (WTF::::isEmpty):
2183         (WTF::::begin):
2184         (WTF::::end):
2185         (WTF::::find):
2186         (WTF::::contains):
2187         (WTF::::inlineAdd):
2188         (WTF::::set):
2189         (WTF::::add):
2190         (WTF::::get):
2191         (WTF::::remove):
2192         (WTF::::clear):
2193         (WTF::::take):
2194         (WTF::::checkConsistency):
2195         (WTF::operator==):
2196         (WTF::operator!=):
2197         (WTF::deleteAllPairSeconds):
2198         (WTF::deleteAllValues):
2199         (WTF::deleteAllPairFirsts):
2200         (WTF::deleteAllKeys):
2201         (WTF::copyKeysToVector):
2202         (WTF::copyValuesToVector):
2203         * wtf/HashSet.h: Renamed from Source/JavaScriptCore/wtf/HashSet.h.
2204         (WTF):
2205         (HashSet):
2206         (WTF::IdentityExtractor::extract):
2207         (WTF::HashSetTranslatorAdapter::hash):
2208         (WTF::HashSetTranslatorAdapter::equal):
2209         (WTF::HashSetTranslatorAdapter::translate):
2210         (WTF::::swap):
2211         (WTF::::size):
2212         (WTF::::capacity):
2213         (WTF::::isEmpty):
2214         (WTF::::begin):
2215         (WTF::::end):
2216         (WTF::::find):
2217         (WTF::::contains):
2218         (WTF::::add):
2219         (WTF::::remove):
2220         (WTF::::clear):
2221         (WTF::deleteAllValues):
2222         (WTF::fastDeleteAllValues):
2223         (WTF::copyToVector):
2224         * wtf/HashTable.cpp: Renamed from Source/JavaScriptCore/wtf/HashTable.cpp.
2225         (WTF):
2226         (WTF::hashTableStatsMutex):
2227         (WTF::HashTableStats::~HashTableStats):
2228         (WTF::HashTableStats::recordCollisionAtCount):
2229         * wtf/HashTable.h: Renamed from Source/JavaScriptCore/wtf/HashTable.h.
2230         (WTF):
2231         (HashTableStats):
2232         (WTF::addIterator):
2233         (WTF::removeIterator):
2234         (HashTableConstIterator):
2235         (WTF::HashTableConstIterator::skipEmptyBuckets):
2236         (WTF::HashTableConstIterator::HashTableConstIterator):
2237         (WTF::HashTableConstIterator::~HashTableConstIterator):
2238         (WTF::HashTableConstIterator::operator=):
2239         (WTF::HashTableConstIterator::get):
2240         (WTF::HashTableConstIterator::operator*):
2241         (WTF::HashTableConstIterator::operator->):
2242         (WTF::HashTableConstIterator::operator++):
2243         (WTF::HashTableConstIterator::operator==):
2244         (WTF::HashTableConstIterator::operator!=):
2245         (WTF::HashTableConstIterator::checkValidity):
2246         (HashTableIterator):
2247         (WTF::HashTableIterator::HashTableIterator):
2248         (WTF::HashTableIterator::get):
2249         (WTF::HashTableIterator::operator*):
2250         (WTF::HashTableIterator::operator->):
2251         (WTF::HashTableIterator::operator++):
2252         (WTF::HashTableIterator::operator==):
2253         (WTF::HashTableIterator::operator!=):
2254         (WTF::HashTableIterator::operator const_iterator):
2255         (WTF::hashTableSwap):
2256         (IdentityHashTranslator):
2257         (WTF::IdentityHashTranslator::hash):
2258         (WTF::IdentityHashTranslator::equal):
2259         (WTF::IdentityHashTranslator::translate):
2260         (HashTable):
2261         (WTF::HashTable::~HashTable):
2262         (WTF::HashTable::begin):
2263         (WTF::HashTable::end):
2264         (WTF::HashTable::size):
2265         (WTF::HashTable::capacity):
2266         (WTF::HashTable::isEmpty):
2267         (WTF::HashTable::add):
2268         (WTF::HashTable::find):
2269         (WTF::HashTable::contains):
2270         (WTF::HashTable::isEmptyBucket):
2271         (WTF::HashTable::isDeletedBucket):
2272         (WTF::HashTable::isEmptyOrDeletedBucket):
2273         (WTF::HashTable::lookup):
2274         (WTF::HashTable::checkTableConsistency):
2275         (WTF::HashTable::internalCheckTableConsistency):
2276         (WTF::HashTable::internalCheckTableConsistencyExceptSize):
2277         (WTF::HashTable::lookupForWriting):
2278         (WTF::HashTable::shouldExpand):
2279         (WTF::HashTable::mustRehashInPlace):
2280         (WTF::HashTable::shouldShrink):
2281         (WTF::HashTable::shrink):
2282         (WTF::HashTable::deleteBucket):
2283         (WTF::HashTable::makeLookupResult):
2284         (WTF::HashTable::makeIterator):
2285         (WTF::HashTable::makeConstIterator):
2286         (WTF::HashTable::makeKnownGoodIterator):
2287         (WTF::HashTable::makeKnownGoodConstIterator):
2288         (WTF::HashTable::checkTableConsistencyExceptSize):
2289         (WTF::HashTable::invalidateIterators):
2290         (WTF::::HashTable):
2291         (WTF::doubleHash):
2292         (WTF::::checkKey):
2293         (WTF::::lookup):
2294         (WTF::::lookupForWriting):
2295         (WTF::::fullLookupForWriting):
2296         (WTF::::initializeBucket):
2297         (WTF::::add):
2298         (WTF::::addPassingHashCode):
2299         (WTF::::reinsert):
2300         (WTF::::find):
2301         (WTF::::contains):
2302         (WTF::::removeAndInvalidateWithoutEntryConsistencyCheck):
2303         (WTF::::removeAndInvalidate):
2304         (WTF::::remove):
2305         (WTF::::removeWithoutEntryConsistencyCheck):
2306         (WTF::::allocateTable):
2307         (WTF::::deallocateTable):
2308         (WTF::::expand):
2309         (WTF::::rehash):
2310         (WTF::::clear):
2311         (WTF::::swap):
2312         (WTF::=):
2313         (WTF::::checkTableConsistency):
2314         (WTF::::checkTableConsistencyExceptSize):
2315         (WTF::::invalidateIterators):
2316         (WTF::HashTableConstIteratorAdapter::HashTableConstIteratorAdapter):
2317         (HashTableConstIteratorAdapter):
2318         (WTF::HashTableConstIteratorAdapter::get):
2319         (WTF::HashTableConstIteratorAdapter::operator*):
2320         (WTF::HashTableConstIteratorAdapter::operator->):
2321         (WTF::HashTableConstIteratorAdapter::operator++):
2322         (WTF::HashTableIteratorAdapter::HashTableIteratorAdapter):
2323         (HashTableIteratorAdapter):
2324         (WTF::HashTableIteratorAdapter::get):
2325         (WTF::HashTableIteratorAdapter::operator*):
2326         (WTF::HashTableIteratorAdapter::operator->):
2327         (WTF::HashTableIteratorAdapter::operator++):
2328         (WTF::HashTableIteratorAdapter::operator HashTableConstIteratorAdapter<HashTableType, ValueType>):
2329         (WTF::operator==):
2330         (WTF::operator!=):
2331         * wtf/HashTraits.h: Renamed from Source/JavaScriptCore/wtf/HashTraits.h.
2332         (WTF):
2333         (GenericHashTraits):
2334         (WTF::GenericHashTraits::emptyValue):
2335         (WTF::GenericHashTraits::store):
2336         (WTF::GenericHashTraits::passOut):
2337         (WTF::GenericHashTraits::peek):
2338         (FloatHashTraits):
2339         (WTF::FloatHashTraits::emptyValue):
2340         (WTF::FloatHashTraits::constructDeletedValue):
2341         (WTF::FloatHashTraits::isDeletedValue):
2342         (UnsignedWithZeroKeyHashTraits):
2343         (WTF::UnsignedWithZeroKeyHashTraits::emptyValue):
2344         (WTF::UnsignedWithZeroKeyHashTraits::constructDeletedValue):
2345         (WTF::UnsignedWithZeroKeyHashTraits::isDeletedValue):
2346         (SimpleClassHashTraits):
2347         (WTF::SimpleClassHashTraits::constructDeletedValue):
2348         (WTF::SimpleClassHashTraits::isDeletedValue):
2349         (PairHashTraits):
2350         (WTF::PairHashTraits::emptyValue):
2351         (WTF::PairHashTraits::constructDeletedValue):
2352         (WTF::PairHashTraits::isDeletedValue):
2353         * wtf/HexNumber.h: Renamed from Source/JavaScriptCore/wtf/HexNumber.h.
2354         (WTF):
2355         (Internal):
2356         (WTF::Internal::hexDigitsForMode):
2357         (WTF::appendByteAsHex):
2358         (WTF::placeByteAsHexCompressIfPossible):
2359         (WTF::placeByteAsHex):
2360         (WTF::appendUnsignedAsHex):
2361         (WTF::appendUnsignedAsHexFixedSize):
2362         * wtf/InlineASM.h: Renamed from Source/JavaScriptCore/wtf/InlineASM.h.
2363         * wtf/Int16Array.h: Renamed from Source/JavaScriptCore/wtf/Int16Array.h.
2364         (WTF):
2365         (Int16Array):
2366         (WTF::Int16Array::set):
2367         (WTF::Int16Array::isShortArray):
2368         (WTF::Int16Array::create):
2369         (WTF::Int16Array::Int16Array):
2370         (WTF::Int16Array::subarray):
2371         * wtf/Int32Array.h: Renamed from Source/JavaScriptCore/wtf/Int32Array.h.
2372         (WTF):
2373         (Int32Array):
2374         (WTF::Int32Array::set):
2375         (WTF::Int32Array::isIntArray):
2376         (WTF::Int32Array::create):
2377         (WTF::Int32Array::Int32Array):
2378         (WTF::Int32Array::subarray):
2379         * wtf/Int8Array.h: Renamed from Source/JavaScriptCore/wtf/Int8Array.h.
2380         (WTF):
2381         (Int8Array):
2382         (WTF::Int8Array::set):
2383         (WTF::Int8Array::isByteArray):
2384         (WTF::Int8Array::create):
2385         (WTF::Int8Array::Int8Array):
2386         (WTF::Int8Array::subarray):
2387         * wtf/IntegralTypedArrayBase.h: Renamed from Source/JavaScriptCore/wtf/IntegralTypedArrayBase.h.
2388         (WTF):
2389         (IntegralTypedArrayBase):
2390         (WTF::IntegralTypedArrayBase::set):
2391         (WTF::IntegralTypedArrayBase::item):
2392         (WTF::IntegralTypedArrayBase::IntegralTypedArrayBase):
2393         * wtf/ListHashSet.h: Renamed from Source/JavaScriptCore/wtf/ListHashSet.h.
2394         (WTF):
2395         (ListHashSet):
2396         (ListHashSetNodeAllocator):
2397         (WTF::ListHashSetNodeAllocator::ListHashSetNodeAllocator):
2398         (WTF::ListHashSetNodeAllocator::allocate):
2399         (WTF::ListHashSetNodeAllocator::deallocate):
2400         (WTF::ListHashSetNodeAllocator::pool):
2401         (WTF::ListHashSetNodeAllocator::pastPool):
2402         (WTF::ListHashSetNodeAllocator::inPool):
2403         (ListHashSetNode):
2404         (WTF::ListHashSetNode::ListHashSetNode):
2405         (WTF::ListHashSetNode::operator new):
2406         (WTF::ListHashSetNode::destroy):
2407         (WTF::ListHashSetNodeHashFunctions::hash):
2408         (WTF::ListHashSetNodeHashFunctions::equal):
2409         (ListHashSetNodeHashFunctions):
2410         (ListHashSetIterator):
2411         (WTF::ListHashSetIterator::ListHashSetIterator):
2412         (WTF::ListHashSetIterator::get):
2413         (WTF::ListHashSetIterator::operator*):
2414         (WTF::ListHashSetIterator::operator->):
2415         (WTF::ListHashSetIterator::operator++):
2416         (WTF::ListHashSetIterator::operator--):
2417         (WTF::ListHashSetIterator::operator==):
2418         (WTF::ListHashSetIterator::operator!=):
2419         (WTF::ListHashSetIterator::operator const_iterator):
2420         (WTF::ListHashSetIterator::node):
2421         (ListHashSetConstIterator):
2422         (WTF::ListHashSetConstIterator::ListHashSetConstIterator):
2423         (WTF::ListHashSetConstIterator::get):
2424         (WTF::ListHashSetConstIterator::operator*):
2425         (WTF::ListHashSetConstIterator::operator->):
2426         (WTF::ListHashSetConstIterator::operator++):
2427         (WTF::ListHashSetConstIterator::operator--):
2428         (WTF::ListHashSetConstIterator::operator==):
2429         (WTF::ListHashSetConstIterator::operator!=):
2430         (WTF::ListHashSetConstIterator::node):
2431         (ListHashSetReverseIterator):
2432         (WTF::ListHashSetReverseIterator::ListHashSetReverseIterator):
2433         (WTF::ListHashSetReverseIterator::get):
2434         (WTF::ListHashSetReverseIterator::operator*):
2435         (WTF::ListHashSetReverseIterator::operator->):
2436         (WTF::ListHashSetReverseIterator::operator++):
2437         (WTF::ListHashSetReverseIterator::operator--):
2438         (WTF::ListHashSetReverseIterator::operator==):
2439         (WTF::ListHashSetReverseIterator::operator!=):
2440         (WTF::ListHashSetReverseIterator::operator const_reverse_iterator):
2441         (WTF::ListHashSetReverseIterator::node):
2442         (ListHashSetConstReverseIterator):
2443         (WTF::ListHashSetConstReverseIterator::ListHashSetConstReverseIterator):
2444         (WTF::ListHashSetConstReverseIterator::get):
2445         (WTF::ListHashSetConstReverseIterator::operator*):
2446         (WTF::ListHashSetConstReverseIterator::operator->):
2447         (WTF::ListHashSetConstReverseIterator::operator++):
2448         (WTF::ListHashSetConstReverseIterator::operator--):
2449         (WTF::ListHashSetConstReverseIterator::operator==):
2450         (WTF::ListHashSetConstReverseIterator::operator!=):
2451         (WTF::ListHashSetConstReverseIterator::node):
2452         (WTF::ListHashSetTranslator::hash):
2453         (WTF::ListHashSetTranslator::equal):
2454         (WTF::ListHashSetTranslator::translate):
2455         (WTF::::ListHashSet):
2456         (WTF::=):
2457         (WTF::::swap):
2458         (WTF::::~ListHashSet):
2459         (WTF::::size):
2460         (WTF::::capacity):
2461         (WTF::::isEmpty):
2462         (WTF::::begin):
2463         (WTF::::end):
2464         (WTF::::rbegin):
2465         (WTF::::rend):
2466         (WTF::::first):
2467         (WTF::::last):
2468         (WTF::::removeLast):
2469         (WTF::::find):
2470         (WTF::ListHashSetTranslatorAdapter::hash):
2471         (WTF::ListHashSetTranslatorAdapter::equal):
2472         (WTF::::contains):
2473         (WTF::::add):
2474         (WTF::::insertBefore):
2475         (WTF::::remove):
2476         (WTF::::clear):
2477         (WTF::::unlinkAndDelete):
2478         (WTF::::appendNode):
2479         (WTF::::insertNodeBefore):
2480         (WTF::::deleteAllNodes):
2481         (WTF::::makeReverseIterator):
2482         (WTF::::makeConstReverseIterator):
2483         (WTF::::makeIterator):
2484         (WTF::::makeConstIterator):
2485         (WTF::deleteAllValues):
2486         * wtf/ListRefPtr.h: Renamed from Source/JavaScriptCore/wtf/ListRefPtr.h.
2487         (WTF):
2488         (ListRefPtr):
2489         (WTF::ListRefPtr::ListRefPtr):
2490         (WTF::ListRefPtr::~ListRefPtr):
2491         (WTF::ListRefPtr::operator=):
2492         (WTF::getPtr):
2493         * wtf/Locker.h: Renamed from Source/JavaScriptCore/wtf/Locker.h.
2494         (WTF):
2495         (Locker):
2496         (WTF::Locker::Locker):
2497         (WTF::Locker::~Locker):
2498         * wtf/MD5.cpp: Renamed from Source/JavaScriptCore/wtf/MD5.cpp.
2499         (WTF):
2500         (WTF::testMD5):
2501         (WTF::expectMD5):
2502         (WTF::reverseBytes):
2503         (WTF::MD5Transform):
2504         (WTF::MD5::MD5):
2505         (WTF::MD5::addBytes):
2506         (WTF::MD5::checksum):
2507         * wtf/MD5.h: Renamed from Source/JavaScriptCore/wtf/MD5.h.
2508         (WTF):
2509         (MD5):
2510         (WTF::MD5::addBytes):
2511         * wtf/MainThread.cpp: Renamed from Source/JavaScriptCore/wtf/MainThread.cpp.
2512         (WTF):
2513         (FunctionWithContext):
2514         (WTF::FunctionWithContext::FunctionWithContext):
2515         (WTF::FunctionWithContext::operator == ):
2516         (FunctionWithContextFinder):
2517         (WTF::FunctionWithContextFinder::FunctionWithContextFinder):
2518         (WTF::FunctionWithContextFinder::operator()):
2519         (WTF::mainThreadFunctionQueueMutex):
2520         (WTF::functionQueue):
2521         (WTF::initializeMainThread):
2522         (WTF::initializeMainThreadOnce):
2523         (WTF::initializeMainThreadToProcessMainThreadOnce):
2524         (WTF::initializeMainThreadToProcessMainThread):
2525         (WTF::dispatchFunctionsFromMainThread):
2526         (WTF::callOnMainThread):
2527         (WTF::callOnMainThreadAndWait):
2528         (WTF::cancelCallOnMainThread):
2529         (WTF::callFunctionObject):
2530         (WTF::setMainThreadCallbacksPaused):
2531         (WTF::isMainThread):
2532         (WTF::initializeGCThreads):
2533         (WTF::registerGCThread):
2534         (WTF::isMainThreadOrGCThread):
2535         * wtf/MainThread.h: Renamed from Source/JavaScriptCore/wtf/MainThread.h.
2536         (WTF):
2537         (WTF::isMainThreadOrGCThread):
2538         * wtf/MallocZoneSupport.h: Renamed from Source/JavaScriptCore/wtf/MallocZoneSupport.h.
2539         (WTF):
2540         (RemoteMemoryReader):
2541         (WTF::RemoteMemoryReader::RemoteMemoryReader):
2542         (WTF::RemoteMemoryReader::operator()):
2543         (WTF::RemoteMemoryReader::nextEntryInLinkedList):
2544         * wtf/MathExtras.h: Renamed from Source/JavaScriptCore/wtf/MathExtras.h.
2545         (wtf_ceil):
2546         (isfinite):
2547         (isinf):
2548         (signbit):
2549         (round):
2550         (roundf):
2551         (llround):
2552         (llroundf):
2553         (lround):
2554         (lroundf):
2555         (trunc):
2556         (abs):
2557         (isnan):
2558         (nextafter):
2559         (nextafterf):
2560         (copysign):
2561         (log2):
2562         (log2f):
2563         (wtf_atan2):
2564         (wtf_fmod):
2565         (wtf_pow):
2566         (deg2rad):
2567         (rad2deg):
2568         (deg2grad):
2569         (grad2deg):
2570         (turn2deg):
2571         (deg2turn):
2572         (rad2grad):
2573         (grad2rad):
2574         (defaultMinimumForClamp):
2575         (defaultMaximumForClamp):
2576         (clampTo):
2577         (clampToInteger):
2578         (clampToFloat):
2579         (clampToPositiveInteger):
2580         (isWithinIntRange):
2581         (decomposeDouble):
2582         (doubleToInteger):
2583         * wtf/MessageQueue.h: Renamed from Source/JavaScriptCore/wtf/MessageQueue.h.
2584         (WTF):
2585         (MessageQueue):
2586         (WTF::MessageQueue::MessageQueue):
2587         (WTF::MessageQueue::infiniteTime):
2588         (WTF::MessageQueue::alwaysTruePredicate):
2589         (WTF::::~MessageQueue):
2590         (WTF::::append):
2591         (WTF::::appendAndCheckEmpty):
2592         (WTF::::prepend):
2593         (WTF::::waitForMessage):
2594         (WTF::::waitForMessageFilteredWithTimeout):
2595         (WTF::::tryGetMessage):
2596         (WTF::::tryGetMessageIgnoringKilled):
2597         (WTF::::removeIf):
2598         (WTF::::isEmpty):
2599         (WTF::::kill):
2600         (WTF::::killed):
2601         * wtf/MetaAllocator.cpp: Renamed from Source/JavaScriptCore/wtf/MetaAllocator.cpp.
2602         (WTF):
2603         (WTF::MetaAllocator::~MetaAllocator):
2604         (WTF::MetaAllocatorTracker::notify):
2605         (WTF::MetaAllocatorTracker::release):
2606         (WTF::MetaAllocator::release):
2607         (WTF::MetaAllocatorHandle::MetaAllocatorHandle):
2608         (WTF::MetaAllocatorHandle::~MetaAllocatorHandle):
2609         (WTF::MetaAllocatorHandle::shrink):
2610         (WTF::MetaAllocator::MetaAllocator):
2611         (WTF::MetaAllocator::allocate):
2612         (WTF::MetaAllocator::currentStatistics):
2613         (WTF::MetaAllocator::findAndRemoveFreeSpace):
2614         (WTF::MetaAllocator::addFreeSpaceFromReleasedHandle):
2615         (WTF::MetaAllocator::addFreshFreeSpace):
2616         (WTF::MetaAllocator::debugFreeSpaceSize):
2617         (WTF::MetaAllocator::addFreeSpace):
2618         (WTF::MetaAllocator::incrementPageOccupancy):
2619         (WTF::MetaAllocator::decrementPageOccupancy):
2620         (WTF::MetaAllocator::roundUp):
2621         (WTF::MetaAllocator::allocFreeSpaceNode):
2622         (WTF::MetaAllocator::freeFreeSpaceNode):
2623         (WTF::MetaAllocator::dumpProfile):
2624         * wtf/MetaAllocator.h: Renamed from Source/JavaScriptCore/wtf/MetaAllocator.h.
2625         (WTF):
2626         (MetaAllocatorTracker):
2627         (WTF::MetaAllocatorTracker::find):
2628         (MetaAllocator):
2629         (WTF::MetaAllocator::trackAllocations):
2630         (WTF::MetaAllocator::bytesAllocated):
2631         (WTF::MetaAllocator::bytesReserved):
2632         (WTF::MetaAllocator::bytesCommitted):
2633         (Statistics):
2634         (WTF::MetaAllocator::dumpProfile):
2635         (FreeSpaceNode):
2636         (WTF::MetaAllocator::FreeSpaceNode::FreeSpaceNode):
2637         (WTF::MetaAllocator::FreeSpaceNode::key):
2638         * wtf/MetaAllocatorHandle.h: Renamed from Source/JavaScriptCore/wtf/MetaAllocatorHandle.h.
2639         (WTF):
2640         (MetaAllocatorHandle):
2641         (WTF::MetaAllocatorHandle::start):
2642         (WTF::MetaAllocatorHandle::end):
2643         (WTF::MetaAllocatorHandle::sizeInBytes):
2644         (WTF::MetaAllocatorHandle::isManaged):
2645         (WTF::MetaAllocatorHandle::allocator):
2646         (WTF::MetaAllocatorHandle::ownerUID):
2647         (WTF::MetaAllocatorHandle::key):
2648         * wtf/NonCopyingSort.h: Renamed from Source/JavaScriptCore/wtf/NonCopyingSort.h.
2649         (WTF):
2650         (WTF::siftDown):
2651         (WTF::heapify):
2652         (WTF::heapSort):
2653         (WTF::nonCopyingSort):
2654         * wtf/Noncopyable.h: Renamed from Source/JavaScriptCore/wtf/Noncopyable.h.
2655         * wtf/NotFound.h: Renamed from Source/JavaScriptCore/wtf/NotFound.h.
2656         (WTF):
2657         * wtf/NullPtr.cpp: Renamed from Source/JavaScriptCore/wtf/NullPtr.cpp.
2658         * wtf/NullPtr.h: Renamed from Source/JavaScriptCore/wtf/NullPtr.h.
2659         * wtf/NumberOfCores.cpp: Renamed from Source/JavaScriptCore/wtf/NumberOfCores.cpp.
2660         (WTF):
2661         (WTF::numberOfProcessorCores):
2662         * wtf/NumberOfCores.h: Renamed from Source/JavaScriptCore/wtf/NumberOfCores.h.
2663         (WTF):
2664         * wtf/OSAllocator.h: Renamed from Source/JavaScriptCore/wtf/OSAllocator.h.
2665         (WTF):
2666         (OSAllocator):
2667         (WTF::OSAllocator::reserveAndCommit):
2668         (WTF::OSAllocator::decommitAndRelease):
2669         (WTF::OSAllocator::reallocateCommitted):
2670         * wtf/OSAllocatorPosix.cpp: Renamed from Source/JavaScriptCore/wtf/OSAllocatorPosix.cpp.
2671         (WTF):
2672         (WTF::OSAllocator::reserveUncommitted):
2673         (WTF::OSAllocator::reserveAndCommit):
2674         (WTF::OSAllocator::commit):
2675         (WTF::OSAllocator::decommit):
2676         (WTF::OSAllocator::releaseDecommitted):
2677         * wtf/OSAllocatorWin.cpp: Renamed from Source/JavaScriptCore/wtf/OSAllocatorWin.cpp.
2678         (WTF):
2679         (WTF::protection):
2680         (WTF::OSAllocator::reserveUncommitted):
2681         (WTF::OSAllocator::reserveAndCommit):
2682         (WTF::OSAllocator::commit):
2683         (WTF::OSAllocator::decommit):
2684         (WTF::OSAllocator::releaseDecommitted):
2685         * wtf/OSRandomSource.cpp: Renamed from Source/JavaScriptCore/wtf/OSRandomSource.cpp.
2686         (WTF):
2687         (WTF::cryptographicallyRandomValuesFromOS):
2688         * wtf/OSRandomSource.h: Renamed from Source/JavaScriptCore/wtf/OSRandomSource.h.
2689         (WTF):
2690         * wtf/OwnArrayPtr.h: Renamed from Source/JavaScriptCore/wtf/OwnArrayPtr.h.
2691         (WTF):
2692         (OwnArrayPtr):
2693         (WTF::OwnArrayPtr::OwnArrayPtr):
2694         (WTF::OwnArrayPtr::~OwnArrayPtr):
2695         (WTF::OwnArrayPtr::get):
2696         (WTF::OwnArrayPtr::operator*):
2697         (WTF::OwnArrayPtr::operator->):
2698         (WTF::OwnArrayPtr::operator[]):
2699         (WTF::OwnArrayPtr::operator!):
2700         (WTF::OwnArrayPtr::operator UnspecifiedBoolType):
2701         (WTF::OwnArrayPtr::operator=):
2702         (WTF::OwnArrayPtr::swap):
2703         (WTF::::OwnArrayPtr):
2704         (WTF::::clear):
2705         (WTF::::release):
2706         (WTF::::leakPtr):
2707         (WTF::=):
2708         (WTF::swap):
2709         (WTF::operator==):
2710         (WTF::operator!=):
2711         (WTF::getPtr):
2712         * wtf/OwnPtr.h: Renamed from Source/JavaScriptCore/wtf/OwnPtr.h.
2713         (WTF):
2714         (OwnPtr):
2715         (WTF::OwnPtr::OwnPtr):
2716         (WTF::OwnPtr::~OwnPtr):
2717         (WTF::OwnPtr::get):
2718         (WTF::OwnPtr::operator*):
2719         (WTF::OwnPtr::operator->):
2720         (WTF::OwnPtr::operator!):
2721         (WTF::OwnPtr::operator UnspecifiedBoolType):
2722         (WTF::OwnPtr::operator=):
2723         (WTF::OwnPtr::swap):
2724         (WTF::OwnPtr::operator==):
2725         (WTF::OwnPtr::operator!=):
2726         (WTF::::OwnPtr):
2727         (WTF::::clear):
2728         (WTF::::release):
2729         (WTF::::leakPtr):
2730         (WTF::=):
2731         (WTF::swap):
2732         (WTF::operator==):
2733         (WTF::operator!=):
2734         (WTF::getPtr):
2735         * wtf/OwnPtrCommon.h: Renamed from Source/JavaScriptCore/wtf/OwnPtrCommon.h.
2736         (WTF):
2737         (WTF::deleteOwnedPtr):
2738         * wtf/PackedIntVector.h: Renamed from Source/JavaScriptCore/wtf/PackedIntVector.h.
2739         (WTF):
2740         (PackedIntVector):
2741         (WTF::PackedIntVector::PackedIntVector):
2742         (WTF::PackedIntVector::operator=):
2743         (WTF::PackedIntVector::size):
2744         (WTF::PackedIntVector::ensureSize):
2745         (WTF::PackedIntVector::resize):
2746         (WTF::PackedIntVector::clearAll):
2747         (WTF::PackedIntVector::get):
2748         (WTF::PackedIntVector::set):
2749         (WTF::PackedIntVector::mask):
2750         * wtf/PageAllocation.h: Renamed from Source/JavaScriptCore/wtf/PageAllocation.h.
2751         (WTF):
2752         (PageAllocation):
2753         (WTF::PageAllocation::PageAllocation):
2754         (WTF::PageAllocation::operator bool):
2755         (WTF::PageAllocation::allocate):
2756         (WTF::PageAllocation::deallocate):
2757         * wtf/PageAllocationAligned.cpp: Renamed from Source/JavaScriptCore/wtf/PageAllocationAligned.cpp.
2758         (WTF):
2759         (WTF::PageAllocationAligned::allocate):
2760         (WTF::PageAllocationAligned::deallocate):
2761         * wtf/PageAllocationAligned.h: Renamed from Source/JavaScriptCore/wtf/PageAllocationAligned.h.
2762         (WTF):
2763         (PageAllocationAligned):
2764         (WTF::PageAllocationAligned::PageAllocationAligned):
2765         * wtf/PageBlock.cpp: Renamed from Source/JavaScriptCore/wtf/PageBlock.cpp.
2766         (WTF):
2767         (WTF::systemPageSize):
2768         (WTF::pageSize):
2769         (WTF::pageMask):
2770         * wtf/PageBlock.h: Renamed from Source/JavaScriptCore/wtf/PageBlock.h.
2771         (WTF):
2772         (WTF::isPageAligned):
2773         (WTF::isPowerOfTwo):
2774         (PageBlock):
2775         (WTF::PageBlock::base):
2776         (WTF::PageBlock::size):
2777         (WTF::PageBlock::operator bool):
2778         (WTF::PageBlock::contains):
2779         (WTF::PageBlock::PageBlock):
2780         * wtf/PageReservation.h: Renamed from Source/JavaScriptCore/wtf/PageReservation.h.
2781         (WTF):
2782         (PageReservation):
2783         (WTF::PageReservation::PageReservation):
2784         (WTF::PageReservation::operator bool):
2785         (WTF::PageReservation::commit):
2786         (WTF::PageReservation::decommit):
2787         (WTF::PageReservation::committed):
2788         (WTF::PageReservation::reserve):
2789         (WTF::PageReservation::reserveWithGuardPages):
2790         (WTF::PageReservation::deallocate):
2791         * wtf/ParallelJobs.h: Renamed from Source/JavaScriptCore/wtf/ParallelJobs.h.
2792         (WTF):
2793         (ParallelJobs):
2794         (WTF::ParallelJobs::ParallelJobs):
2795         (WTF::ParallelJobs::numberOfJobs):
2796         (WTF::ParallelJobs::parameter):
2797         (WTF::ParallelJobs::execute):
2798         * wtf/ParallelJobsGeneric.cpp: Renamed from Source/JavaScriptCore/wtf/ParallelJobsGeneric.cpp.
2799         (WTF):
2800         (WTF::ParallelEnvironment::ParallelEnvironment):
2801         (WTF::ParallelEnvironment::execute):
2802         (WTF::ParallelEnvironment::ThreadPrivate::tryLockFor):
2803         (WTF::ParallelEnvironment::ThreadPrivate::execute):
2804         (WTF::ParallelEnvironment::ThreadPrivate::waitForFinish):
2805         (WTF::ParallelEnvironment::ThreadPrivate::workerThread):
2806         * wtf/ParallelJobsGeneric.h: Renamed from Source/JavaScriptCore/wtf/ParallelJobsGeneric.h.
2807         (WTF):
2808         (ParallelEnvironment):
2809         (WTF::ParallelEnvironment::numberOfJobs):
2810         (ThreadPrivate):
2811         (WTF::ParallelEnvironment::ThreadPrivate::ThreadPrivate):
2812         (WTF::ParallelEnvironment::ThreadPrivate::create):
2813         * wtf/ParallelJobsLibdispatch.h: Renamed from Source/JavaScriptCore/wtf/ParallelJobsLibdispatch.h.
2814         (WTF):
2815         (ParallelEnvironment):
2816         (WTF::ParallelEnvironment::ParallelEnvironment):
2817         (WTF::ParallelEnvironment::numberOfJobs):
2818         (WTF::ParallelEnvironment::execute):
2819         * wtf/ParallelJobsOpenMP.h: Renamed from Source/JavaScriptCore/wtf/ParallelJobsOpenMP.h.
2820         (WTF):
2821         (ParallelEnvironment):
2822         (WTF::ParallelEnvironment::ParallelEnvironment):
2823         (WTF::ParallelEnvironment::numberOfJobs):
2824         (WTF::ParallelEnvironment::execute):
2825         * wtf/PassOwnArrayPtr.h: Renamed from Source/JavaScriptCore/wtf/PassOwnArrayPtr.h.
2826         (WTF):
2827         (PassOwnArrayPtr):
2828         (WTF::PassOwnArrayPtr::PassOwnArrayPtr):
2829         (WTF::PassOwnArrayPtr::~PassOwnArrayPtr):
2830         (WTF::PassOwnArrayPtr::get):
2831         (WTF::PassOwnArrayPtr::operator*):
2832         (WTF::PassOwnArrayPtr::operator->):
2833         (WTF::PassOwnArrayPtr::operator!):
2834         (WTF::PassOwnArrayPtr::operator UnspecifiedBoolType):
2835         (WTF::PassOwnArrayPtr::operator=):
2836         (WTF::::leakPtr):
2837         (WTF::operator==):
2838         (WTF::operator!=):
2839         (WTF::adoptArrayPtr):
2840         (WTF::deleteOwnedArrayPtr):
2841         (WTF::static_pointer_cast):
2842         (WTF::const_pointer_cast):
2843         (WTF::getPtr):
2844         * wtf/PassOwnPtr.h: Renamed from Source/JavaScriptCore/wtf/PassOwnPtr.h.
2845         (WTF):
2846         (PassOwnPtr):
2847         (WTF::PassOwnPtr::PassOwnPtr):
2848         (WTF::PassOwnPtr::~PassOwnPtr):
2849         (WTF::PassOwnPtr::get):
2850         (WTF::PassOwnPtr::operator*):
2851         (WTF::PassOwnPtr::operator->):
2852         (WTF::PassOwnPtr::operator!):
2853         (WTF::PassOwnPtr::operator UnspecifiedBoolType):
2854         (WTF::PassOwnPtr::operator=):
2855         (WTF::PassOwnPtr::operator==):
2856         (WTF::PassOwnPtr::operator!=):
2857         (WTF::::leakPtr):
2858         (WTF::operator==):
2859         (WTF::operator!=):
2860         (WTF::adoptPtr):
2861         (WTF::static_pointer_cast):
2862         (WTF::const_pointer_cast):
2863         (WTF::getPtr):
2864         * wtf/PassRefPtr.h: Renamed from Source/JavaScriptCore/wtf/PassRefPtr.h.
2865         (WTF):
2866         (WTF::adopted):
2867         (WTF::refIfNotNull):
2868         (WTF::derefIfNotNull):
2869         (PassRefPtr):
2870         (WTF::PassRefPtr::PassRefPtr):
2871         (WTF::PassRefPtr::~PassRefPtr):
2872         (WTF::PassRefPtr::get):
2873         (WTF::PassRefPtr::operator*):
2874         (WTF::PassRefPtr::operator->):
2875         (WTF::PassRefPtr::operator!):
2876         (WTF::PassRefPtr::operator UnspecifiedBoolType):
2877         (WTF::PassRefPtr::operator=):
2878         (NonNullPassRefPtr):
2879         (WTF::NonNullPassRefPtr::NonNullPassRefPtr):
2880         (WTF::NonNullPassRefPtr::~NonNullPassRefPtr):
2881         (WTF::NonNullPassRefPtr::get):
2882         (WTF::NonNullPassRefPtr::operator*):
2883         (WTF::NonNullPassRefPtr::operator->):
2884         (WTF::NonNullPassRefPtr::operator=):
2885         (WTF::::PassRefPtr):
2886         (WTF::::leakRef):
2887         (WTF::operator==):
2888         (WTF::operator!=):
2889         (WTF::adoptRef):
2890         (WTF::static_pointer_cast):
2891         (WTF::const_pointer_cast):
2892         (WTF::getPtr):
2893         * wtf/PassTraits.h: Renamed from Source/JavaScriptCore/wtf/PassTraits.h.
2894         (WTF):
2895         (PassTraits):
2896         (WTF::PassTraits::transfer):
2897         * wtf/PlatformBlackBerry.cmake: Renamed from Source/JavaScriptCore/wtf/PlatformBlackBerry.cmake.
2898         * wtf/PlatformEfl.cmake: Renamed from Source/JavaScriptCore/wtf/PlatformEfl.cmake.
2899         * wtf/PlatformWinCE.cmake: Renamed from Source/JavaScriptCore/wtf/PlatformWinCE.cmake.
2900         * wtf/PossiblyNull.h: Renamed from Source/JavaScriptCore/wtf/PossiblyNull.h.
2901         (WTF):
2902         (WTF::PossiblyNull::PossiblyNull):
2903         (WTF::PossiblyNull::~PossiblyNull):
2904         (PossiblyNull):
2905         (WTF::::getValue):
2906         * wtf/RandomNumber.cpp: Renamed from Source/JavaScriptCore/wtf/RandomNumber.cpp.
2907         (WTF):
2908         (WTF::randomNumber):
2909         * wtf/RandomNumber.h: Renamed from Source/JavaScriptCore/wtf/RandomNumber.h.
2910         (WTF):
2911         * wtf/RandomNumberSeed.h: Renamed from Source/JavaScriptCore/wtf/RandomNumberSeed.h.
2912         (WTF):
2913         (WTF::initializeRandomNumberGenerator):
2914         * wtf/RedBlackTree.h: Renamed from Source/JavaScriptCore/wtf/RedBlackTree.h.
2915         (WTF):
2916         (RedBlackTree):
2917         (Node):
2918         (WTF::RedBlackTree::Node::successor):
2919         (WTF::RedBlackTree::Node::predecessor):
2920         (WTF::RedBlackTree::Node::reset):
2921         (WTF::RedBlackTree::Node::parent):
2922         (WTF::RedBlackTree::Node::setParent):
2923         (WTF::RedBlackTree::Node::left):
2924         (WTF::RedBlackTree::Node::setLeft):
2925         (WTF::RedBlackTree::Node::right):
2926         (WTF::RedBlackTree::Node::setRight):
2927         (WTF::RedBlackTree::Node::color):
2928         (WTF::RedBlackTree::Node::setColor):
2929         (WTF::RedBlackTree::RedBlackTree):
2930         (WTF::RedBlackTree::insert):
2931         (WTF::RedBlackTree::remove):
2932         (WTF::RedBlackTree::findExact):
2933         (WTF::RedBlackTree::findLeastGreaterThanOrEqual):
2934         (WTF::RedBlackTree::findGreatestLessThanOrEqual):
2935         (WTF::RedBlackTree::first):
2936         (WTF::RedBlackTree::last):
2937         (WTF::RedBlackTree::size):
2938         (WTF::RedBlackTree::isEmpty):
2939         (WTF::RedBlackTree::treeMinimum):
2940         (WTF::RedBlackTree::treeMaximum):
2941         (WTF::RedBlackTree::treeInsert):
2942         (WTF::RedBlackTree::leftRotate):
2943         (WTF::RedBlackTree::rightRotate):
2944         (WTF::RedBlackTree::removeFixup):
2945         * wtf/RefCounted.h: Renamed from Source/JavaScriptCore/wtf/RefCounted.h.
2946         (WTF):
2947         (RefCountedBase):
2948         (WTF::RefCountedBase::ref):
2949         (WTF::RefCountedBase::hasOneRef):
2950         (WTF::RefCountedBase::refCount):
2951         (WTF::RefCountedBase::turnOffVerifier):
2952         (WTF::RefCountedBase::relaxAdoptionRequirement):
2953         (WTF::RefCountedBase::addressOfCount):
2954         (WTF::RefCountedBase::RefCountedBase):
2955         (WTF::RefCountedBase::~RefCountedBase):
2956         (WTF::RefCountedBase::derefBase):
2957         (WTF::RefCountedBase::deletionHasBegun):
2958         (WTF::adopted):
2959         (RefCounted):
2960         (WTF::RefCounted::deref):
2961         (WTF::RefCounted::RefCounted):
2962         (WTF::RefCounted::~RefCounted):
2963         (RefCountedCustomAllocated):
2964         (WTF::RefCountedCustomAllocated::deref):
2965         (WTF::RefCountedCustomAllocated::~RefCountedCustomAllocated):
2966         (WTF::RefCountedBase::setMutexForVerifier):
2967         (WTF::RefCountedBase::setDispatchQueueForVerifier):
2968         * wtf/RefCountedArray.h: Renamed from Source/JavaScriptCore/wtf/RefCountedArray.h.
2969         (WTF):
2970         (RefCountedArray):
2971         (WTF::RefCountedArray::RefCountedArray):
2972         (WTF::RefCountedArray::operator=):
2973         (WTF::RefCountedArray::~RefCountedArray):
2974         (WTF::RefCountedArray::size):
2975         (WTF::RefCountedArray::data):
2976         (WTF::RefCountedArray::begin):
2977         (WTF::RefCountedArray::end):
2978         (WTF::RefCountedArray::at):
2979         (WTF::RefCountedArray::operator[]):
2980         (Header):
2981         (WTF::RefCountedArray::Header::size):
2982         (WTF::RefCountedArray::Header::payload):
2983         (WTF::RefCountedArray::Header::fromPayload):
2984         * wtf/RefCountedLeakCounter.cpp: Renamed from Source/JavaScriptCore/wtf/RefCountedLeakCounter.cpp.
2985         (WTF):
2986         (WTF::RefCountedLeakCounter::suppressMessages):
2987         (WTF::RefCountedLeakCounter::cancelMessageSuppression):
2988         (WTF::RefCountedLeakCounter::RefCountedLeakCounter):
2989         (WTF::RefCountedLeakCounter::~RefCountedLeakCounter):
2990         (WTF::RefCountedLeakCounter::increment):
2991         (WTF::RefCountedLeakCounter::decrement):
2992         * wtf/RefCountedLeakCounter.h: Renamed from Source/JavaScriptCore/wtf/RefCountedLeakCounter.h.
2993         (WTF):
2994         (RefCountedLeakCounter):
2995         * wtf/RefPtr.h: Renamed from Source/JavaScriptCore/wtf/RefPtr.h.
2996         (WTF):
2997         (RefPtr):
2998         (WTF::RefPtr::RefPtr):
2999         (WTF::RefPtr::isHashTableDeletedValue):
3000         (WTF::RefPtr::~RefPtr):
3001         (WTF::RefPtr::get):
3002         (WTF::RefPtr::release):
3003         (WTF::RefPtr::operator*):
3004         (WTF::RefPtr::operator->):
3005         (WTF::RefPtr::operator!):
3006         (WTF::RefPtr::operator UnspecifiedBoolType):
3007         (WTF::RefPtr::operator=):
3008         (WTF::RefPtr::hashTableDeletedValue):
3009         (WTF::::RefPtr):
3010         (WTF::::clear):
3011         (WTF::=):
3012         (WTF::::swap):
3013         (WTF::swap):
3014         (WTF::operator==):
3015         (WTF::operator!=):
3016         (WTF::static_pointer_cast):
3017         (WTF::const_pointer_cast):
3018         (WTF::getPtr):
3019         * wtf/RefPtrHashMap.h: Renamed from Source/JavaScriptCore/wtf/RefPtrHashMap.h.
3020         (WTF):
3021         (WTF::::swap):
3022         (WTF::::size):
3023         (WTF::::capacity):
3024         (WTF::::isEmpty):
3025         (WTF::::begin):
3026         (WTF::::end):
3027         (WTF::::find):
3028         (WTF::::contains):
3029         (WTF::::inlineAdd):
3030         (WTF::::set):
3031         (WTF::::add):
3032         (WTF::::get):
3033         (WTF::::inlineGet):
3034         (WTF::::remove):
3035         (WTF::::clear):
3036         (WTF::::take):
3037         * wtf/RetainPtr.h: Renamed from Source/JavaScriptCore/wtf/RetainPtr.h.
3038         (WTF):
3039         (WTF::adoptNSReference):
3040         (RetainPtr):
3041         (WTF::RetainPtr::RetainPtr):
3042         (WTF::RetainPtr::isHashTableDeletedValue):
3043         (WTF::RetainPtr::~RetainPtr):
3044         (WTF::RetainPtr::get):
3045         (WTF::RetainPtr::operator->):
3046         (WTF::RetainPtr::operator!):
3047         (WTF::RetainPtr::operator UnspecifiedBoolType):
3048         (WTF::RetainPtr::operator=):
3049         (WTF::RetainPtr::hashTableDeletedValue):
3050         (WTF::::RetainPtr):
3051         (WTF::::clear):
3052         (WTF::::leakRef):
3053         (WTF::=):
3054         (WTF::::adoptCF):
3055         (WTF::::adoptNS):
3056         (WTF::::swap):
3057         (WTF::swap):
3058         (WTF::operator==):
3059         (WTF::operator!=):
3060         (WTF::adoptCF):
3061         (WTF::adoptNS):
3062         (WTF::retainPtr):
3063         * wtf/SHA1.cpp: Renamed from Source/JavaScriptCore/wtf/SHA1.cpp.
3064         (WTF):
3065         (WTF::testSHA1):
3066         (WTF::expectSHA1):
3067         (WTF::f):
3068         (WTF::k):
3069         (WTF::rotateLeft):
3070         (WTF::SHA1::SHA1):
3071         (WTF::SHA1::addBytes):
3072         (WTF::SHA1::computeHash):
3073         (WTF::SHA1::finalize):
3074         (WTF::SHA1::processBlock):
3075         (WTF::SHA1::reset):
3076         * wtf/SHA1.h: Renamed from Source/JavaScriptCore/wtf/SHA1.h.
3077         (WTF):
3078         (SHA1):
3079         (WTF::SHA1::addBytes):
3080         * wtf/SegmentedVector.h: Renamed from Source/JavaScriptCore/wtf/SegmentedVector.h.
3081         (WTF):
3082         (SegmentedVectorIterator):
3083         (WTF::SegmentedVectorIterator::~SegmentedVectorIterator):
3084         (WTF::SegmentedVectorIterator::operator*):
3085         (WTF::SegmentedVectorIterator::operator->):
3086         (WTF::SegmentedVectorIterator::operator++):
3087         (WTF::SegmentedVectorIterator::operator==):
3088         (WTF::SegmentedVectorIterator::operator!=):
3089         (WTF::SegmentedVectorIterator::operator=):
3090         (WTF::SegmentedVectorIterator::SegmentedVectorIterator):
3091         (SegmentedVector):
3092         (WTF::SegmentedVector::SegmentedVector):
3093         (WTF::SegmentedVector::~SegmentedVector):
3094         (WTF::SegmentedVector::size):
3095         (WTF::SegmentedVector::isEmpty):
3096         (WTF::SegmentedVector::at):
3097         (WTF::SegmentedVector::operator[]):
3098         (WTF::SegmentedVector::last):
3099         (WTF::SegmentedVector::append):
3100         (WTF::SegmentedVector::alloc):
3101         (WTF::SegmentedVector::removeLast):
3102         (WTF::SegmentedVector::grow):
3103         (WTF::SegmentedVector::clear):
3104         (WTF::SegmentedVector::begin):
3105         (WTF::SegmentedVector::end):
3106         (WTF::SegmentedVector::deleteAllSegments):
3107         (WTF::SegmentedVector::segmentExistsFor):
3108         (WTF::SegmentedVector::segmentFor):
3109         (WTF::SegmentedVector::subscriptFor):
3110         (WTF::SegmentedVector::ensureSegmentsFor):
3111         (WTF::SegmentedVector::ensureSegment):
3112         * wtf/SentinelLinkedList.h: Renamed from Source/JavaScriptCore/wtf/SentinelLinkedList.h.
3113         (WTF):
3114         (BasicRawSentinelNode):
3115         (WTF::BasicRawSentinelNode::BasicRawSentinelNode):
3116         (WTF::BasicRawSentinelNode::setPrev):
3117         (WTF::BasicRawSentinelNode::setNext):
3118         (WTF::BasicRawSentinelNode::prev):
3119         (WTF::BasicRawSentinelNode::next):
3120         (WTF::BasicRawSentinelNode::isOnList):
3121         (SentinelLinkedList):
3122         (WTF::SentinelLinkedList::isEmpty):
3123         (WTF::::remove):
3124         (WTF::::SentinelLinkedList):
3125         (WTF::::begin):
3126         (WTF::::end):
3127         (WTF::::push):
3128         * wtf/SimpleStats.h: Renamed from Source/JavaScriptCore/wtf/SimpleStats.h.
3129         (WTF):
3130         (SimpleStats):
3131         (WTF::SimpleStats::SimpleStats):
3132         (WTF::SimpleStats::add):
3133         (WTF::SimpleStats::operator!):
3134         (WTF::SimpleStats::count):
3135         (WTF::SimpleStats::sum):
3136         (WTF::SimpleStats::sumOfSquares):
3137         (WTF::SimpleStats::mean):
3138         (WTF::SimpleStats::variance):
3139         (WTF::SimpleStats::standardDeviation):
3140         * wtf/SinglyLinkedList.h: Renamed from Source/JavaScriptCore/wtf/SinglyLinkedList.h.
3141         (WTF):
3142         (SinglyLinkedList):
3143         (WTF::::SinglyLinkedList):
3144         (WTF::::isEmpty):
3145         (WTF::::push):
3146         (WTF::::pop):
3147         * wtf/SizeLimits.cpp: Renamed from Source/JavaScriptCore/wtf/SizeLimits.cpp.
3148         (WTF):
3149         (SameSizeAsRefCounted):
3150         * wtf/Spectrum.h: Renamed from Source/JavaScriptCore/wtf/Spectrum.h.
3151         (WTF):
3152         (Spectrum):
3153         (WTF::Spectrum::Spectrum):
3154         (WTF::Spectrum::add):
3155         (WTF::Spectrum::get):
3156         (WTF::Spectrum::begin):
3157         (WTF::Spectrum::end):
3158         (WTF::Spectrum::KeyAndCount::KeyAndCount):
3159         (KeyAndCount):
3160         (WTF::Spectrum::KeyAndCount::operator<):
3161         (WTF::Spectrum::buildList):
3162         * wtf/StackBounds.cpp: Renamed from Source/JavaScriptCore/wtf/StackBounds.cpp.
3163         (WTF):
3164         (WTF::estimateStackBound):
3165         (WTF::StackBounds::initialize):
3166         (WTF::detectGrowingDownward):
3167         (WTF::isPageWritable):
3168         (WTF::getLowerStackBound):
3169         (WTF::getUpperStackBound):
3170         * wtf/StackBounds.h: Renamed from Source/JavaScriptCore/wtf/StackBounds.h.
3171         (WTF):
3172         (StackBounds):
3173         (WTF::StackBounds::StackBounds):
3174         (WTF::StackBounds::currentThreadStackBounds):
3175         (WTF::StackBounds::origin):
3176         (WTF::StackBounds::current):
3177         (WTF::StackBounds::recursionLimit):
3178         (WTF::StackBounds::recursionCheck):
3179         (WTF::StackBounds::isGrowingDownward):
3180         (WTF::StackBounds::checkConsistency):
3181         * wtf/StaticConstructors.h: Renamed from Source/JavaScriptCore/wtf/StaticConstructors.h.
3182         * wtf/StdLibExtras.h: Renamed from Source/JavaScriptCore/wtf/StdLibExtras.h.
3183         (isPointerTypeAlignmentOkay):
3184         (reinterpret_cast_ptr):
3185         (WTF):
3186         (WTF::isPointerAligned):
3187         (WTF::is8ByteAligned):
3188         (WTF::bitwise_cast):
3189         (WTF::safeCast):
3190         (WTF::bitCount):
3191         (WTF::roundUpToMultipleOf):
3192         (WTF::binarySearch):
3193         (WTF::binarySearchWithFunctor):
3194         (WTF::genericBinarySearch):
3195         (operator new):
3196         * wtf/StringExtras.cpp: Renamed from Source/JavaScriptCore/wtf/StringExtras.cpp.
3197         (strcasecmp):
3198         (strncasecmp):
3199         * wtf/StringExtras.h: Renamed from Source/JavaScriptCore/wtf/StringExtras.h.
3200         (snprintf):
3201         (wtf_vsnprintf):
3202         (strnicmp):
3203         (stricmp):
3204         (strdup):
3205         (strncasecmp):
3206         (strcasecmp):
3207         (strnstr):
3208         * wtf/StringHasher.h: Renamed from Source/JavaScriptCore/wtf/StringHasher.h.
3209         (WTF):
3210         (StringHasher):
3211         (WTF::StringHasher::StringHasher):
3212         (WTF::StringHasher::addCharacters):
3213         (WTF::StringHasher::addCharacter):
3214         (WTF::StringHasher::hash):
3215         (WTF::StringHasher::computeHash):
3216         (WTF::StringHasher::hashMemory):
3217         (WTF::StringHasher::defaultConverter):
3218         (WTF::StringHasher::addCharactersToHash):
3219         * wtf/TCPackedCache.h: Renamed from Source/JavaScriptCore/wtf/TCPackedCache.h.
3220         (PackedCache):
3221         (PackedCache::PackedCache):
3222         (PackedCache::Put):
3223         (PackedCache::Has):
3224         (PackedCache::GetOrDefault):
3225         (PackedCache::Clear):
3226         (PackedCache::EntryToValue):
3227         (PackedCache::EntryToUpper):
3228         (PackedCache::KeyToUpper):
3229         (PackedCache::UpperToPartialKey):
3230         (PackedCache::Hash):
3231         (PackedCache::KeyMatch):
3232         * wtf/TCPageMap.h: Renamed from Source/JavaScriptCore/wtf/TCPageMap.h.
3233         (TCMalloc_PageMap1):
3234         (TCMalloc_PageMap1::init):
3235         (TCMalloc_PageMap1::Ensure):
3236         (TCMalloc_PageMap1::PreallocateMoreMemory):
3237         (TCMalloc_PageMap1::get):
3238         (TCMalloc_PageMap1::set):
3239         (TCMalloc_PageMap2):
3240         (Leaf):
3241         (TCMalloc_PageMap2::init):
3242         (TCMalloc_PageMap2::get):
3243         (TCMalloc_PageMap2::set):
3244         (TCMalloc_PageMap2::Ensure):
3245         (TCMalloc_PageMap2::PreallocateMoreMemory):
3246         (TCMalloc_PageMap2::visitValues):
3247         (TCMalloc_PageMap2::visitAllocations):
3248         (TCMalloc_PageMap3):
3249         (Node):
3250         (TCMalloc_PageMap3::NewNode):
3251         (TCMalloc_PageMap3::init):
3252         (TCMalloc_PageMap3::get):
3253         (TCMalloc_PageMap3::set):
3254         (TCMalloc_PageMap3::Ensure):
3255         (TCMalloc_PageMap3::PreallocateMoreMemory):
3256         (TCMalloc_PageMap3::visitValues):
3257         (TCMalloc_PageMap3::visitAllocations):
3258         * wtf/TCSpinLock.h: Renamed from Source/JavaScriptCore/wtf/TCSpinLock.h.
3259         (TCMalloc_SpinLock):
3260         (TCMalloc_SpinLock::Lock):
3261         (TCMalloc_SpinLock::Unlock):
3262         (TCMalloc_SpinLock::IsHeld):
3263         (TCMalloc_SpinLock::Init):
3264         (TCMalloc_SpinLock::Finalize):
3265         (TCMalloc_SlowLock):
3266         (TCMalloc_SpinLockHolder):
3267         (TCMalloc_SpinLockHolder::TCMalloc_SpinLockHolder):
3268         (TCMalloc_SpinLockHolder::~TCMalloc_SpinLockHolder):
3269         * wtf/TCSystemAlloc.cpp: Renamed from Source/JavaScriptCore/wtf/TCSystemAlloc.cpp.
3270         (TrySbrk):
3271         (TryMmap):
3272         (TryVirtualAlloc):
3273         (TryDevMem):
3274         (TCMalloc_SystemAlloc):
3275         (TCMalloc_SystemRelease):
3276         (TCMalloc_SystemCommit):
3277         * wtf/TCSystemAlloc.h: Renamed from Source/JavaScriptCore/wtf/TCSystemAlloc.h.
3278         (TCMalloc_SystemRelease):
3279         (TCMalloc_SystemCommit):
3280         * wtf/TemporaryChange.h: Renamed from Source/JavaScriptCore/wtf/TemporaryChange.h.
3281         (WTF):
3282         (TemporaryChange):
3283         (WTF::TemporaryChange::TemporaryChange):
3284         (WTF::TemporaryChange::~TemporaryChange):
3285         * wtf/ThreadFunctionInvocation.h: Renamed from Source/JavaScriptCore/wtf/ThreadFunctionInvocation.h.
3286         (WTF):
3287         (WTF::ThreadFunctionInvocation::ThreadFunctionInvocation):
3288         (ThreadFunctionInvocation):
3289         * wtf/ThreadIdentifierDataPthreads.cpp: Renamed from Source/JavaScriptCore/wtf/ThreadIdentifierDataPthreads.cpp.
3290         (WTF):
3291         (WTF::ThreadIdentifierData::~ThreadIdentifierData):
3292         (WTF::ThreadIdentifierData::initializeOnce):
3293         (WTF::ThreadIdentifierData::identifier):
3294         (WTF::ThreadIdentifierData::initialize):
3295         (WTF::ThreadIdentifierData::destruct):
3296         * wtf/ThreadIdentifierDataPthreads.h: Renamed from Source/JavaScriptCore/wtf/ThreadIdentifierDataPthreads.h.
3297         (WTF):
3298         (ThreadIdentifierData):
3299         (WTF::ThreadIdentifierData::ThreadIdentifierData):
3300         * wtf/ThreadRestrictionVerifier.h: Renamed from Source/JavaScriptCore/wtf/ThreadRestrictionVerifier.h.
3301         (WTF):
3302         (ThreadRestrictionVerifier):
3303         (WTF::ThreadRestrictionVerifier::ThreadRestrictionVerifier):
3304         (WTF::ThreadRestrictionVerifier::~ThreadRestrictionVerifier):
3305         (WTF::ThreadRestrictionVerifier::setMutexMode):
3306         (WTF::ThreadRestrictionVerifier::setDispatchQueueMode):
3307         (WTF::ThreadRestrictionVerifier::turnOffVerification):
3308         (WTF::ThreadRestrictionVerifier::setShared):
3309         (WTF::ThreadRestrictionVerifier::isSafeToUse):
3310         * wtf/ThreadSafeRefCounted.h: Renamed from Source/JavaScriptCore/wtf/ThreadSafeRefCounted.h.
3311         (WTF):
3312         (ThreadSafeRefCountedBase):
3313         (WTF::ThreadSafeRefCountedBase::ThreadSafeRefCountedBase):
3314         (WTF::ThreadSafeRefCountedBase::ref):
3315         (WTF::ThreadSafeRefCountedBase::hasOneRef):
3316         (WTF::ThreadSafeRefCountedBase::refCount):
3317         (WTF::ThreadSafeRefCountedBase::derefBase):
3318         (ThreadSafeRefCounted):
3319         (WTF::ThreadSafeRefCounted::deref):
3320         (WTF::ThreadSafeRefCounted::ThreadSafeRefCounted):
3321         * wtf/ThreadSpecific.h: Renamed from Source/JavaScriptCore/wtf/ThreadSpecific.h.
3322         (WTF):
3323         (ThreadSpecific):
3324         (Data):
3325         (WTF::ThreadSpecific::Data::Data):
3326         (WTF::::ThreadSpecific):
3327         (WTF::::get):
3328         (WTF::::set):
3329         (WTF::::~ThreadSpecific):
3330         (WTF::::destroy):
3331         (WTF::::isSet):
3332         (WTF::T):
3333         (WTF::::operator):
3334         * wtf/ThreadSpecificWin.cpp: Renamed from Source/JavaScriptCore/wtf/ThreadSpecificWin.cpp.
3335         (WTF):
3336         (WTF::tlsKeyCount):
3337         (WTF::tlsKeys):
3338         (WTF::ThreadSpecificThreadExit):
3339         * wtf/Threading.cpp: Renamed from Source/JavaScriptCore/wtf/Threading.cpp.
3340         (WTF):
3341         (NewThreadContext):
3342         (WTF::NewThreadContext::NewThreadContext):
3343         (WTF::threadEntryPoint):
3344         (WTF::createThread):
3345         (WTF::ThreadFunctionWithReturnValueInvocation::ThreadFunctionWithReturnValueInvocation):
3346         (ThreadFunctionWithReturnValueInvocation):
3347         (WTF::compatEntryPoint):
3348         (WTF::waitForThreadCompletion):
3349         * wtf/Threading.h: Renamed from Source/JavaScriptCore/wtf/Threading.h.
3350         (WTF):
3351         * wtf/ThreadingNone.cpp: Renamed from Source/JavaScriptCore/wtf/ThreadingNone.cpp.
3352         * wtf/ThreadingPrimitives.h: Renamed from Source/JavaScriptCore/wtf/ThreadingPrimitives.h.
3353         (WTF):
3354         (PlatformMutex):
3355         (PlatformCondition):
3356         (Mutex):
3357         (WTF::Mutex::impl):
3358         (ReadWriteLock):
3359         (ThreadCondition):
3360         * wtf/ThreadingPthreads.cpp: Renamed from Source/JavaScriptCore/wtf/ThreadingPthreads.cpp.
3361         (WTF):
3362         (WTF::threadMapMutex):
3363         (WTF::initializeThreading):
3364         (WTF::lockAtomicallyInitializedStaticMutex):
3365         (WTF::unlockAtomicallyInitializedStaticMutex):
3366         (WTF::threadMap):
3367         (WTF::identifierByPthreadHandle):
3368         (WTF::establishIdentifierForPthreadHandle):
3369         (WTF::pthreadHandleForIdentifier):
3370         (WTF::clearPthreadHandleForIdentifier):
3371         (WTF::wtfThreadEntryPoint):
3372         (WTF::createThreadInternal):
3373         (WTF::initializeCurrentThreadInternal):
3374         (WTF::waitForThreadCompletion):
3375         (WTF::detachThread):
3376         (WTF::yield):
3377         (WTF::currentThread):
3378         (WTF::Mutex::Mutex):
3379         (WTF::Mutex::~Mutex):
3380         (WTF::Mutex::lock):
3381         (WTF::Mutex::tryLock):
3382         (WTF::Mutex::unlock):
3383         (WTF::ReadWriteLock::ReadWriteLock):
3384         (WTF::ReadWriteLock::~ReadWriteLock):
3385         (WTF::ReadWriteLock::readLock):
3386         (WTF::ReadWriteLock::tryReadLock):
3387         (WTF::ReadWriteLock::writeLock):
3388         (WTF::ReadWriteLock::tryWriteLock):
3389         (WTF::ReadWriteLock::unlock):
3390         (WTF::ThreadCondition::ThreadCondition):
3391         (WTF::ThreadCondition::~ThreadCondition):
3392         (WTF::ThreadCondition::wait):
3393         (WTF::ThreadCondition::timedWait):
3394         (WTF::ThreadCondition::signal):
3395         (WTF::ThreadCondition::broadcast):
3396         * wtf/ThreadingWin.cpp: Renamed from Source/JavaScriptCore/wtf/ThreadingWin.cpp.
3397         (WTF):
3398         (tagTHREADNAME_INFO):
3399         (WTF::initializeCurrentThreadInternal):
3400         (WTF::lockAtomicallyInitializedStaticMutex):
3401         (WTF::unlockAtomicallyInitializedStaticMutex):
3402         (WTF::threadMapMutex):
3403         (WTF::initializeThreading):
3404         (WTF::threadMap):
3405         (WTF::storeThreadHandleByIdentifier):
3406         (WTF::threadHandleForIdentifier):
3407         (WTF::clearThreadHandleForIdentifier):
3408         (WTF::wtfThreadEntryPoint):
3409         (WTF::createThreadInternal):
3410         (WTF::waitForThreadCompletion):
3411         (WTF::detachThread):
3412         (WTF::yield):
3413         (WTF::currentThread):
3414         (WTF::Mutex::Mutex):
3415         (WTF::Mutex::~Mutex):
3416         (WTF::Mutex::lock):
3417         (WTF::Mutex::tryLock):
3418         (WTF::Mutex::unlock):
3419         (WTF::PlatformCondition::timedWait):
3420         (WTF::PlatformCondition::signal):
3421         (WTF::ThreadCondition::ThreadCondition):
3422         (WTF::ThreadCondition::~ThreadCondition):
3423         (WTF::ThreadCondition::wait):
3424         (WTF::ThreadCondition::timedWait):
3425         (WTF::ThreadCondition::signal):
3426         (WTF::ThreadCondition::broadcast):
3427         (WTF::absoluteTimeToWaitTimeoutInterval):
3428         * wtf/TypeTraits.cpp: Renamed from Source/JavaScriptCore/wtf/TypeTraits.cpp.
3429         (WTF):
3430         * wtf/TypeTraits.h: Renamed from Source/JavaScriptCore/wtf/TypeTraits.h.
3431         (WTF):
3432         (IsConvertibleToInteger):
3433         (IsArray):
3434         (IsSameType):
3435         (IsSubclass):
3436         (NoType):
3437         (IsSubclassOfTemplate):
3438         (RemoveTemplate):
3439         (RemoveConst):
3440         (RemoveVolatile):
3441         (RemoveConstVolatile):
3442         (RemovePointer):
3443         (RemoveReference):
3444         (RemoveExtent):
3445         (DecayArray):
3446         (IntegralConstant):
3447         * wtf/TypedArrayBase.h: Renamed from Source/JavaScriptCore/wtf/TypedArrayBase.h.
3448         (WTF):
3449         (TypedArrayBase):
3450         (WTF::TypedArrayBase::data):
3451         (WTF::TypedArrayBase::set):
3452         (WTF::TypedArrayBase::setRange):
3453         (WTF::TypedArrayBase::zeroRange):
3454         (WTF::TypedArrayBase::length):
3455         (WTF::TypedArrayBase::byteLength):
3456         (WTF::TypedArrayBase::TypedArrayBase):
3457         (WTF::TypedArrayBase::create):
3458         (WTF::TypedArrayBase::subarrayImpl):
3459         (WTF::TypedArrayBase::neuter):
3460         * wtf/Uint16Array.h: Renamed from Source/JavaScriptCore/wtf/Uint16Array.h.
3461         (WTF):
3462         (Uint16Array):
3463         (WTF::Uint16Array::set):
3464         (WTF::Uint16Array::isUnsignedShortArray):
3465         (WTF::Uint16Array::create):
3466         (WTF::Uint16Array::Uint16Array):
3467         (WTF::Uint16Array::subarray):
3468         * wtf/Uint32Array.h: Renamed from Source/JavaScriptCore/wtf/Uint32Array.h.
3469         (WTF):
3470         (Uint32Array):
3471         (WTF::Uint32Array::set):
3472         (WTF::Uint32Array::isUnsignedIntArray):
3473         (WTF::Uint32Array::create):
3474         (WTF::Uint32Array::Uint32Array):
3475         (WTF::Uint32Array::subarray):
3476         * wtf/Uint8Array.h: Renamed from Source/JavaScriptCore/wtf/Uint8Array.h.
3477         (WTF):
3478         (Uint8Array):
3479         (WTF::Uint8Array::set):
3480         (WTF::Uint8Array::isUnsignedByteArray):
3481         (WTF::Uint8Array::create):
3482         (WTF::Uint8Array::Uint8Array):
3483         (WTF::Uint8Array::subarray):
3484         * wtf/Uint8ClampedArray.h: Renamed from Source/JavaScriptCore/wtf/Uint8ClampedArray.h.
3485         (WTF):
3486         (Uint8ClampedArray):
3487         (WTF::Uint8ClampedArray::set):
3488         (WTF::Uint8ClampedArray::isUnsignedByteClampedArray):
3489         (WTF::Uint8ClampedArray::create):
3490         (WTF::Uint8ClampedArray::Uint8ClampedArray):
3491         (WTF::Uint8ClampedArray::subarray):
3492         * wtf/UnionFind.h: Renamed from Source/JavaScriptCore/wtf/UnionFind.h.
3493         (WTF):
3494         (UnionFind):
3495         (WTF::UnionFind::UnionFind):
3496         (WTF::UnionFind::find):
3497         (WTF::UnionFind::unify):
3498         * wtf/UnusedParam.h: Renamed from Source/JavaScriptCore/wtf/UnusedParam.h.
3499         (unusedParam):
3500         * wtf/VMTags.h: Renamed from Source/JavaScriptCore/wtf/VMTags.h.
3501         * wtf/ValueCheck.h: Renamed from Source/JavaScriptCore/wtf/ValueCheck.h.
3502         (WTF):
3503         (ValueCheck):
3504         (WTF::ValueCheck::checkConsistency):
3505         * wtf/Vector.h: Renamed from Source/JavaScriptCore/wtf/Vector.h.
3506         (WTF):
3507         (WTF::VectorTypeOperations::destruct):
3508         (VectorTypeOperations):
3509         (WTF::VectorTypeOperations::initialize):
3510         (WTF::VectorTypeOperations::move):
3511         (WTF::VectorTypeOperations::moveOverlapping):
3512         (WTF::VectorTypeOperations::uninitializedCopy):
3513         (WTF::VectorTypeOperations::uninitializedFill):
3514         (WTF::VectorTypeOperations::compare):
3515         (VectorBufferBase):
3516         (WTF::VectorBufferBase::allocateBuffer):
3517         (WTF::VectorBufferBase::tryAllocateBuffer):
3518         (WTF::VectorBufferBase::deallocateBuffer):
3519         (WTF::VectorBufferBase::buffer):
3520         (WTF::VectorBufferBase::bufferSlot):
3521         (WTF::VectorBufferBase::capacity):
3522         (WTF::VectorBufferBase::releaseBuffer):
3523         (WTF::VectorBufferBase::VectorBufferBase):
3524         (WTF::VectorBufferBase::~VectorBufferBase):
3525         (VectorBuffer):
3526         (WTF::VectorBuffer::VectorBuffer):
3527         (WTF::VectorBuffer::~VectorBuffer):
3528         (WTF::VectorBuffer::allocateBuffer):
3529         (WTF::VectorBuffer::tryAllocateBuffer):
3530         (WTF::VectorBuffer::deallocateBuffer):
3531         (WTF::VectorBuffer::swap):
3532         (WTF::VectorBuffer::restoreInlineBufferIfNeeded):
3533         (WTF::VectorBuffer::releaseBuffer):
3534         (WTF::VectorBuffer::inlineBuffer):
3535         (Vector):
3536         (WTF::Vector::Vector):
3537         (WTF::Vector::~Vector):
3538         (WTF::Vector::size):
3539         (WTF::Vector::capacity):
3540         (WTF::Vector::isEmpty):
3541         (WTF::Vector::at):
3542         (WTF::Vector::operator[]):
3543         (WTF::Vector::data):
3544         (WTF::Vector::dataSlot):
3545         (WTF::Vector::begin):
3546         (WTF::Vector::end):
3547         (WTF::Vector::rbegin):
3548         (WTF::Vector::rend):
3549         (WTF::Vector::reversed):
3550         (WTF::Vector::first):
3551         (WTF::Vector::last):
3552         (WTF::Vector::shrinkToFit):
3553         (WTF::Vector::clear):
3554         (WTF::Vector::removeLast):
3555         (WTF::Vector::fill):
3556         (WTF::Vector::swap):
3557         (VectorReverseProxy):
3558         (WTF::Vector::VectorReverseProxy::begin):
3559         (WTF::Vector::VectorReverseProxy::end):
3560         (WTF::operator<<):
3561         (WTF::operator>>):
3562         (WTF::::Vector):
3563         (WTF::=):
3564         (WTF::typelessPointersAreEqual):
3565         (WTF::::contains):
3566         (WTF::::find):
3567         (WTF::::reverseFind):
3568         (WTF::::fill):
3569         (WTF::::appendRange):
3570         (WTF::::expandCapacity):
3571         (WTF::::tryExpandCapacity):
3572         (WTF::::resize):
3573         (WTF::::shrink):
3574         (WTF::::grow):
3575         (WTF::::reserveCapacity):
3576         (WTF::::tryReserveCapacity):
3577         (WTF::::reserveInitialCapacity):
3578         (WTF::::shrinkCapacity):
3579         (WTF::::append):
3580         (WTF::::tryAppend):
3581         (WTF::::appendSlowCase):
3582         (WTF::::uncheckedAppend):
3583         (WTF::::insert):
3584         (WTF::::prepend):
3585         (WTF::::remove):
3586         (WTF::::reverse):
3587         (WTF::::releaseBuffer):
3588         (WTF::::checkConsistency):
3589         (WTF::deleteAllValues):
3590         (WTF::swap):
3591         (WTF::operator==):
3592         (WTF::operator!=):
3593         * wtf/VectorTraits.h: Renamed from Source/JavaScriptCore/wtf/VectorTraits.h.
3594         (WTF):
3595         (SimpleClassVectorTraits):
3596         * wtf/WTFThreadData.cpp: Renamed from Source/JavaScriptCore/wtf/WTFThreadData.cpp.
3597         (WTF):
3598         (WTF::WTFThreadData::WTFThreadData):
3599         (WTF::WTFThreadData::~WTFThreadData):
3600         (JSC):
3601         (JSC::IdentifierTable::~IdentifierTable):
3602         (JSC::IdentifierTable::add):
3603         * wtf/WTFThreadData.h: Renamed from Source/JavaScriptCore/wtf/WTFThreadData.h.
3604         (JSC):
3605     &nbs