Nix upstreaming - Adding build files and supporting scripts
[WebKit-https.git] / Source / WTF / ChangeLog
1 2013-11-26  Marcelo Lira  <marcelo.lira@openbossa.org>
2
3         Nix upstreaming - Adding build files and supporting scripts
4         https://bugs.webkit.org/show_bug.cgi?id=118367
5
6         Reviewed by Ryosuke Niwa.
7
8         * wtf/FeatureDefines.h:
9         * wtf/Platform.h:
10         * wtf/PlatformNix.cmake: Added.
11
12 2013-11-26  Drew Yao  <ayao@apple.com>
13
14         ASSERT_WITH_SECURITY_IMPLICATION should crash in a distinct way.
15         https://bugs.webkit.org/show_bug.cgi?id=124757
16
17         Change ASSERT_WITH_SECURITY_IMPLICATION to access a different address from CRASH()
18         in order to help screen fuzzing bugs.
19
20         Reviewed by Brent Fulgham.
21
22         * wtf/Assertions.cpp:
23         * wtf/Assertions.h:
24
25 2013-11-24  Tim Horton  <timothy_horton@apple.com>
26
27         Upstream USE(IOSURFACE) from the iOS port
28         https://bugs.webkit.org/show_bug.cgi?id=124814
29
30         Reviewed by Sam Weinig.
31
32         Some code guarded by USE(IOSURFACE) was recently upstreamed,
33         but not the definition of WTF_USE_IOSURFACE itself.
34
35         * wtf/Platform.h:
36
37 2013-11-23  Xabier Rodriguez Calvar  <calvaris@igalia.com>
38
39         [GStreamer] Remove 0.10 codepath
40         https://bugs.webkit.org/show_bug.cgi?id=124534
41
42         Reviewed by Philippe Normand.
43
44         * wtf/Platform.h: Removed macro for GStreamer 1.0 as it is the
45         only codepath now.
46
47 2013-11-21  Peter Molnar  <pmolnar.u-szeged@partner.samsung.com>
48
49         Remove ENABLE_WORKERS
50         https://bugs.webkit.org/show_bug.cgi?id=105784
51
52         Reviewed by Darin Adler.
53
54         * wtf/FeatureDefines.h:
55         * wtf/nix/FeatureDefinesNix.h:
56
57 2013-11-21  Mark Rowe  <mrowe@apple.com>
58
59         <https://webkit.org/b/124701> Fix an error in a few Xcode configuration setting files.
60
61         Reviewed by Alexey Proskuryakov.
62
63         * Configurations/Base.xcconfig:
64
65 2013-11-20  Mark Lam  <mark.lam@apple.com>
66
67         Introducing VMEntryScope to update the VM stack limit.
68         https://bugs.webkit.org/show_bug.cgi?id=124634.
69
70         Reviewed by Geoffrey Garen.
71
72         * wtf/Platform.h:
73         * wtf/StackBounds.h:
74         (WTF::StackBounds::StackBounds):
75
76 2013-11-18  Filip Pizlo  <fpizlo@apple.com>
77
78         Allow the FTL debug dumps to include the new size field
79         https://bugs.webkit.org/show_bug.cgi?id=124479
80
81         Reviewed by Mark Hahnenberg.
82
83         * wtf/PrintStream.cpp:
84         (WTF::printInternal):
85         * wtf/PrintStream.h:
86
87 2013-11-17  Jer Noble  <jer.noble@apple.com>
88
89         [WTF] Media time should not have a constructor which accepts a single int or float.
90         https://bugs.webkit.org/show_bug.cgi?id=124470
91
92         Having a constructor taking a single number value, as it's very easy to accidentially mis-
93         initialize a MediaTime with a double (automatically casted to a int64_t).
94
95         Reviewed by Eric Carlson.
96
97         * wtf/MediaTime.h:
98
99 2013-11-18  Csaba Osztrogon√°c  <ossy@webkit.org>
100
101         URTBF after r159432 to make WinCairo build happy.
102
103         * wtf/text/WTFString.h:
104
105 2013-11-18  Carlos Garcia Campos  <cgarcia@igalia.com>
106
107         Unreviewed. Fix make distcheck.
108
109         * GNUmakefile.list.am: Add missing header file.
110
111 2013-11-16  Alexey Proskuryakov  <ap@apple.com>
112
113         Use uint8_t vectors for WebCrypto data
114         https://bugs.webkit.org/show_bug.cgi?id=124466
115
116         Reviewed by Sam Weinig.
117
118         Binary data can be UTF-8, in which case "char*" is idiomatic, or it can be arbitrary
119         binary data, in which case "uint8_t*" is more common.
120
121         Changed encode functions that took "const char *" to "const void*", and decode
122         functions that took "Vector<char>&" now take an adapter class.
123
124         The adapter relies on Vector<char> and Vector<uint8_t> classes having an identical layout.
125
126         * wtf/text/Base64.cpp:
127         (WTF::base64Encode):
128         (WTF::base64URLEncode):
129         (WTF::base64DecodeInternal):
130         (WTF::base64Decode):
131         (WTF::base64URLDecode):
132         * wtf/text/Base64.h:
133         (WTF::SignedOrUnsignedCharVectorAdapter):
134         (WTF::ConstSignedOrUnsignedCharVectorAdapter):
135         (WTF::base64Encode):
136         (WTF::base64URLEncode):
137
138 2013-11-15  Alexey Proskuryakov  <ap@apple.com>
139
140         Support exporting symmetric keys as JWK
141         https://bugs.webkit.org/show_bug.cgi?id=124442
142
143         Reviewed by Sam Weinig.
144
145         Base64URL encoding doesn't use '=' padding, and doesn't need any other options.
146         Added this mode for encode, and removed policy arguments from exposed functions.
147
148         * wtf/text/Base64.cpp:
149         (WTF::base64EncodeInternal):
150         (WTF::base64URLEncode):
151         (WTF::base64URLDecode):
152         * wtf/text/Base64.h:
153         (WTF::base64URLEncode):
154
155 2013-11-15  Mark Hahnenberg  <mhahnenberg@apple.com>
156
157         Remove VTableSpectrum
158         https://bugs.webkit.org/show_bug.cgi?id=124427
159
160         Reviewed by Filip Pizlo.
161
162         * wtf/Platform.h:
163
164 2013-11-15  Jer Noble  <jer.noble@apple.com>
165
166         MediaTime addition and subtraction operators have errors when the rhs is infinite.
167         https://bugs.webkit.org/show_bug.cgi?id=124413
168
169         Reviewed by Eric Carlson.
170
171         Correctly account for infinities that can occur on the right-hand side of addition or
172         subtraction operators.
173
174         * wtf/MediaTime.cpp:
175         (WTF::MediaTime::operator+):
176         (WTF::MediaTime::operator-):
177
178 2013-11-14  Oliver Hunt  <oliver@apple.com>
179
180         Make CLoop easier to build, and make it work
181         https://bugs.webkit.org/show_bug.cgi?id=124359
182
183         Reviewed by Geoffrey Garen.
184
185         Make building with the CLoop forcibly enabled manually
186         disable the JITs
187
188         * wtf/Platform.h:
189
190 2013-11-14  Andreas Kling  <akling@apple.com>
191
192         FontDescription copies should share families list, not duplicate it.
193         <https://webkit.org/b/124338>
194
195         Add RefCountedArray::operator==.
196
197         Reviewed by Antti Koivisto.
198
199 2013-11-13  Anders Carlsson  <andersca@apple.com>
200
201         Add a Vector constructor that takes an std::initializer_list
202         https://bugs.webkit.org/show_bug.cgi?id=124287
203
204         Reviewed by Antti Koivisto.
205
206         * wtf/Compiler.h:
207         * wtf/Vector.h:
208         (WTF::Vector::Vector):
209
210 2013-11-12  Brent Fulgham  <bfulgham@apple.com>
211
212         [Win] Unreviewed gardening.
213
214         * WTF.vcxproj/WTF.vcxproj.filters: Tidy up filters so files show up
215         in their proper directories.
216
217 2013-11-12  Alex Christensen  <achristensen@webkit.org>
218
219         Build GStreamer files on Windows.
220         https://bugs.webkit.org/show_bug.cgi?id=124180
221
222         Reviewed by Brent Fulgham.
223
224         * WTF.vcxproj/WTF.vcxproj:
225         * WTF.vcxproj/WTF.vcxproj.filters:
226         * WTF.vcxproj/copy-files.cmd:
227         Include gobject files in WinCairo build.
228
229 2013-11-09  Filip Pizlo  <fpizlo@apple.com>
230
231         Switch FTL GetById/PutById IC's over to using AnyRegCC
232         https://bugs.webkit.org/show_bug.cgi?id=124094
233
234         Reviewed by Sam Weinig.
235         
236         I needed to add another set operation, namely filter(), which is an in-place set
237         intersection.
238
239         * wtf/BitVector.cpp:
240         (WTF::BitVector::filterSlow):
241         * wtf/BitVector.h:
242         (WTF::BitVector::filter):
243
244 2013-11-10  Ryuan Choi  <ryuan.choi@samsung.com>
245
246         [EFL] Build break on Ubuntu 13.10
247         https://bugs.webkit.org/show_bug.cgi?id=124131
248
249         Reviewed by Gyuyoung Kim.
250
251         Turned DisallowCType macros off on EFL port because gtest-internal.h uses isspace().
252
253         * wtf/DisallowCType.h: Added !PLATFORM(EFL) guard.
254
255 2013-11-09  Patrick Gansterer  <paroga@webkit.org>
256
257         Move RunLoop from WebCore to WTF
258         https://bugs.webkit.org/show_bug.cgi?id=116606
259
260         Reviewed by Anders Carlsson.
261
262         With this change RunLoop can be used in JavaScriptCore too.
263
264         * GNUmakefile.list.am:
265         * WTF.vcxproj/WTF.vcxproj:
266         * WTF.xcodeproj/project.pbxproj:
267         * wtf/CMakeLists.txt:
268         * wtf/PlatformBlackBerry.cmake:
269         * wtf/PlatformEfl.cmake:
270         * wtf/PlatformGTK.cmake:
271         * wtf/PlatformWin.cmake:
272         * wtf/RunLoop.cpp: Renamed from Source/WebCore/platform/RunLoop.cpp.
273         (WTF::RunLoop::Holder::Holder):
274         (WTF::RunLoop::Holder::runLoop):
275         (WTF::RunLoop::initializeMainRunLoop):
276         (WTF::RunLoop::current):
277         (WTF::RunLoop::main):
278         (WTF::RunLoop::isMain):
279         (WTF::RunLoop::performWork):
280         (WTF::RunLoop::dispatch):
281         * wtf/RunLoop.h: Renamed from Source/WebCore/platform/RunLoop.h.
282         (WTF::RunLoop::TimerBase::startRepeating):
283         (WTF::RunLoop::TimerBase::startOneShot):
284         (WTF::RunLoop::TimerBase::isRepeating):
285         (WTF::RunLoop::Timer::Timer):
286         (WTF::RunLoop::Timer::fired):
287         * wtf/blackberry/RunLoopBlackBerry.cpp: Renamed from Source/WebCore/platform/blackberry/RunLoopBlackBerry.cpp.
288         (WTF::RunLoop::RunLoop):
289         (WTF::RunLoop::~RunLoop):
290         (WTF::RunLoop::wakeUp):
291         * wtf/cf/RunLoopCF.cpp: Renamed from Source/WebCore/platform/cf/RunLoopCF.cpp.
292         (WTF::RunLoop::performWork):
293         (WTF::RunLoop::RunLoop):
294         (WTF::RunLoop::~RunLoop):
295         (WTF::RunLoop::runForDuration):
296         (WTF::RunLoop::wakeUp):
297         (WTF::RunLoop::run):
298         (WTF::RunLoop::stop):
299         (WTF::RunLoop::TimerBase::timerFired):
300         (WTF::RunLoop::TimerBase::TimerBase):
301         (WTF::RunLoop::TimerBase::~TimerBase):
302         (WTF::RunLoop::TimerBase::start):
303         (WTF::RunLoop::TimerBase::stop):
304         (WTF::RunLoop::TimerBase::isActive):
305         * wtf/efl/RunLoopEfl.cpp: Renamed from Source/WebCore/platform/efl/RunLoopEfl.cpp.
306         (WTF::RunLoop::RunLoop):
307         (WTF::RunLoop::~RunLoop):
308         (WTF::RunLoop::run):
309         (WTF::RunLoop::stop):
310         (WTF::RunLoop::wakeUpEvent):
311         (WTF::RunLoop::wakeUp):
312         (WTF::RunLoop::TimerBase::TimerBase):
313         (WTF::RunLoop::TimerBase::~TimerBase):
314         (WTF::RunLoop::TimerBase::timerFired):
315         (WTF::RunLoop::TimerBase::start):
316         (WTF::RunLoop::TimerBase::stop):
317         (WTF::RunLoop::TimerBase::isActive):
318         * wtf/gtk/RunLoopGtk.cpp: Renamed from Source/WebCore/platform/gtk/RunLoopGtk.cpp.
319         (WTF::RunLoop::RunLoop):
320         (WTF::RunLoop::~RunLoop):
321         (WTF::RunLoop::run):
322         (WTF::RunLoop::innermostLoop):
323         (WTF::RunLoop::pushNestedMainLoop):
324         (WTF::RunLoop::popNestedMainLoop):
325         (WTF::RunLoop::stop):
326         (WTF::RunLoop::queueWork):
327         (WTF::RunLoop::wakeUp):
328         (WTF::RunLoop::TimerBase::TimerBase):
329         (WTF::RunLoop::TimerBase::~TimerBase):
330         (WTF::RunLoop::TimerBase::clearTimerSource):
331         (WTF::RunLoop::TimerBase::timerFiredCallback):
332         (WTF::RunLoop::TimerBase::start):
333         (WTF::RunLoop::TimerBase::stop):
334         (WTF::RunLoop::TimerBase::isActive):
335         * wtf/win/RunLoopWin.cpp: Renamed from Source/WebCore/platform/win/RunLoopWin.cpp.
336         (WTF::RunLoop::RunLoopWndProc):
337         (WTF::RunLoop::wndProc):
338         (WTF::RunLoop::run):
339         (WTF::RunLoop::stop):
340         (WTF::RunLoop::registerRunLoopMessageWindowClass):
341         (WTF::RunLoop::RunLoop):
342         (WTF::RunLoop::~RunLoop):
343         (WTF::RunLoop::wakeUp):
344         (WTF::RunLoop::TimerBase::timerFired):
345         (WTF::generateTimerID):
346         (WTF::RunLoop::TimerBase::TimerBase):
347         (WTF::RunLoop::TimerBase::~TimerBase):
348         (WTF::RunLoop::TimerBase::start):
349         (WTF::RunLoop::TimerBase::stop):
350         (WTF::RunLoop::TimerBase::isActive):
351
352 2013-11-08  Alexey Proskuryakov  <ap@apple.com>
353
354         Make base64url decoding actually work
355         https://bugs.webkit.org/show_bug.cgi?id=124050
356
357         Reviewed by Sam Weinig.
358
359         * wtf/text/Base64.cpp: (WTF::base64DecodeInternal): Don't hardcode knowledge about
360         alphabet, put it into the map.
361
362 2013-11-07  Denis Nomiyama  <d.nomiyama@samsung.com>
363
364         [GTK] Glyphs in vertical text tests are rotated 90 degrees clockwise
365         https://bugs.webkit.org/show_bug.cgi?id=50619
366
367         Reviewed by Martin Robinson.
368
369         Enabled OPENTYPE_VERTICAL by default on GTK+ and EFL ports, which are
370         currently using Freetype.
371
372         * wtf/Platform.h:
373
374 2013-11-06  Daniel Bates  <dabates@apple.com>
375
376         [iOS] Upstream Letterpress effect
377         https://bugs.webkit.org/show_bug.cgi?id=123932
378
379         Reviewed by Sam Weinig.
380
381         Add feature define ENABLE_LETTERPRESS disabled by default. We only enable
382         letterpress on iOS.
383
384         * wtf/FeatureDefines.h:
385
386 2013-11-06  Nick Diego Yamane  <nick.yamane@openbossa.org>
387
388         Disable "unused local typedefs" warning for GCC 4.7
389         https://bugs.webkit.org/show_bug.cgi?id=123913
390
391         Reviewed by Martin Robinson.
392
393         That warning was actually introduced in gcc 4.7.0.
394         See: http://gcc.gnu.org/gcc-4.7/changes.html
395
396         * wtf/Compiler.h:
397
398 2013-11-06  Daniel Bates  <dabates@apple.com>
399
400         Add ENABLE(TEXT_SELECTION)
401         https://bugs.webkit.org/show_bug.cgi?id=123827
402
403         Reviewed by Ryosuke Niwa.
404
405         Enable selection painting by default on all ports except iOS.
406
407         * wtf/FeatureDefines.h:
408
409 2013-11-04  Alexey Proskuryakov  <ap@apple.com>
410
411         Implement base64url encoding from RFC 4648
412         https://bugs.webkit.org/show_bug.cgi?id=123767
413
414         Reviewed by Sam Weinig.
415
416         No tests yet, will be covered by JWK tests for WebCrypto.
417
418         * wtf/text/Base64.cpp:
419         (WTF::base64EncodeInternal):
420         (WTF::base64Encode):
421         (WTF::base64URLEncode):
422         (WTF::base64DecodeInternal):
423         (WTF::base64Decode):
424         (WTF::base64URLDecode):
425         * wtf/text/Base64.h:
426         (WTF::base64URLEncode):
427
428 2013-11-04  Brent Fulgham  <bfulgham@apple.com>
429
430         [Win] User VersionStamper for official builds
431         https://bugs.webkit.org/show_bug.cgi?id=123758
432
433         Reviewed by Tim Horton.
434
435         * WTF.vcxproj/WTFPostBuild.cmd: Add missing command to run VersionStamper.exe.
436
437 2013-11-01  Jer Noble  <jer.noble@apple.com>
438
439         [PluginProxy] Add a setting to disable video plugin proxy support in HTMLMediaElement.
440         https://bugs.webkit.org/show_bug.cgi?id=123621
441
442         Reviewed by Eric Carlson.
443
444         Enable WTF_USE_AVFOUNDATION and add some HAVE_AVFOUNDATION_* defines
445         to replace the existing __MAC_OS_X_VERSION_MIN_REQUIRED macros in
446         MediaPlayerPrivateAVFoundationObjC.mm.
447
448         * wtf/Platform.h:
449
450 2013-11-02  Patrick Gansterer  <paroga@webkit.org>
451
452         Fix compilation of DateMath.cpp with MSVC
453         https://bugs.webkit.org/show_bug.cgi?id=123680
454
455         Reviewed by Darin Adler.
456
457         * wtf/DateMath.cpp:
458         (WTF::appendTwoDigitNumber): Help the compiler finding the
459         correct overload by casting the characters to LChar.
460
461 2013-11-02  Filip Pizlo  <fpizlo@apple.com>
462
463         LLVM assertion failures should funnel into WTF's crash handling
464         https://bugs.webkit.org/show_bug.cgi?id=123682
465
466         Reviewed by Geoffrey Garen.
467         
468         Give JSC some new toys to play with for crash handling.
469
470         * wtf/Assertions.cpp:
471         * wtf/Assertions.h:
472
473 2013-11-02  Patrick Gansterer  <paroga@webkit.org>
474
475         Fix UnicodeWchar after r157330.
476         https://bugs.webkit.org/show_bug.cgi?id=123668
477
478         Reviewed by Darin Adler.
479
480         * wtf/unicode/wchar/UnicodeWchar.cpp:
481         (unorm_normalize):
482         (u_strFoldCase):
483         (u_strToLower):
484         (u_strToUpper):
485         * wtf/unicode/wchar/UnicodeWchar.h:
486         (u_foldCase):
487         (u_isprint):
488         (u_isspace):
489
490 2013-11-02  Andreas Kling  <akling@apple.com>
491
492         Make remaining StringImpl functions return PassRef.
493         <https://webkit.org/b/123683>
494
495         Okay, this seems to work well! Let's go all in and convert the
496         remaining StringImpl functions to return PassRef<StringImpl> instead
497         of PassRefPtr where we know that null is never returned.
498
499         Reviewed by Anders Carlsson.
500
501 2013-11-02  Andreas Kling  <akling@apple.com>
502
503         StringImpl::upper() should return PassRef.
504         <https://webkit.org/b/123655>
505
506         Make upper() return PassRef<StringImpl>. Spotted and removed some
507         ref churning in implementations.
508
509         Reviewed by Darin Adler.
510
511 2013-11-01  Alexey Proskuryakov  <ap@apple.com>
512
513         Add WebCrypto AES-CBC
514         https://bugs.webkit.org/show_bug.cgi?id=123647
515
516         Reviewed by Anders Carlsson.
517
518         * wtf/FixedArray.h: (WTF::FixedArray::data): Added a const version of the function.
519
520         * wtf/Vector.h: Added a comment to Vector constructor about how it is different
521         from std::vector.
522
523 2013-11-01  Joseph Pecoraro  <pecoraro@apple.com>
524
525         Unreviewed extended attempt at Windows build fix after r158471.
526
527         * wtf/text/cf/AtomicStringCF.cpp:
528         * wtf/text/cf/StringCF.cpp:
529         * wtf/text/cf/StringImplCF.cpp:
530
531 2013-11-01  Joseph Pecoraro  <pecoraro@apple.com>
532
533         Unreviewed attempt at Windows build fix after r158471.
534
535         * wtf/text/cf/AtomicStringCF.cpp:
536         * wtf/text/cf/StringCF.cpp:
537         * wtf/text/cf/StringImplCF.cpp:
538
539 2013-11-01  Andreas Kling  <akling@apple.com>
540
541         Make more StringImpl construction helpers return PassRef.
542         <https://webkit.org/b/123652>
543
544         Tweak another handful of StringImpl constructor functions to return
545         PassRef<StringImpl> instead of PassRefPtr.
546
547         Reviewed by Anders Carlsson.
548
549 2013-11-01  Andreas Kling  <akling@apple.com>
550
551         Neuter WTF_MAKE_FAST_ALLOCATED in GLOBAL_FASTMALLOC_NEW builds.
552         <https://webkit.org/b/123639>
553
554         When building with GLOBAL_FASTMALLOC_NEW, we don't need to expand
555         operator new/delete overrides in every class.
556
557         This change makes allocations group up nicely in Instruments,
558         instead of being split between "WTF::fastMalloc" and "operator new"
559         depending on whether the class had WTF_MAKE_FAST_ALLOCATED.
560
561         Reviewed by Anders Carlsson.
562
563 2013-11-01  Joseph Pecoraro  <pecoraro@apple.com>
564
565         Move CF/Mac WTF String implementations down into WTF
566         https://bugs.webkit.org/show_bug.cgi?id=123635
567
568         Reviewed by Sam Weinig.
569
570         * WTF.vcxproj/WTF.vcxproj:
571         * WTF.vcxproj/WTF.vcxproj.filters:
572         * WTF.xcodeproj/project.pbxproj:
573         * wtf/text/AtomicString.h:
574         * wtf/text/StringImpl.h:
575         * wtf/text/WTFString.h:
576         * wtf/text/cf/AtomicStringCF.cpp: Renamed from Source/WebCore/platform/text/cf/AtomicStringCF.cpp.
577         (WTF::AtomicString::add):
578         * wtf/text/cf/StringCF.cpp: Renamed from Source/WebCore/platform/text/cf/StringCF.cpp.
579         (WTF::String::String):
580         (WTF::String::createCFString):
581         * wtf/text/cf/StringImplCF.cpp: Renamed from Source/WebCore/platform/text/cf/StringImplCF.cpp.
582         (garbageCollectionEnabled):
583         (WTF::StringWrapperCFAllocator::retain):
584         (WTF::StringWrapperCFAllocator::release):
585         (WTF::StringWrapperCFAllocator::copyDescription):
586         (WTF::StringWrapperCFAllocator::allocate):
587         (WTF::StringWrapperCFAllocator::reallocate):
588         (WTF::StringWrapperCFAllocator::deallocateOnMainThread):
589         (WTF::StringWrapperCFAllocator::deallocate):
590         (WTF::StringWrapperCFAllocator::preferredSize):
591         (WTF::StringWrapperCFAllocator::create):
592         (WTF::StringWrapperCFAllocator::allocator):
593         (WTF::StringImpl::createCFString):
594         * wtf/text/mac/StringImplMac.mm: Renamed from Source/WebCore/platform/text/mac/StringImplMac.mm.
595         (WTF::StringImpl::operator NSString *):
596         * wtf/text/mac/StringMac.mm: Renamed from Source/WebCore/platform/text/mac/StringMac.mm.
597         (WTF::String::String):
598
599 2013-11-01  Emilio Pozuelo Monfort  <pochu27@gmail.com>
600
601         HPPA build fixes
602         https://bugs.webkit.org/show_bug.cgi?id=123625
603
604         Original patch from John David Anglin <dave.anglin@bell.net>
605
606         Reviewed by Darin Adler.
607
608         * wtf/Platform.h:
609         * wtf/dtoa/utils.h:
610
611 2013-11-01  Patrick Gansterer  <paroga@webkit.org>
612
613         Buildfix for !USE(ICU_UNICODE) after 156968.
614
615         * wtf/unicode/CollatorDefault.cpp:
616         (WTF::Collator::userDefault):
617
618 2013-10-30  Oliver Hunt  <oliver@apple.com>
619
620         Implement basic ES6 Math functions
621         https://bugs.webkit.org/show_bug.cgi?id=123536
622
623         Reviewed by Michael Saboff.
624
625         Add basic implementations of necessary methods to MathExtras to
626         deal with MSVC not supplying them
627
628         * wtf/MathExtras.h:
629         (asinh):
630         (acosh):
631         (atanh):
632         (expm1):
633         (log1p):
634         (cbrt):
635
636 2013-10-30  Commit Queue  <commit-queue@webkit.org>
637
638         Unreviewed, rolling out r158299.
639         http://trac.webkit.org/changeset/158299
640         https://bugs.webkit.org/show_bug.cgi?id=123558
641
642         caused assertion failures in fast/canvas/canvas-color-
643         serialization.html and fast/forms/input-text-paste-
644         maxlength.html (Requested by rniwa on #webkit).
645
646         * wtf/text/StringStatics.cpp:
647         (WTF::StringImpl::empty):
648
649 2013-10-30  Ryosuke Niwa  <rniwa@webkit.org>
650
651         Remove code for Mac Lion
652         https://bugs.webkit.org/show_bug.cgi?id=123542
653
654         Reviewed by Anders Carlsson.
655
656         * wtf/Platform.h:
657
658 2013-10-30  Peter Molnar  <pmolnar.u-szeged@partner.samsung.com>
659
660         Remove PCRE workaround.
661         https://bugs.webkit.org/show_bug.cgi?id=123265
662
663         Reviewed by Brent Fulgham.
664
665         * wtf/text/StringStatics.cpp:
666         (WTF::StringImpl::empty):
667
668 2013-10-30  peavo@outlook.com  <peavo@outlook.com>
669
670         [Win] Compile errors when enabling DFG JIT.
671         https://bugs.webkit.org/show_bug.cgi?id=120998
672
673         Reviewed by Brent Fulgham.
674
675         * wtf/CompilationThread.cpp: Use new ThreadingOnce class instead of pthread_once.
676         (WTF::initializeCompilationThreads):
677         * wtf/ThreadingOnce.h: Added ThreadingOnce class encapsulating pthread_once functionality.
678         (WTF::ThreadingOnce::ThreadingOnce):
679         (WTF::ThreadingOnce::~ThreadingOnce):
680         (WTF::ThreadingOnce::callOnce):
681         * wtf/text/CString.h: Export needed symbols.
682
683 2013-10-30  Alex Christensen  <achristensen@webkit.org>
684
685         Disabled JIT on Win64.
686         https://bugs.webkit.org/show_bug.cgi?id=122472
687
688         Reviewed by Geoffrey Garen.
689
690         * wtf/Platform.h:
691         Disabled JIT on Win64.
692
693 2013-10-29  Andreas Kling  <akling@apple.com>
694
695         StringImpl::isolatedCopy() should return PassRef.
696         <https://webkit.org/b/123484>
697
698         Make isolatedCopy() return a PassRef<StringImpl>.
699
700         Reviewed by Anders Carlsson.
701
702 2013-10-29  Jer Noble  <jer.noble@apple.com>
703
704         [MSE] [Mac] Enable MediaSource on the Mac
705         https://bugs.webkit.org/show_bug.cgi?id=122484
706
707         Reviewed by Darin Adler.
708
709         Enable ENABLE_MEDIA_SOURCE.
710
711         * wtf/FeatureDefines.h:
712         * wtf/Platform.h: Force a clean build.
713
714 2013-10-29  Andreas Kling  <akling@apple.com>
715
716         StringImpl::adopt() should return PassRef.
717         <https://webkit.org/b/123456>
718
719         Make the StringImpl::adopt() functions return a PassRef<StringImpl>.
720
721         Reviewed by Anders Carlsson.
722
723 2013-10-29  Jinwoo Song  <jinwoo7.song@samsung.com>
724
725         Re-enable simple line layout for EFL
726         https://bugs.webkit.org/show_bug.cgi?id=123402
727
728         Reviewed by Antti Koivisto.
729
730         * wtf/FeatureDefines.h: Enable 8-bit TextRun support for EFL port.
731
732 2013-10-28  Anders Carlsson  <andersca@apple.com>
733
734         RunLoop::dispatch should take an std::function
735         https://bugs.webkit.org/show_bug.cgi?id=123407
736
737         Reviewed by Andreas Kling.
738
739         * wtf/FunctionDispatcher.h:
740
741 2013-10-28  Andreas Kling  <akling@apple.com>
742
743         RenderElement::m_style should be a Ref.
744         <https://webkit.org/b/123401>
745
746         Added a Ref::replace() so we can Indiana Jones the new style in
747         RenderElement::setStyle() while keeping a handle on the old style
748         for a while longer.
749
750         Reviewed by Antti Koivisto.
751
752 2013-10-28  Carlos Garcia Campos  <cgarcia@igalia.com>
753
754         Unreviewed. Fix make distcheck.
755
756         * GNUmakefile.list.am: Remove unexistent file from compilation.
757
758 2013-10-28  Bastien Nocera <hadess@hadess.net>
759
760         Replace 0 timeouts g_timeout_add() by g_idle_add()
761         https://bugs.webkit.org/show_bug.cgi?id=123260
762
763         Reviewed by Carlos Garcia Campos.
764
765         A zero timeout should be equivalent to using g_idle_add_full(G_PRIORITY_DEFAULT, ...)
766         without the nagging feeling that the wrong API was used.
767
768         * wtf/gtk/MainThreadGtk.cpp: Use g_idle_add() instead
769         of 0-timer.
770         (WTF::scheduleDispatchFunctionsOnMainThread):
771
772 2013-10-28  Zan Dobersek  <zdobersek@igalia.com>
773
774         Re-enable simple line layout for GTK
775         https://bugs.webkit.org/show_bug.cgi?id=123388
776
777         Reviewed by Andreas Kling.
778
779         * wtf/FeatureDefines.h: Enable the 8-bit TextRun support for the GTK port.
780
781 2013-10-25  Joseph Pecoraro  <pecoraro@apple.com>
782
783         Upstream ENABLE(REMOTE_INSPECTOR) and enable on iOS and Mac
784         https://bugs.webkit.org/show_bug.cgi?id=123111
785
786         Reviewed by Timothy Hatcher.
787
788         * wtf/FeatureDefines.h:
789
790 2013-10-25  Jer Noble  <jer.noble@apple.com>
791
792         [WTF] Add a multiplication operator (and a few others) to MediaTime
793         https://bugs.webkit.org/show_bug.cgi?id=123137
794
795         Reviewed by Eric Carlson.
796
797         Add a multiplication operator and an inequality operator to the
798         MediaTime class for use by MSE.
799
800         * wtf/MediaTime.cpp:
801         (WTF::signum): Moved to top of file.
802         (WTF::MediaTime::operator*): Added.
803         (WTF::MediaTime::operator!=): Added.
804         * wtf/MediaTime.h:
805         (WTF::operator*): Added non-class version of operator*.
806
807 2013-10-24  Jer Noble  <jer.noble@apple.com>
808
809         [Mac] Add helper methods to convert CMTime <--> MediaTime
810         https://bugs.webkit.org/show_bug.cgi?id=123285
811
812         Reviewed by Eric Carlson.
813
814         Add a #ifdef header_h protector.
815
816         * wtf/MediaTime.h:
817
818 2013-10-24  Mark Rowe  <mrowe@apple.com>
819
820         Remove references to OS X 10.7 from Xcode configuration settings.
821
822         Now that we're not building for OS X 10.7 they're no longer needed.
823
824         Reviewed by Anders Carlsson.
825
826         * Configurations/Base.xcconfig:
827         * Configurations/DebugRelease.xcconfig:
828
829 2013-10-24  Mark Rowe  <mrowe@apple.com>
830
831         <rdar://problem/15312643> Prepare for the mysterious future.
832
833         Reviewed by David Kilzer.
834
835         * Configurations/Base.xcconfig:
836         * Configurations/DebugRelease.xcconfig:
837
838 2013-10-24  Commit Queue  <commit-queue@webkit.org>
839
840         Unreviewed, rolling out r157931.
841         http://trac.webkit.org/changeset/157931
842         https://bugs.webkit.org/show_bug.cgi?id=123284
843
844         Seems to have caused a lot of assertions on debug bots
845         (Requested by ap on #webkit).
846
847         * wtf/text/StringStatics.cpp:
848         (WTF::StringImpl::empty):
849
850 2013-10-24  Peter Molnar  <pmolnar.u-szeged@partner.samsung.com>
851
852         Remove PCRE workaround.
853         https://bugs.webkit.org/show_bug.cgi?id=123265
854
855         Reviewed by Darin Adler.
856
857         * wtf/text/StringStatics.cpp:
858         (WTF::StringImpl::empty):
859
860 2013-10-24  Peter Molnar  <pmolnar.u-szeged@partner.samsung.com>
861
862         Remove Clang workaround.
863         https://bugs.webkit.org/show_bug.cgi?id=123262
864
865         Reviewed by Anders Carlsson.
866
867         * wtf/CheckedArithmetic.h:
868         (WTF::Checked::Checked):
869
870 2013-10-24  Ryuan Choi  <ryuan.choi@samsung.com>
871
872         [EFL] Build break with latest EFL 1.8 libraries.
873         https://bugs.webkit.org/show_bug.cgi?id=123245
874
875         Reviewed by Gyuyoung Kim.
876
877         After fixed build break on EFL 1.8 at r138326, EFL libraries are changed
878         Eo typedef and splitted header files which contain version macro.
879
880         * wtf/OwnPtrCommon.h: Changed Eo typedef.
881         * wtf/efl/RefPtrEfl.h: Ditto.
882
883 2013-10-24  Carlos Garcia Campos  <cgarcia@igalia.com>
884
885         [GObject bindings] Make EventTarget interface introspectable
886         https://bugs.webkit.org/show_bug.cgi?id=77835
887
888         Reviewed by Gustavo Noronha Silva.
889
890         Add support for use GRefPtr with GClosure.
891
892         * wtf/gobject/GRefPtr.cpp:
893         (WTF::refGPtr):
894         (WTF::derefGPtr):
895         * wtf/gobject/GRefPtr.h:
896         * wtf/gobject/GTypedefs.h:
897
898 2013-10-23  Anders Carlsson  <andersca@apple.com>
899
900         Remove USE(LOCKFREE_THREADSAFEREFCOUNTED)
901         https://bugs.webkit.org/show_bug.cgi?id=123228
902
903         Reviewed by Geoffrey Garen.
904
905         All ports support USE(LOCKFREE_THREADSAFEREFCOUNTED) now and taking a lock on every ref/deref seems bad.
906
907         * wtf/Atomics.h:
908         * wtf/ThreadSafeRefCounted.h:
909         (WTF::ThreadSafeRefCountedBase::ref):
910         (WTF::ThreadSafeRefCountedBase::refCount):
911         (WTF::ThreadSafeRefCountedBase::derefBase):
912
913 2013-10-23  Anders Carlsson  <andersca@apple.com>
914
915         Remove HAVE_XPC
916         https://bugs.webkit.org/show_bug.cgi?id=123226
917
918         Reviewed by Dan Bernstein.
919
920         HAVE_XPC has been true on Mac since Lion, so remove it.
921
922         * wtf/Platform.h:
923
924 2013-10-23  Andreas Kling  <akling@apple.com>
925
926         Make more StringImpl construction functions return PassRef.
927         <https://webkit.org/b/123203>
928
929         Knock out a couple more of the StringImpl construction helpers that
930         always return a non-null StringImpl.
931
932         Reviewed by Antti Koivisto.
933
934 2013-10-22  Filip Pizlo  <fpizlo@apple.com>
935
936         FTL should be able to do some simple inline caches using LLVM patchpoints
937         https://bugs.webkit.org/show_bug.cgi?id=123164
938
939         Reviewed by Mark Hahnenberg.
940         
941         This needed some better bitvector support, like merging (|=), excluding (&=~),
942         hashing, and bit counting.
943
944         * wtf/BitVector.cpp:
945         (WTF::BitVector::setSlow):
946         (WTF::BitVector::excludeSlow):
947         (WTF::BitVector::bitCountSlow):
948         (WTF::BitVector::equalsSlowCase):
949         (WTF::BitVector::hashSlowCase):
950         (WTF::BitVector::dump):
951         * wtf/BitVector.h:
952         (WTF::BitVector::merge):
953         (WTF::BitVector::exclude):
954         (WTF::BitVector::bitCount):
955         (WTF::BitVector::BitVector):
956         (WTF::BitVector::isEmptyValue):
957         (WTF::BitVector::isDeletedValue):
958         (WTF::BitVector::isEmptyOrDeletedValue):
959         (WTF::BitVector::operator==):
960         (WTF::BitVector::hash):
961         (WTF::BitVectorHash::hash):
962         (WTF::BitVectorHash::equal):
963         * wtf/HashTraits.h:
964         (WTF::CustomHashTraits::constructDeletedValue):
965         (WTF::CustomHashTraits::isDeletedValue):
966         (WTF::CustomHashTraits::emptyValue):
967         (WTF::CustomHashTraits::isEmptyValue):
968         * wtf/StdLibExtras.h:
969         (WTF::bitCount):
970
971 2013-10-23  Allan Sandfeld Jensen  <allan.jensen@digia.com>
972
973         Clean-up in Atomics.h
974         https://bugs.webkit.org/show_bug.cgi?id=123207
975
976         Reviewed by Anders Carlsson.
977
978         Atomics.h has two confusing and bit-rotted ifdefs with comments.
979
980         The first about CPU(SPARC64) was rendered obsolete when we switched
981         from __exchange_and_add to __sync_add_and_fetch.
982
983         The second was caused by a wrong definition that apparently only
984         caused trouble on GCC.
985
986         * wtf/Atomics.h:
987
988 2013-10-22  Andreas Kling  <akling@apple.com>
989
990         StringImpl::lower() should return a PassRef.
991         <https://webkit.org/b/123190>
992
993         Test the waters and hack enough of StringImpl to be able to return
994         a PassRef<StringImpl> from lower().
995
996         Also gave String a constructor that takes a PassRef<StringImpl>.
997
998         Reviewed by Antti Koivisto.
999
1000 2013-10-22  Commit Queue  <commit-queue@webkit.org>
1001
1002         Unreviewed, rolling out r157835.
1003         http://trac.webkit.org/changeset/157835
1004         https://bugs.webkit.org/show_bug.cgi?id=123192
1005
1006         broke 32-bit builds (Requested by smfr on #webkit).
1007
1008         * wtf/MediaTime.cpp:
1009         (WTF::signum):
1010         * wtf/MediaTime.h:
1011
1012 2013-10-22  Jer Noble  <jer.noble@apple.com>
1013
1014         [WTF] Add a multiplication operator (and a few others) to MediaTime
1015         https://bugs.webkit.org/show_bug.cgi?id=123137
1016
1017         Reviewed by Eric Carlson.
1018
1019         Add a multiplication operator and an inequality operator to the
1020         MediaTime class for use by MSE.
1021
1022         * wtf/MediaTime.cpp:
1023         (WTF::signum): Moved to top of file.
1024         (WTF::MediaTime::operator*): Added.
1025         (WTF::MediaTime::operator!=): Added.
1026         * wtf/MediaTime.h:
1027         (WTF::operator*): Added non-class version of operator*.
1028
1029 2013-10-21  Gyuyoung Kim  <gyuyoung.kim@samsung.com>
1030
1031         Make TYPE_CASTS_BASE more flexible
1032         https://bugs.webkit.org/show_bug.cgi?id=122951
1033
1034         Reviewed by Andreas Kling.
1035
1036         TYPE_CASTS_BASE is being used by node|element type casts. However, it is difficult
1037         to be used by other type casts. For instance, CSSValue, Accessibility and so on.
1038         This patch modifies TYPE_CASTS_BASE which can support other type casts.
1039
1040         Besides TYPE_CASTS_BASE body is moved from node.h to Assertions.h.
1041
1042         * wtf/Assertions.h:
1043
1044 2013-10-20  Filip Pizlo  <fpizlo@apple.com>
1045
1046         StructureStubInfo's usedRegisters set should be able to track all registers, not just the ones that our JIT's view as temporaries
1047         https://bugs.webkit.org/show_bug.cgi?id=123076
1048
1049         Reviewed by Sam Weinig.
1050         
1051         Teach BitVector how to efficiently merge (i.e. bitvector |=).
1052
1053         * wtf/BitVector.cpp:
1054         (WTF::BitVector::mergeSlow):
1055         * wtf/BitVector.h:
1056         (WTF::BitVector::merge):
1057         (WTF::BitVector::cleanseInlineBits):
1058
1059 2013-10-19  Jer Noble  <jer.noble@apple.com>
1060
1061         Unreviewed roll out of r157695; broke Mac builds.
1062
1063         * wtf/FeatureDefines.h:
1064
1065 2013-10-07  Jer Noble  <jer.noble@apple.com>
1066
1067         [MSE] [Mac] Enable MediaSource on the Mac
1068         https://bugs.webkit.org/show_bug.cgi?id=122484
1069
1070         Reviewed by Darin Adler.
1071
1072         Enable ENABLE_MEDIA_SOURCE.
1073
1074         * wtf/FeatureDefines.h:
1075
1076 2013-10-19  Andreas Kling  <akling@apple.com>
1077
1078         RefPtr::releaseNonNull() incorrectly increments the refcount.
1079         <https://webkit.org/b/123063>
1080
1081         Make releaseNonNull() use adoptRef(T&), mirroring release().
1082
1083         Reviewed by Anders Carlsson.
1084
1085 2013-10-18  Andreas Kling  <akling@apple.com>
1086
1087         Start passing RenderStyle around with PassRef.
1088         <https://webkit.org/b/123051>
1089
1090         Added some new PassRef tricks to make this patch possible.
1091
1092         Reviewed by Darin Adler.
1093
1094         * wtf/PassRef.h:
1095         (WTF::PassRef::get):
1096
1097             Added a get() helper to facilitate writing functions that
1098             construct a new object and call some functions on it before
1099             returning it.
1100
1101         (WTF::PassRef::dropRef):
1102
1103             This will deref() the referenced object and mark the PassRef
1104             as "passed." This is used in code paths where the PassRef is
1105             going to go out of scope with nobody to take it over.
1106
1107         (WTF::PassRef::leakRef):
1108
1109             Renamed takeReference() to leakRef() and made it public so
1110             we don't have to awkwardly sink the PassRef into a Ref for
1111             e.g static locals.
1112
1113         * wtf/RefPtr.h:
1114         (WTF::RefPtr::releaseNonNull):
1115
1116             Added RefPtr::releaseNonNull() for a convenient way of creating
1117             a PassRef<T> from a RefPtr<T>. This function may only be called
1118             if the RefPtr is known to be non-null.
1119
1120 2013-10-18  Filip Pizlo  <fpizlo@apple.com>
1121
1122         A CodeBlock's StructureStubInfos shouldn't be in a Vector that we search using code origins and machine code PCs
1123         https://bugs.webkit.org/show_bug.cgi?id=122940
1124
1125         Reviewed by Oliver Hunt.
1126
1127         * GNUmakefile.list.am:
1128         * WTF.vcxproj/WTF.vcxproj:
1129         * WTF.xcodeproj/project.pbxproj:
1130         * wtf/BagToHashMap.h: Added.
1131         (WTF::toHashMap):
1132         * wtf/CMakeLists.txt:
1133
1134 2013-10-18  Anders Carlsson  <andersca@apple.com>
1135
1136         Remove spaces between template angle brackets
1137         https://bugs.webkit.org/show_bug.cgi?id=123040
1138
1139         Reviewed by Andreas Kling.
1140
1141         * wtf/AVLTree.h:
1142         * wtf/CheckedArithmetic.h:
1143         * wtf/Compression.h:
1144         * wtf/Functional.h:
1145         (WTF::R):
1146         * wtf/HashFunctions.h:
1147         * wtf/HashIterators.h:
1148         * wtf/HashSet.h:
1149         (WTF::::contains):
1150         * wtf/ListHashSet.h:
1151         (WTF::::contains):
1152         * wtf/RefCountedLeakCounter.cpp:
1153         * wtf/RetainPtr.h:
1154         * wtf/SentinelLinkedList.h:
1155         (WTF::::remove):
1156         * wtf/SizeLimits.cpp:
1157         * wtf/StreamBuffer.h:
1158         * wtf/Vector.h:
1159         * wtf/VectorTraits.h:
1160         * wtf/WeakPtr.h:
1161         (WTF::WeakReference::create):
1162         (WTF::WeakReference::createUnbound):
1163         (WTF::WeakPtr::WeakPtr):
1164         (WTF::WeakPtrFactory::WeakPtrFactory):
1165         * wtf/text/AtomicString.cpp:
1166         (WTF::AtomicString::add):
1167         (WTF::findString):
1168         * wtf/text/StringConcatenate.h:
1169         * wtf/text/StringImpl.h:
1170         * wtf/text/StringOperators.h:
1171         (WTF::operator+):
1172
1173 2013-10-18  Brendan Long  <b.long@cablelabs.com>
1174
1175         [GStreamer][GTK] Add GRefPtr::outPtr()
1176         https://bugs.webkit.org/show_bug.cgi?id=122996
1177
1178         Reviewed by Philippe Normand.
1179
1180         * wtf/gobject/GRefPtr.h:
1181         (WTF::GRefPtr::outPtr): Added.
1182
1183 2013-10-17  Geoffrey Garen  <ggaren@apple.com>
1184
1185         Tidied up the Vector<T> move constructor
1186         https://bugs.webkit.org/show_bug.cgi?id=122998
1187
1188         Reviewed by Anders Carlsson.
1189
1190         * wtf/Vector.h:
1191         (WTF::::Vector): Don't call swap() "weird". It's the way most std types
1192         implement move constructors.
1193
1194         Do inline this function, so the compiler can optimize away a logical
1195         move into a physical no-op.
1196
1197 2013-10-16  Filip Pizlo  <fpizlo@apple.com>
1198
1199         Introduce WTF::Bag and start using it for InlineCallFrameSet
1200         https://bugs.webkit.org/show_bug.cgi?id=122941
1201
1202         Reviewed by Geoffrey Garen.
1203         
1204         Introduce WTF::Bag, which is basically an allocation pool. No POD restrictions. Does one
1205         malloc per entry. No need to shrink afterwards.
1206
1207         * GNUmakefile.list.am:
1208         * WTF.vcxproj/WTF.vcxproj:
1209         * WTF.xcodeproj/project.pbxproj:
1210         * wtf/Bag.h: Added.
1211         (WTF::Bag::Bag):
1212         (WTF::Bag::~Bag):
1213         (WTF::Bag::add):
1214         (WTF::Bag::iterator::iterator):
1215         (WTF::Bag::iterator::operator!):
1216         (WTF::Bag::iterator::operator*):
1217         (WTF::Bag::iterator::operator++):
1218         (WTF::Bag::iterator::operator==):
1219         (WTF::Bag::begin):
1220         (WTF::Bag::end):
1221         (WTF::Bag::isEmpty):
1222         * wtf/CMakeLists.txt:
1223
1224 2013-10-17  Andreas Kling  <akling@apple.com>
1225
1226         Make it possible to assign a PassRef to a RefPtr.
1227         <https://webkit.org/b/122943>
1228
1229         We have to use std::move when constructing a RefPtr from a PassRef
1230         since there is no copy constructor for the latter.
1231
1232         Reviewed by Antti Koivisto.
1233
1234 2013-10-16  Ryuan Choi  <ryuan.choi@samsung.com>
1235
1236         Unreviewed build fix attempt on EFL port after r157520 and r157523
1237
1238         * wtf/PassRef.h: includes <utility>
1239
1240 2013-10-16  Darin Adler  <darin@apple.com>
1241
1242         Add PassRef and createRefCounted so we can improve creation of RefCounted objects
1243         https://bugs.webkit.org/show_bug.cgi?id=122904
1244
1245         Reviewed by Anders Carlsson.
1246
1247         * GNUmakefile.list.am: Added PassRef.h.
1248         * WTF.vcxproj/WTF.vcxproj: Ditto.
1249         * WTF.vcxproj/WTF.vcxproj.filters: Ditto.
1250         * WTF.xcodeproj/project.pbxproj: Ditto.
1251         * wtf/CMakeLists.txt: Ditto.
1252
1253         * wtf/Forward.h: Added PassRef. Also re-sorted and un-indented to match what
1254         the style-checking script expects.
1255
1256         * wtf/PassRef.h: Added. Includes the createRefCounted function template, which
1257         is analogous to make_unique, but is for reference counted objects, and also
1258         assumes that new will never return null. Also includes an overload of adoptRef
1259         that takes a reference rather than a pointer.
1260
1261         * wtf/PassRefPtr.h: Include "PassRef.h" so we can share the adopted function.
1262         Got rid of declarations that duplicate ones in there.
1263         (WTF::refIfNotNull): Use nullptr.
1264         (WTF::derefIfNotNull): Use nullptr.
1265         (WTF::PassRefPtr::PassRefPtr): Use nullptr. Added an overload that takes a PassRef.
1266         (WTF::PassRefPtr::operator UnspecifiedBoolType): Use nullptr.
1267         (WTF::PassRefPtr::operator=): Made this deleted instead of compile time assertion.
1268         (WTF::PassRefPtr::PassRefPtr): Made adopting constructor use an adopt tag instead
1269         of an unused boolean.
1270         (WTF::PassRefPtr::leakRef): Use nullptr.
1271         (WTF::adoptRef): Use the adopt tag.
1272
1273         * wtf/Ref.h: Use Noncopyable instead of rolling our own.
1274         (WTF::Ref::Ref): Add an overload that takes a PassRef.
1275         (WTF::Ref::operator=): Ditto.
1276
1277         * wtf/RefPtr.h: Removed unneeded forward declaration of PassRefPtr.
1278         (WTF::RefPtr::RefPtr): Use nullptr. Added overload that takes a PassRef.
1279         (WTF::RefPtr::release): Use nullptr.
1280         (WTF::RefPtr::operator UnspecifiedBoolType): Use nullptr.
1281         (WTF::RefPtr::operator=): Added overload that takes a PassRef.
1282         (WTF::RefPtr::clear): Use nullptr.
1283
1284         * wtf/StdLibExtras.h: Added inline keyword to isPointerTypeAlignmentOkay,
1285         reinterpret_cast_ptr, and make_unique. Seems like a simple oversight that these
1286         were missing before.
1287
1288 2013-10-15  Dean Jackson  <dino@apple.com>
1289
1290         Add ENABLE_WEB_ANIMATIONS flag
1291         https://bugs.webkit.org/show_bug.cgi?id=122871
1292
1293         Reviewed by Tim Horton.
1294
1295         Eventually might be http://dev.w3.org/fxtf/web-animations/
1296         but this is just engine-internal work at the moment.
1297
1298         * wtf/FeatureDefines.h:
1299
1300 2013-10-15  Daniel Bates  <dabates@apple.com>
1301
1302         [iOS] Upstream JavaScriptCore support for ARM64
1303         https://bugs.webkit.org/show_bug.cgi?id=122762
1304
1305         Reviewed by Oliver Hunt.
1306
1307         * Configurations/Base.xcconfig:
1308         * wtf/Atomics.h:
1309         (WTF::weakCompareAndSwap):
1310         (WTF::armV7_dmb):
1311         * wtf/FastMalloc.cpp:
1312         * wtf/Platform.h:
1313         * wtf/dtoa.cpp:
1314         * wtf/dtoa/utils.h:
1315         * wtf/text/ASCIIFastPath.h:
1316         (WTF::copyLCharsFromUCharSource):
1317         * wtf/text/StringImpl.h:
1318
1319 2013-10-14  Zan Dobersek  <zdobersek@igalia.com>
1320
1321         Static assertions in WTF::adoptPtr should point to using adoptRef for ref-counted objects
1322         https://bugs.webkit.org/show_bug.cgi?id=122745
1323
1324         Reviewed by Anders Carlsson.
1325
1326         * wtf/PassOwnPtr.h:
1327         (WTF::adoptPtr): When the object's type is convertible to the RefCountedBase or ThreadSafeRefCountedBase type,
1328         the static assertion should note that adoptRef should be used instead.
1329
1330 2013-10-14  Anders Carlsson  <andersca@apple.com>
1331
1332         WebKit Nightlies broken by r157374
1333         https://bugs.webkit.org/show_bug.cgi?id=122736
1334
1335         Reviewed by Andreas Kling.
1336
1337         Add back a callOnMainThread overload that Safari is using.
1338
1339         * wtf/MainThread.cpp:
1340         (WTF::callOnMainThread):
1341         * wtf/MainThread.h:
1342
1343 2013-10-13  Darin Adler  <darin@apple.com>
1344
1345         Deprecate or remove deleteAllValues functions; there are only a few call sites left
1346         https://bugs.webkit.org/show_bug.cgi?id=122738
1347
1348         Reviewed by Anders Carlsson.
1349
1350         * wtf/Deque.h: Deleted deleteAllValues.
1351         * wtf/HashMap.h: Ditto.
1352         * wtf/HashSet.h: Ditto.
1353         * wtf/ListHashSet.h: Ditto.
1354         * wtf/Vector.h: Renamed deleteAllValues to deprecatedDeleteAllValues.
1355
1356 == Rolled over to ChangeLog-2013-10-13 ==