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