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