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