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