1 2013-12-19 Alex Christensen <achristensen@webkit.org>
3 Final preparations for GStreamer on Windows.
4 https://bugs.webkit.org/show_bug.cgi?id=125958
6 Reviewed by Benjamin Poulain.
8 * WTF.vcxproj/WTFDebugWinCairo.props:
9 * WTF.vcxproj/WTFReleaseWinCairo.props:
10 Include WinCairo.props.
12 Use GLib and GStreamer on WinCairo with video.
14 2013-12-18 Daniel Bates <dabates@apple.com>
16 WTF, JavaScriptCore fails to build with trunk clang: operators new, new[],
17 delete, delete[] cannot be declared inline
18 https://bugs.webkit.org/show_bug.cgi?id=124186
19 <rdar://problem/15644039>
21 Reviewed by Geoffrey Garen and Anders Carlsson.
23 Following <http://llvm.org/viewvc/llvm-project?view=revision&revision=193044>
24 (http://llvm.org/bugs/show_bug.cgi?id=17591>), Clang emits warnings when
25 operator new, delete are inlined. Such definitions cannot be inline per
26 replacement.functions (17.6.4.6/3) of the C++ standard. For now,
27 disable these warnings instead of exporting these functions.
31 2013-12-19 Hugo Parente Lima <hugo.lima@openbossa.org>
33 WTF fails to compile with gcc 4.8.2 and -Werror=array-bounds
34 https://bugs.webkit.org/show_bug.cgi?id=125936
36 Reviewed by Anders Carlsson.
38 * wtf/dtoa/double-conversion.cc: Use a unsigned instead of int on buffer_pos type.
40 2013-12-19 Peter Szanka <h868064@stud.u-szeged.hu>
42 Delete RVCT related code parts.
43 https://bugs.webkit.org/show_bug.cgi?id=125626
45 Reviewed by Csaba Osztrogonác.
47 * wtf/Compiler.h: follow-up fix for r160648, remove an unnecessary comment.
49 2013-12-18 Alex Christensen <achristensen@webkit.org>
51 [WinCairo] Preparation for GStreamer on Windows.
52 https://bugs.webkit.org/show_bug.cgi?id=125946
54 Reviewed by Brent Fulgham.
56 * WTF.vcxproj/WTF.vcxproj:
57 Use new GStreamer property sheets for WinCairo.
59 2013-12-18 Mark Hahnenberg <mhahnenberg@apple.com>
61 DFG should have a separate StoreBarrier node
62 https://bugs.webkit.org/show_bug.cgi?id=125530
64 Reviewed by Filip Pizlo.
66 * wtf/Platform.h: Added an #define for ENABLE(GGC) which will be used for landing things related to GenGC.
68 2013-12-16 Daniel Bates <dabates@apple.com>
70 [iOS] Upstream WebCore/html changes
71 https://bugs.webkit.org/show_bug.cgi?id=125765
73 Reviewed by Darin Adler.
75 Defined ENABLE_IOS_AUTOCORRECT_AND_AUTOCAPITALIZE, enabled by default on iOS.
77 * wtf/FeatureDefines.h:
79 2013-12-17 Alex Christensen <achristensen@webkit.org>
81 Compile fix for WebGL on Windows without GRAPHICS_SURFACE.
82 https://bugs.webkit.org/show_bug.cgi?id=125867
84 Reviewed by Martin Robinson.
86 * wtf/FeatureDefines.h:
87 Removed unused ENABLE_GLIB_SUPPORT macro.
89 Don't use GRAPHICS_SURFACE for WebGL on Windows.
91 2013-12-17 Alex Christensen <achristensen@webkit.org>
93 [Win] Fixed linker error with GStreamer.
94 https://bugs.webkit.org/show_bug.cgi?id=124861
96 Reviewed by Martin Robinson.
98 * wtf/gobject/GOwnPtr.cpp:
100 * wtf/gobject/GOwnPtr.h:
101 Added WTF_EXPORT_PRIVATE to freeOwnedGPtr<GError> declaration and definition.
103 2013-12-17 Benjamin Poulain <benjamin@webkit.org>
105 Add a simple register allocator to WebCore for x86_64
106 https://bugs.webkit.org/show_bug.cgi?id=125771
108 Reviewed by Geoffrey Garen.
110 * wtf/Platform.h: Add a new flag "CSS_SELECTOR_JIT" to guard
111 an experimental JIT compiler in WebCore.
113 2013-12-16 Anders Carlsson <andersca@apple.com>
115 Remove EnumClass.h from WTF
116 https://bugs.webkit.org/show_bug.cgi?id=125820
118 Reviewed by Darin Adler.
120 All compilers we build on now support real strongly typed enums, so we can remove the ENUM_CLASS version.
122 * WTF.vcxproj/WTF.vcxproj:
123 * WTF.vcxproj/WTF.vcxproj.filters:
124 * WTF.xcodeproj/project.pbxproj:
125 * wtf/CheckedArithmetic.h:
126 * wtf/EnumClass.h: Removed.
128 2013-12-16 Brent Fulgham <bfulgham@apple.com>
130 [Win] Remove dead code after conversion to VS2013
131 https://bugs.webkit.org/show_bug.cgi?id=125795
133 Reviewed by Darin Adler.
135 * wtf/Assertions.h: Include <inttypes.h> now that it exists.
136 * wtf/Compiler.h: Update compiler checks for VS2013, and
137 enable support for NEVER_INLINE
138 * wtf/HashFunctions.h:
139 (WTF::PtrHash::hash): Remove compiler workaround.
140 * wtf/MathExtras.h: Remove C99 functions that are now supplied
141 by the MS runtime library.
142 * wtf/Platform.h: Remove old MSVC support flags.
143 * wtf/StdLibExtras.h: Remove old MSVC workaround code.
145 2013-12-16 Alex Christensen <achristensen@webkit.org>
147 Fixed Win64 build on VS2013.
148 https://bugs.webkit.org/show_bug.cgi?id=125753
150 Reviewed by Brent Fulgham.
152 * WTF.vcxproj/WTF.vcxproj:
153 Added correct PlatformToolset for 64-bit builds.
155 2013-12-16 Peter Szanka <h868064@stud.u-szeged.hu>
157 Delete RVCT related code parts.
158 https://bugs.webkit.org/show_bug.cgi?id=125626
160 Reviewed by Darin Adler.
167 2013-12-13 Brent Fulgham <bfulgham@apple.com>
169 [Win] Remove Pre-VS2013 support code.
170 https://bugs.webkit.org/show_bug.cgi?id=125693
172 Reviewed by Darin Adler.
174 * wtf/StringPrintStream.cpp:
175 (WTF::StringPrintStream::vprintf): Use va_copy, like a civilized person.
177 2013-12-12 Darin Adler <darin@apple.com>
179 Incorrect handling of non-ASCII characters in WTF::base64DecodeInternal
180 https://bugs.webkit.org/show_bug.cgi?id=125658
182 Reviewed by Alexey Proskuryakov.
184 * wtf/text/Base64.cpp:
185 (WTF::base64EncodeInternal): Use a reference to an array instead of a pointer
186 for the table argument type so we check the size of the array at the call site.
187 (WTF::base64DecodeInternal): Ditto. Also added an bounds check before using the
188 table so we don't load some random value for non-ASCII characters.
190 2013-12-13 Brent Fulgham <bfulgham@apple.com>
192 [Win] Unreviewed build fix after r160548
194 * WTF.vcxproj/WTFGenerated.vcxproj: Specify that we are using
195 the vs12_xp target for Makefile-based projects.
197 2013-12-13 Anders Carlsson <andersca@apple.com>
199 Require variadic templates to build WebKit
200 https://bugs.webkit.org/show_bug.cgi?id=125701
202 Reviewed by Andreas Kling.
205 Add an #error if variadic templates are disabled.
207 * wtf/NeverDestroyed.h:
209 * wtf/StdLibExtras.h:
210 Remove a bunch of COMPILER_SUPPORTS(CXX_VARIADIC_TEMPLATES) #ifdefs.
212 2013-12-13 Peter Szanka <h868064@stud.u-szeged.hu>
214 Delete INTEL C compiler related code parts.
215 https://bugs.webkit.org/show_bug.cgi?id=125625
217 Reviewed by Darin Adler.
222 2013-12-13 Brent Fulgham <bfulgham@apple.com>
224 [Win] Switch WebKit solution to Visual Studio 2013
225 https://bugs.webkit.org/show_bug.cgi?id=125192
227 Reviewed by Anders Carlsson.
229 * WTF.vcxproj/WTF.vcxproj: Update for VS2013
230 * WTF.vcxproj/WTF.vcxproj.filters: Ditto
232 2013-12-12 Brady Eidson <beidson@apple.com>
234 DatabaseProcess IndexedDB: Establish a metadata backing store on disk
235 https://bugs.webkit.org/show_bug.cgi?id=125258
237 Reviewed by Alexey Proskuryakov, Anders Carlsson, and Tim Horton.
239 * wtf/text/WTFString.h: Export toUInt64Strict().
241 2013-12-12 Sam Weinig <sam@webkit.org>
243 Replace uses of WTF::BitArray with std::bitset
244 https://bugs.webkit.org/show_bug.cgi?id=125642
246 Reviewed by Anders Carlsson.
248 * GNUmakefile.list.am:
249 * WTF.vcxproj/WTF.vcxproj:
250 * WTF.vcxproj/WTF.vcxproj.filters:
251 * WTF.xcodeproj/project.pbxproj:
252 * wtf/BitArray.h: Removed.
253 * wtf/CMakeLists.txt:
255 2013-12-11 David Kilzer <ddkilzer@apple.com>
257 Define m_hasBadParent in InlineBox if defined(ADDRESS_SANITIZER)
258 <http://webkit.org/b/125329>
260 Reviewed by Darin Adler.
262 * wtf/Assertions.h: Define macro
263 ASSERT_WITH_SECURITY_IMPLICATION_DISABLED based on whether
264 ASSERT_WITH_SECURITY_IMPLICATION() is enabled.
266 2013-12-11 Brendan Long <b.long@cablelabs.com>
268 Type punning error in MD5.cpp
269 https://bugs.webkit.org/show_bug.cgi?id=125412
271 Reviewed by Darin Adler.
274 (WTF::toLittleEndian): Renamed, and use memcpy instead of casting.
275 (WTF::MD5::addBytes): Renamed reverseBytes to toLittleEndian.
276 (WTF::MD5::checksum): Same, and use memcpy instead of casting to prevent type punning error.
278 2013-12-11 Laszlo Vidacs <lac@inf.u-szeged.hu>
280 Store SHA1 hash in std::array
281 https://bugs.webkit.org/show_bug.cgi?id=125446
283 Reviewed by Darin Adler.
285 Change Vector to std::array and use typedef.
288 (WTF::SHA1::computeHash):
289 (WTF::SHA1::hexDigest):
290 (WTF::SHA1::computeHexDigest):
293 2013-12-11 Oliver Hunt <oliver@apple.com>
295 Give Unique StringImpls a meaningful data pointer
296 https://bugs.webkit.org/show_bug.cgi?id=125598
298 Reviewed by Michael Saboff.
300 Found by code inspection. If there is a collision in an Identifier
301 table when comparing to a string literal we attempt to use the data
302 pointer (essentially this ends up being a null termination check).
304 Previously unique pointers just used the literal 1 as the data address
305 but this obviously fails when dereferenced. Instead we now make the
306 data pointer point to the location of the buffer pointer itself. As
307 the buffer pointer is initialised to 0, this satisfies the requirement
308 that the 0-length unique string is null terminated.
310 * wtf/text/StringImpl.h:
311 (WTF::StringImpl::StringImpl):
313 2013-12-10 Anders Carlsson <andersca@apple.com>
315 Add a HashMap constructor that takes an initializer list
316 https://bugs.webkit.org/show_bug.cgi?id=125551
318 Reviewed by Dan Bernstein.
321 (WTF::HashMap::HashMap):
323 2013-12-10 Laszlo Vidacs <lac@inf.u-szeged.hu>
325 Use std::array when computing MD5 checksum
326 https://bugs.webkit.org/show_bug.cgi?id=125509
328 Reviewed by Anders Carlsson.
330 Added MD5::Digest type and MD5::hashSize for computing MD5 checksum.
333 (WTF::MD5::checksum):
336 2013-12-10 Martin Robinson <mrobinson@igalia.com>
338 Various fixes for the CMake GTK+ build
340 Reviewed by Gustavo Noronha.
342 * wtf/PlatformGTK.cmake: Add Zlib library to the WTF build.
344 2013-12-09 Sam Weinig <sam@webkit.org>
347 https://bugs.webkit.org/show_bug.cgi?id=125478
349 Reviewed by Anders Carlsson.
351 * GNUmakefile.list.am:
352 * WTF.vcxproj/WTF.vcxproj:
353 * WTF.vcxproj/WTF.vcxproj.filters:
354 * WTF.xcodeproj/project.pbxproj:
355 * wtf/CMakeLists.txt:
356 * wtf/FixedArray.h: Removed.
358 2013-12-09 Sam Weinig <sam@webkit.org>
360 Replace use of WTF::FixedArray with std::array
361 https://bugs.webkit.org/show_bug.cgi?id=125475
363 Reviewed by Anders Carlsson.
367 * wtf/SixCharacterHash.cpp:
368 (WTF::integerToSixCharacterHashString):
369 * wtf/SixCharacterHash.h:
371 2013-12-06 Roger Fong <roger_fong@apple.com> and Brent Fulgham <bfulgham@apple.com>
373 [Win] Support compiling with VS2013
374 https://bugs.webkit.org/show_bug.cgi?id=125353
376 Reviewed by Anders Carlsson.
378 * wtf/Compiler.h: Show proper features for VS2012 and VS2013.
379 * wtf/MathExtras.h: Don't implement common C99 routines when
380 they are available through the runtime libraries.
382 (WTF::RetainPtr::operator bool): Added.
383 * wtf/StdLibExtras.h: Use Microsoft's version of make_unique
386 2013-12-06 Laszlo Vidacs <lac@inf.u-szeged.hu>
388 Define SHA1 hash size in SHA1.h and use it at various places.
389 https://bugs.webkit.org/show_bug.cgi?id=125345
391 Reviewed by Darin Adler.
393 Use SHA1::hashSize instead of local variables.
395 * wtf/SHA1.h: define SHA1 hash size
397 2013-12-05 Iain Lane <iain.lane@canonical.com>
399 Remove USE(LOCKFREE_THREADSAFEREFCOUNTED) from Atomics.cpp since it is
401 https://bugs.webkit.org/show_bug.cgi?id=124502
403 Reviewed by Anders Carlsson.
407 2013-12-04 Ryosuke Niwa <rniwa@webkit.org>
409 Enable HTMLTemplateElement by default
410 https://bugs.webkit.org/show_bug.cgi?id=123851
412 Reviewed by Antti Koivisto.
414 * wtf/FeatureDefines.h:
416 2013-12-04 Dan Bernstein <mitz@apple.com>
418 Replace USE(SECURITY_FRAMEWORK) with finer-grained defines
419 https://bugs.webkit.org/show_bug.cgi?id=125242
421 Reviewed by Sam Weinig.
423 * wtf/Platform.h: Removed definitions of WTF_USE_SECURITY_FRAMEWORK, and defined
424 HAVE_SEC_IDENTITY and HAVE_SEC_KEYCHAIN.
426 2013-12-03 Joseph Pecoraro <pecoraro@apple.com>
428 Web Inspector: Push Remote Inspector debugging connection management into JavaScriptCore
429 https://bugs.webkit.org/show_bug.cgi?id=124613
431 Reviewed by Timothy Hatcher.
433 * wtf/ios/WebCoreThread.cpp:
434 * wtf/ios/WebCoreThread.h:
435 Expose WebThreadRun/WebThreadRunSync iOS methods defined in WebCore through
436 WTF so that JavaScriptCore can use it. Another such method already existed.
438 2013-12-03 Mark Lam <mark.lam@apple.com>
440 testapi test crashes on Windows in WTF::Vector<wchar_t,64,WTF::UnsafeVectorOverflow>::size().
441 https://bugs.webkit.org/show_bug.cgi?id=121972.
443 Reviewed by Brent Fulgham.
445 * wtf/OSAllocatorWin.cpp:
446 (WTF::OSAllocator::decommit):
447 (WTF::OSAllocator::releaseDecommitted):
448 - Added a check to ensure that the bytes to decommit / release is not 0.
449 On Windows, a 0 length passed to VirtualFree() has a special meaning,
450 and it's not "decommit / release nothing" as one would expect. Adding
451 this check makes OSAllocatorWin consistent with OSAllocatorPosix for
454 2013-12-02 Mark Lam <mark.lam@apple.com>
456 Build failure when disabling JIT, YARR_JIT, and ASSEMBLER.
457 https://bugs.webkit.org/show_bug.cgi?id=123809.
459 Reviewed by Geoffrey Garen.
462 - Ensure that the ASSEMBLER is enabled when the DISASSEMBLER is enabled.
464 2013-11-30 peavo@outlook.com <peavo@outlook.com>
466 [Win] Some JavaScript date tests are failing.
467 https://bugs.webkit.org/show_bug.cgi?id=124946
469 Reviewed by Brent Fulgham.
471 Use native Win32 api functions to compute Daylight saving time offset.
474 (WTF::UnixTimeToFileTime): Added method to calculate Win32 specific struct FILETIME from time_t value.
475 (WTF::calculateDSTOffset): Use native Win32 api functions to compute Daylight saving time offset.
477 2013-11-28 Thiago de Barros Lacerda <thiago.lacerda@openbossa.org>
479 Nix Upstream: Updating Nix WTF files
480 https://bugs.webkit.org/show_bug.cgi?id=124980
482 Reviewed by Csaba Osztrogonác.
484 Just to sync our private repo files and the trunk, as part of the upstream process.
486 * wtf/DisallowCType.h:
487 * wtf/PlatformNix.cmake:
488 * wtf/nix/FeatureDefinesNix.h:
489 * wtf/nix/PlatformNix.h:
490 * wtf/nix/RunLoopNix.cpp: Added.
492 2013-11-28 Antti Koivisto <antti@apple.com>
494 Remove feature: CSS variables
495 https://bugs.webkit.org/show_bug.cgi?id=114119
497 Reviewed by Andreas Kling.
499 * wtf/FeatureDefines.h:
501 2013-11-26 Filip Pizlo <fpizlo@apple.com>
503 Do bytecode validation as part of testing
504 https://bugs.webkit.org/show_bug.cgi?id=124913
506 Reviewed by Oliver Hunt.
508 * GNUmakefile.list.am:
509 * WTF.vcxproj/WTF.vcxproj:
510 * WTF.xcodeproj/project.pbxproj:
511 * wtf/CMakeLists.txt:
512 * wtf/FastBitVector.cpp: Added.
513 (WTF::FastBitVector::dump):
514 * wtf/FastBitVector.h:
515 (WTF::FastBitVector::resize):
516 (WTF::FastBitVector::bitCount):
517 (WTF::FastBitVector::arrayLength):
519 2013-11-27 Tamas Gergely <tgergely.u-szeged@partner.samsung.com>
521 Remove Sparc specific code.
522 https://bugs.webkit.org/show_bug.cgi?id=124941
524 Reviewed by Michael Saboff.
526 Sparc is not supported, remove leftover code.
531 2013-11-26 Marcelo Lira <marcelo.lira@openbossa.org>
533 Nix upstreaming - Adding build files and supporting scripts
534 https://bugs.webkit.org/show_bug.cgi?id=118367
536 Reviewed by Ryosuke Niwa.
538 * wtf/FeatureDefines.h:
540 * wtf/PlatformNix.cmake: Added.
542 2013-11-26 Drew Yao <ayao@apple.com>
544 ASSERT_WITH_SECURITY_IMPLICATION should crash in a distinct way.
545 https://bugs.webkit.org/show_bug.cgi?id=124757
547 Change ASSERT_WITH_SECURITY_IMPLICATION to access a different address from CRASH()
548 in order to help screen fuzzing bugs.
550 Reviewed by Brent Fulgham.
552 * wtf/Assertions.cpp:
555 2013-11-24 Tim Horton <timothy_horton@apple.com>
557 Upstream USE(IOSURFACE) from the iOS port
558 https://bugs.webkit.org/show_bug.cgi?id=124814
560 Reviewed by Sam Weinig.
562 Some code guarded by USE(IOSURFACE) was recently upstreamed,
563 but not the definition of WTF_USE_IOSURFACE itself.
567 2013-11-23 Xabier Rodriguez Calvar <calvaris@igalia.com>
569 [GStreamer] Remove 0.10 codepath
570 https://bugs.webkit.org/show_bug.cgi?id=124534
572 Reviewed by Philippe Normand.
574 * wtf/Platform.h: Removed macro for GStreamer 1.0 as it is the
577 2013-11-21 Peter Molnar <pmolnar.u-szeged@partner.samsung.com>
579 Remove ENABLE_WORKERS
580 https://bugs.webkit.org/show_bug.cgi?id=105784
582 Reviewed by Darin Adler.
584 * wtf/FeatureDefines.h:
585 * wtf/nix/FeatureDefinesNix.h:
587 2013-11-21 Mark Rowe <mrowe@apple.com>
589 <https://webkit.org/b/124701> Fix an error in a few Xcode configuration setting files.
591 Reviewed by Alexey Proskuryakov.
593 * Configurations/Base.xcconfig:
595 2013-11-20 Mark Lam <mark.lam@apple.com>
597 Introducing VMEntryScope to update the VM stack limit.
598 https://bugs.webkit.org/show_bug.cgi?id=124634.
600 Reviewed by Geoffrey Garen.
604 (WTF::StackBounds::StackBounds):
606 2013-11-18 Filip Pizlo <fpizlo@apple.com>
608 Allow the FTL debug dumps to include the new size field
609 https://bugs.webkit.org/show_bug.cgi?id=124479
611 Reviewed by Mark Hahnenberg.
613 * wtf/PrintStream.cpp:
614 (WTF::printInternal):
617 2013-11-17 Jer Noble <jer.noble@apple.com>
619 [WTF] Media time should not have a constructor which accepts a single int or float.
620 https://bugs.webkit.org/show_bug.cgi?id=124470
622 Having a constructor taking a single number value, as it's very easy to accidentially mis-
623 initialize a MediaTime with a double (automatically casted to a int64_t).
625 Reviewed by Eric Carlson.
629 2013-11-18 Csaba Osztrogonác <ossy@webkit.org>
631 URTBF after r159432 to make WinCairo build happy.
633 * wtf/text/WTFString.h:
635 2013-11-18 Carlos Garcia Campos <cgarcia@igalia.com>
637 Unreviewed. Fix make distcheck.
639 * GNUmakefile.list.am: Add missing header file.
641 2013-11-16 Alexey Proskuryakov <ap@apple.com>
643 Use uint8_t vectors for WebCrypto data
644 https://bugs.webkit.org/show_bug.cgi?id=124466
646 Reviewed by Sam Weinig.
648 Binary data can be UTF-8, in which case "char*" is idiomatic, or it can be arbitrary
649 binary data, in which case "uint8_t*" is more common.
651 Changed encode functions that took "const char *" to "const void*", and decode
652 functions that took "Vector<char>&" now take an adapter class.
654 The adapter relies on Vector<char> and Vector<uint8_t> classes having an identical layout.
656 * wtf/text/Base64.cpp:
658 (WTF::base64URLEncode):
659 (WTF::base64DecodeInternal):
661 (WTF::base64URLDecode):
663 (WTF::SignedOrUnsignedCharVectorAdapter):
664 (WTF::ConstSignedOrUnsignedCharVectorAdapter):
666 (WTF::base64URLEncode):
668 2013-11-15 Alexey Proskuryakov <ap@apple.com>
670 Support exporting symmetric keys as JWK
671 https://bugs.webkit.org/show_bug.cgi?id=124442
673 Reviewed by Sam Weinig.
675 Base64URL encoding doesn't use '=' padding, and doesn't need any other options.
676 Added this mode for encode, and removed policy arguments from exposed functions.
678 * wtf/text/Base64.cpp:
679 (WTF::base64EncodeInternal):
680 (WTF::base64URLEncode):
681 (WTF::base64URLDecode):
683 (WTF::base64URLEncode):
685 2013-11-15 Mark Hahnenberg <mhahnenberg@apple.com>
687 Remove VTableSpectrum
688 https://bugs.webkit.org/show_bug.cgi?id=124427
690 Reviewed by Filip Pizlo.
694 2013-11-15 Jer Noble <jer.noble@apple.com>
696 MediaTime addition and subtraction operators have errors when the rhs is infinite.
697 https://bugs.webkit.org/show_bug.cgi?id=124413
699 Reviewed by Eric Carlson.
701 Correctly account for infinities that can occur on the right-hand side of addition or
702 subtraction operators.
705 (WTF::MediaTime::operator+):
706 (WTF::MediaTime::operator-):
708 2013-11-14 Oliver Hunt <oliver@apple.com>
710 Make CLoop easier to build, and make it work
711 https://bugs.webkit.org/show_bug.cgi?id=124359
713 Reviewed by Geoffrey Garen.
715 Make building with the CLoop forcibly enabled manually
720 2013-11-14 Andreas Kling <akling@apple.com>
722 FontDescription copies should share families list, not duplicate it.
723 <https://webkit.org/b/124338>
725 Add RefCountedArray::operator==.
727 Reviewed by Antti Koivisto.
729 2013-11-13 Anders Carlsson <andersca@apple.com>
731 Add a Vector constructor that takes an std::initializer_list
732 https://bugs.webkit.org/show_bug.cgi?id=124287
734 Reviewed by Antti Koivisto.
738 (WTF::Vector::Vector):
740 2013-11-12 Brent Fulgham <bfulgham@apple.com>
742 [Win] Unreviewed gardening.
744 * WTF.vcxproj/WTF.vcxproj.filters: Tidy up filters so files show up
745 in their proper directories.
747 2013-11-12 Alex Christensen <achristensen@webkit.org>
749 Build GStreamer files on Windows.
750 https://bugs.webkit.org/show_bug.cgi?id=124180
752 Reviewed by Brent Fulgham.
754 * WTF.vcxproj/WTF.vcxproj:
755 * WTF.vcxproj/WTF.vcxproj.filters:
756 * WTF.vcxproj/copy-files.cmd:
757 Include gobject files in WinCairo build.
759 2013-11-09 Filip Pizlo <fpizlo@apple.com>
761 Switch FTL GetById/PutById IC's over to using AnyRegCC
762 https://bugs.webkit.org/show_bug.cgi?id=124094
764 Reviewed by Sam Weinig.
766 I needed to add another set operation, namely filter(), which is an in-place set
770 (WTF::BitVector::filterSlow):
772 (WTF::BitVector::filter):
774 2013-11-10 Ryuan Choi <ryuan.choi@samsung.com>
776 [EFL] Build break on Ubuntu 13.10
777 https://bugs.webkit.org/show_bug.cgi?id=124131
779 Reviewed by Gyuyoung Kim.
781 Turned DisallowCType macros off on EFL port because gtest-internal.h uses isspace().
783 * wtf/DisallowCType.h: Added !PLATFORM(EFL) guard.
785 2013-11-09 Patrick Gansterer <paroga@webkit.org>
787 Move RunLoop from WebCore to WTF
788 https://bugs.webkit.org/show_bug.cgi?id=116606
790 Reviewed by Anders Carlsson.
792 With this change RunLoop can be used in JavaScriptCore too.
794 * GNUmakefile.list.am:
795 * WTF.vcxproj/WTF.vcxproj:
796 * WTF.xcodeproj/project.pbxproj:
797 * wtf/CMakeLists.txt:
798 * wtf/PlatformBlackBerry.cmake:
799 * wtf/PlatformEfl.cmake:
800 * wtf/PlatformGTK.cmake:
801 * wtf/PlatformWin.cmake:
802 * wtf/RunLoop.cpp: Renamed from Source/WebCore/platform/RunLoop.cpp.
803 (WTF::RunLoop::Holder::Holder):
804 (WTF::RunLoop::Holder::runLoop):
805 (WTF::RunLoop::initializeMainRunLoop):
806 (WTF::RunLoop::current):
807 (WTF::RunLoop::main):
808 (WTF::RunLoop::isMain):
809 (WTF::RunLoop::performWork):
810 (WTF::RunLoop::dispatch):
811 * wtf/RunLoop.h: Renamed from Source/WebCore/platform/RunLoop.h.
812 (WTF::RunLoop::TimerBase::startRepeating):
813 (WTF::RunLoop::TimerBase::startOneShot):
814 (WTF::RunLoop::TimerBase::isRepeating):
815 (WTF::RunLoop::Timer::Timer):
816 (WTF::RunLoop::Timer::fired):
817 * wtf/blackberry/RunLoopBlackBerry.cpp: Renamed from Source/WebCore/platform/blackberry/RunLoopBlackBerry.cpp.
818 (WTF::RunLoop::RunLoop):
819 (WTF::RunLoop::~RunLoop):
820 (WTF::RunLoop::wakeUp):
821 * wtf/cf/RunLoopCF.cpp: Renamed from Source/WebCore/platform/cf/RunLoopCF.cpp.
822 (WTF::RunLoop::performWork):
823 (WTF::RunLoop::RunLoop):
824 (WTF::RunLoop::~RunLoop):
825 (WTF::RunLoop::runForDuration):
826 (WTF::RunLoop::wakeUp):
828 (WTF::RunLoop::stop):
829 (WTF::RunLoop::TimerBase::timerFired):
830 (WTF::RunLoop::TimerBase::TimerBase):
831 (WTF::RunLoop::TimerBase::~TimerBase):
832 (WTF::RunLoop::TimerBase::start):
833 (WTF::RunLoop::TimerBase::stop):
834 (WTF::RunLoop::TimerBase::isActive):
835 * wtf/efl/RunLoopEfl.cpp: Renamed from Source/WebCore/platform/efl/RunLoopEfl.cpp.
836 (WTF::RunLoop::RunLoop):
837 (WTF::RunLoop::~RunLoop):
839 (WTF::RunLoop::stop):
840 (WTF::RunLoop::wakeUpEvent):
841 (WTF::RunLoop::wakeUp):
842 (WTF::RunLoop::TimerBase::TimerBase):
843 (WTF::RunLoop::TimerBase::~TimerBase):
844 (WTF::RunLoop::TimerBase::timerFired):
845 (WTF::RunLoop::TimerBase::start):
846 (WTF::RunLoop::TimerBase::stop):
847 (WTF::RunLoop::TimerBase::isActive):
848 * wtf/gtk/RunLoopGtk.cpp: Renamed from Source/WebCore/platform/gtk/RunLoopGtk.cpp.
849 (WTF::RunLoop::RunLoop):
850 (WTF::RunLoop::~RunLoop):
852 (WTF::RunLoop::innermostLoop):
853 (WTF::RunLoop::pushNestedMainLoop):
854 (WTF::RunLoop::popNestedMainLoop):
855 (WTF::RunLoop::stop):
856 (WTF::RunLoop::queueWork):
857 (WTF::RunLoop::wakeUp):
858 (WTF::RunLoop::TimerBase::TimerBase):
859 (WTF::RunLoop::TimerBase::~TimerBase):
860 (WTF::RunLoop::TimerBase::clearTimerSource):
861 (WTF::RunLoop::TimerBase::timerFiredCallback):
862 (WTF::RunLoop::TimerBase::start):
863 (WTF::RunLoop::TimerBase::stop):
864 (WTF::RunLoop::TimerBase::isActive):
865 * wtf/win/RunLoopWin.cpp: Renamed from Source/WebCore/platform/win/RunLoopWin.cpp.
866 (WTF::RunLoop::RunLoopWndProc):
867 (WTF::RunLoop::wndProc):
869 (WTF::RunLoop::stop):
870 (WTF::RunLoop::registerRunLoopMessageWindowClass):
871 (WTF::RunLoop::RunLoop):
872 (WTF::RunLoop::~RunLoop):
873 (WTF::RunLoop::wakeUp):
874 (WTF::RunLoop::TimerBase::timerFired):
875 (WTF::generateTimerID):
876 (WTF::RunLoop::TimerBase::TimerBase):
877 (WTF::RunLoop::TimerBase::~TimerBase):
878 (WTF::RunLoop::TimerBase::start):
879 (WTF::RunLoop::TimerBase::stop):
880 (WTF::RunLoop::TimerBase::isActive):
882 2013-11-08 Alexey Proskuryakov <ap@apple.com>
884 Make base64url decoding actually work
885 https://bugs.webkit.org/show_bug.cgi?id=124050
887 Reviewed by Sam Weinig.
889 * wtf/text/Base64.cpp: (WTF::base64DecodeInternal): Don't hardcode knowledge about
890 alphabet, put it into the map.
892 2013-11-07 Denis Nomiyama <d.nomiyama@samsung.com>
894 [GTK] Glyphs in vertical text tests are rotated 90 degrees clockwise
895 https://bugs.webkit.org/show_bug.cgi?id=50619
897 Reviewed by Martin Robinson.
899 Enabled OPENTYPE_VERTICAL by default on GTK+ and EFL ports, which are
900 currently using Freetype.
904 2013-11-06 Daniel Bates <dabates@apple.com>
906 [iOS] Upstream Letterpress effect
907 https://bugs.webkit.org/show_bug.cgi?id=123932
909 Reviewed by Sam Weinig.
911 Add feature define ENABLE_LETTERPRESS disabled by default. We only enable
914 * wtf/FeatureDefines.h:
916 2013-11-06 Nick Diego Yamane <nick.yamane@openbossa.org>
918 Disable "unused local typedefs" warning for GCC 4.7
919 https://bugs.webkit.org/show_bug.cgi?id=123913
921 Reviewed by Martin Robinson.
923 That warning was actually introduced in gcc 4.7.0.
924 See: http://gcc.gnu.org/gcc-4.7/changes.html
928 2013-11-06 Daniel Bates <dabates@apple.com>
930 Add ENABLE(TEXT_SELECTION)
931 https://bugs.webkit.org/show_bug.cgi?id=123827
933 Reviewed by Ryosuke Niwa.
935 Enable selection painting by default on all ports except iOS.
937 * wtf/FeatureDefines.h:
939 2013-11-04 Alexey Proskuryakov <ap@apple.com>
941 Implement base64url encoding from RFC 4648
942 https://bugs.webkit.org/show_bug.cgi?id=123767
944 Reviewed by Sam Weinig.
946 No tests yet, will be covered by JWK tests for WebCrypto.
948 * wtf/text/Base64.cpp:
949 (WTF::base64EncodeInternal):
951 (WTF::base64URLEncode):
952 (WTF::base64DecodeInternal):
954 (WTF::base64URLDecode):
956 (WTF::base64URLEncode):
958 2013-11-04 Brent Fulgham <bfulgham@apple.com>
960 [Win] User VersionStamper for official builds
961 https://bugs.webkit.org/show_bug.cgi?id=123758
963 Reviewed by Tim Horton.
965 * WTF.vcxproj/WTFPostBuild.cmd: Add missing command to run VersionStamper.exe.
967 2013-11-01 Jer Noble <jer.noble@apple.com>
969 [PluginProxy] Add a setting to disable video plugin proxy support in HTMLMediaElement.
970 https://bugs.webkit.org/show_bug.cgi?id=123621
972 Reviewed by Eric Carlson.
974 Enable WTF_USE_AVFOUNDATION and add some HAVE_AVFOUNDATION_* defines
975 to replace the existing __MAC_OS_X_VERSION_MIN_REQUIRED macros in
976 MediaPlayerPrivateAVFoundationObjC.mm.
980 2013-11-02 Patrick Gansterer <paroga@webkit.org>
982 Fix compilation of DateMath.cpp with MSVC
983 https://bugs.webkit.org/show_bug.cgi?id=123680
985 Reviewed by Darin Adler.
988 (WTF::appendTwoDigitNumber): Help the compiler finding the
989 correct overload by casting the characters to LChar.
991 2013-11-02 Filip Pizlo <fpizlo@apple.com>
993 LLVM assertion failures should funnel into WTF's crash handling
994 https://bugs.webkit.org/show_bug.cgi?id=123682
996 Reviewed by Geoffrey Garen.
998 Give JSC some new toys to play with for crash handling.
1000 * wtf/Assertions.cpp:
1003 2013-11-02 Patrick Gansterer <paroga@webkit.org>
1005 Fix UnicodeWchar after r157330.
1006 https://bugs.webkit.org/show_bug.cgi?id=123668
1008 Reviewed by Darin Adler.
1010 * wtf/unicode/wchar/UnicodeWchar.cpp:
1015 * wtf/unicode/wchar/UnicodeWchar.h:
1020 2013-11-02 Andreas Kling <akling@apple.com>
1022 Make remaining StringImpl functions return PassRef.
1023 <https://webkit.org/b/123683>
1025 Okay, this seems to work well! Let's go all in and convert the
1026 remaining StringImpl functions to return PassRef<StringImpl> instead
1027 of PassRefPtr where we know that null is never returned.
1029 Reviewed by Anders Carlsson.
1031 2013-11-02 Andreas Kling <akling@apple.com>
1033 StringImpl::upper() should return PassRef.
1034 <https://webkit.org/b/123655>
1036 Make upper() return PassRef<StringImpl>. Spotted and removed some
1037 ref churning in implementations.
1039 Reviewed by Darin Adler.
1041 2013-11-01 Alexey Proskuryakov <ap@apple.com>
1043 Add WebCrypto AES-CBC
1044 https://bugs.webkit.org/show_bug.cgi?id=123647
1046 Reviewed by Anders Carlsson.
1048 * wtf/FixedArray.h: (WTF::FixedArray::data): Added a const version of the function.
1050 * wtf/Vector.h: Added a comment to Vector constructor about how it is different
1053 2013-11-01 Joseph Pecoraro <pecoraro@apple.com>
1055 Unreviewed extended attempt at Windows build fix after r158471.
1057 * wtf/text/cf/AtomicStringCF.cpp:
1058 * wtf/text/cf/StringCF.cpp:
1059 * wtf/text/cf/StringImplCF.cpp:
1061 2013-11-01 Joseph Pecoraro <pecoraro@apple.com>
1063 Unreviewed attempt at Windows build fix after r158471.
1065 * wtf/text/cf/AtomicStringCF.cpp:
1066 * wtf/text/cf/StringCF.cpp:
1067 * wtf/text/cf/StringImplCF.cpp:
1069 2013-11-01 Andreas Kling <akling@apple.com>
1071 Make more StringImpl construction helpers return PassRef.
1072 <https://webkit.org/b/123652>
1074 Tweak another handful of StringImpl constructor functions to return
1075 PassRef<StringImpl> instead of PassRefPtr.
1077 Reviewed by Anders Carlsson.
1079 2013-11-01 Andreas Kling <akling@apple.com>
1081 Neuter WTF_MAKE_FAST_ALLOCATED in GLOBAL_FASTMALLOC_NEW builds.
1082 <https://webkit.org/b/123639>
1084 When building with GLOBAL_FASTMALLOC_NEW, we don't need to expand
1085 operator new/delete overrides in every class.
1087 This change makes allocations group up nicely in Instruments,
1088 instead of being split between "WTF::fastMalloc" and "operator new"
1089 depending on whether the class had WTF_MAKE_FAST_ALLOCATED.
1091 Reviewed by Anders Carlsson.
1093 2013-11-01 Joseph Pecoraro <pecoraro@apple.com>
1095 Move CF/Mac WTF String implementations down into WTF
1096 https://bugs.webkit.org/show_bug.cgi?id=123635
1098 Reviewed by Sam Weinig.
1100 * WTF.vcxproj/WTF.vcxproj:
1101 * WTF.vcxproj/WTF.vcxproj.filters:
1102 * WTF.xcodeproj/project.pbxproj:
1103 * wtf/text/AtomicString.h:
1104 * wtf/text/StringImpl.h:
1105 * wtf/text/WTFString.h:
1106 * wtf/text/cf/AtomicStringCF.cpp: Renamed from Source/WebCore/platform/text/cf/AtomicStringCF.cpp.
1107 (WTF::AtomicString::add):
1108 * wtf/text/cf/StringCF.cpp: Renamed from Source/WebCore/platform/text/cf/StringCF.cpp.
1109 (WTF::String::String):
1110 (WTF::String::createCFString):
1111 * wtf/text/cf/StringImplCF.cpp: Renamed from Source/WebCore/platform/text/cf/StringImplCF.cpp.
1112 (garbageCollectionEnabled):
1113 (WTF::StringWrapperCFAllocator::retain):
1114 (WTF::StringWrapperCFAllocator::release):
1115 (WTF::StringWrapperCFAllocator::copyDescription):
1116 (WTF::StringWrapperCFAllocator::allocate):
1117 (WTF::StringWrapperCFAllocator::reallocate):
1118 (WTF::StringWrapperCFAllocator::deallocateOnMainThread):
1119 (WTF::StringWrapperCFAllocator::deallocate):
1120 (WTF::StringWrapperCFAllocator::preferredSize):
1121 (WTF::StringWrapperCFAllocator::create):
1122 (WTF::StringWrapperCFAllocator::allocator):
1123 (WTF::StringImpl::createCFString):
1124 * wtf/text/mac/StringImplMac.mm: Renamed from Source/WebCore/platform/text/mac/StringImplMac.mm.
1125 (WTF::StringImpl::operator NSString *):
1126 * wtf/text/mac/StringMac.mm: Renamed from Source/WebCore/platform/text/mac/StringMac.mm.
1127 (WTF::String::String):
1129 2013-11-01 Emilio Pozuelo Monfort <pochu27@gmail.com>
1132 https://bugs.webkit.org/show_bug.cgi?id=123625
1134 Original patch from John David Anglin <dave.anglin@bell.net>
1136 Reviewed by Darin Adler.
1141 2013-11-01 Patrick Gansterer <paroga@webkit.org>
1143 Buildfix for !USE(ICU_UNICODE) after 156968.
1145 * wtf/unicode/CollatorDefault.cpp:
1146 (WTF::Collator::userDefault):
1148 2013-10-30 Oliver Hunt <oliver@apple.com>
1150 Implement basic ES6 Math functions
1151 https://bugs.webkit.org/show_bug.cgi?id=123536
1153 Reviewed by Michael Saboff.
1155 Add basic implementations of necessary methods to MathExtras to
1156 deal with MSVC not supplying them
1166 2013-10-30 Commit Queue <commit-queue@webkit.org>
1168 Unreviewed, rolling out r158299.
1169 http://trac.webkit.org/changeset/158299
1170 https://bugs.webkit.org/show_bug.cgi?id=123558
1172 caused assertion failures in fast/canvas/canvas-color-
1173 serialization.html and fast/forms/input-text-paste-
1174 maxlength.html (Requested by rniwa on #webkit).
1176 * wtf/text/StringStatics.cpp:
1177 (WTF::StringImpl::empty):
1179 2013-10-30 Ryosuke Niwa <rniwa@webkit.org>
1181 Remove code for Mac Lion
1182 https://bugs.webkit.org/show_bug.cgi?id=123542
1184 Reviewed by Anders Carlsson.
1188 2013-10-30 Peter Molnar <pmolnar.u-szeged@partner.samsung.com>
1190 Remove PCRE workaround.
1191 https://bugs.webkit.org/show_bug.cgi?id=123265
1193 Reviewed by Brent Fulgham.
1195 * wtf/text/StringStatics.cpp:
1196 (WTF::StringImpl::empty):
1198 2013-10-30 peavo@outlook.com <peavo@outlook.com>
1200 [Win] Compile errors when enabling DFG JIT.
1201 https://bugs.webkit.org/show_bug.cgi?id=120998
1203 Reviewed by Brent Fulgham.
1205 * wtf/CompilationThread.cpp: Use new ThreadingOnce class instead of pthread_once.
1206 (WTF::initializeCompilationThreads):
1207 * wtf/ThreadingOnce.h: Added ThreadingOnce class encapsulating pthread_once functionality.
1208 (WTF::ThreadingOnce::ThreadingOnce):
1209 (WTF::ThreadingOnce::~ThreadingOnce):
1210 (WTF::ThreadingOnce::callOnce):
1211 * wtf/text/CString.h: Export needed symbols.
1213 2013-10-30 Alex Christensen <achristensen@webkit.org>
1215 Disabled JIT on Win64.
1216 https://bugs.webkit.org/show_bug.cgi?id=122472
1218 Reviewed by Geoffrey Garen.
1221 Disabled JIT on Win64.
1223 2013-10-29 Andreas Kling <akling@apple.com>
1225 StringImpl::isolatedCopy() should return PassRef.
1226 <https://webkit.org/b/123484>
1228 Make isolatedCopy() return a PassRef<StringImpl>.
1230 Reviewed by Anders Carlsson.
1232 2013-10-29 Jer Noble <jer.noble@apple.com>
1234 [MSE] [Mac] Enable MediaSource on the Mac
1235 https://bugs.webkit.org/show_bug.cgi?id=122484
1237 Reviewed by Darin Adler.
1239 Enable ENABLE_MEDIA_SOURCE.
1241 * wtf/FeatureDefines.h:
1242 * wtf/Platform.h: Force a clean build.
1244 2013-10-29 Andreas Kling <akling@apple.com>
1246 StringImpl::adopt() should return PassRef.
1247 <https://webkit.org/b/123456>
1249 Make the StringImpl::adopt() functions return a PassRef<StringImpl>.
1251 Reviewed by Anders Carlsson.
1253 2013-10-29 Jinwoo Song <jinwoo7.song@samsung.com>
1255 Re-enable simple line layout for EFL
1256 https://bugs.webkit.org/show_bug.cgi?id=123402
1258 Reviewed by Antti Koivisto.
1260 * wtf/FeatureDefines.h: Enable 8-bit TextRun support for EFL port.
1262 2013-10-28 Anders Carlsson <andersca@apple.com>
1264 RunLoop::dispatch should take an std::function
1265 https://bugs.webkit.org/show_bug.cgi?id=123407
1267 Reviewed by Andreas Kling.
1269 * wtf/FunctionDispatcher.h:
1271 2013-10-28 Andreas Kling <akling@apple.com>
1273 RenderElement::m_style should be a Ref.
1274 <https://webkit.org/b/123401>
1276 Added a Ref::replace() so we can Indiana Jones the new style in
1277 RenderElement::setStyle() while keeping a handle on the old style
1280 Reviewed by Antti Koivisto.
1282 2013-10-28 Carlos Garcia Campos <cgarcia@igalia.com>
1284 Unreviewed. Fix make distcheck.
1286 * GNUmakefile.list.am: Remove unexistent file from compilation.
1288 2013-10-28 Bastien Nocera <hadess@hadess.net>
1290 Replace 0 timeouts g_timeout_add() by g_idle_add()
1291 https://bugs.webkit.org/show_bug.cgi?id=123260
1293 Reviewed by Carlos Garcia Campos.
1295 A zero timeout should be equivalent to using g_idle_add_full(G_PRIORITY_DEFAULT, ...)
1296 without the nagging feeling that the wrong API was used.
1298 * wtf/gtk/MainThreadGtk.cpp: Use g_idle_add() instead
1300 (WTF::scheduleDispatchFunctionsOnMainThread):
1302 2013-10-28 Zan Dobersek <zdobersek@igalia.com>
1304 Re-enable simple line layout for GTK
1305 https://bugs.webkit.org/show_bug.cgi?id=123388
1307 Reviewed by Andreas Kling.
1309 * wtf/FeatureDefines.h: Enable the 8-bit TextRun support for the GTK port.
1311 2013-10-25 Joseph Pecoraro <pecoraro@apple.com>
1313 Upstream ENABLE(REMOTE_INSPECTOR) and enable on iOS and Mac
1314 https://bugs.webkit.org/show_bug.cgi?id=123111
1316 Reviewed by Timothy Hatcher.
1318 * wtf/FeatureDefines.h:
1320 2013-10-25 Jer Noble <jer.noble@apple.com>
1322 [WTF] Add a multiplication operator (and a few others) to MediaTime
1323 https://bugs.webkit.org/show_bug.cgi?id=123137
1325 Reviewed by Eric Carlson.
1327 Add a multiplication operator and an inequality operator to the
1328 MediaTime class for use by MSE.
1330 * wtf/MediaTime.cpp:
1331 (WTF::signum): Moved to top of file.
1332 (WTF::MediaTime::operator*): Added.
1333 (WTF::MediaTime::operator!=): Added.
1335 (WTF::operator*): Added non-class version of operator*.
1337 2013-10-24 Jer Noble <jer.noble@apple.com>
1339 [Mac] Add helper methods to convert CMTime <--> MediaTime
1340 https://bugs.webkit.org/show_bug.cgi?id=123285
1342 Reviewed by Eric Carlson.
1344 Add a #ifdef header_h protector.
1348 2013-10-24 Mark Rowe <mrowe@apple.com>
1350 Remove references to OS X 10.7 from Xcode configuration settings.
1352 Now that we're not building for OS X 10.7 they're no longer needed.
1354 Reviewed by Anders Carlsson.
1356 * Configurations/Base.xcconfig:
1357 * Configurations/DebugRelease.xcconfig:
1359 2013-10-24 Mark Rowe <mrowe@apple.com>
1361 <rdar://problem/15312643> Prepare for the mysterious future.
1363 Reviewed by David Kilzer.
1365 * Configurations/Base.xcconfig:
1366 * Configurations/DebugRelease.xcconfig:
1368 2013-10-24 Commit Queue <commit-queue@webkit.org>
1370 Unreviewed, rolling out r157931.
1371 http://trac.webkit.org/changeset/157931
1372 https://bugs.webkit.org/show_bug.cgi?id=123284
1374 Seems to have caused a lot of assertions on debug bots
1375 (Requested by ap on #webkit).
1377 * wtf/text/StringStatics.cpp:
1378 (WTF::StringImpl::empty):
1380 2013-10-24 Peter Molnar <pmolnar.u-szeged@partner.samsung.com>
1382 Remove PCRE workaround.
1383 https://bugs.webkit.org/show_bug.cgi?id=123265
1385 Reviewed by Darin Adler.
1387 * wtf/text/StringStatics.cpp:
1388 (WTF::StringImpl::empty):
1390 2013-10-24 Peter Molnar <pmolnar.u-szeged@partner.samsung.com>
1392 Remove Clang workaround.
1393 https://bugs.webkit.org/show_bug.cgi?id=123262
1395 Reviewed by Anders Carlsson.
1397 * wtf/CheckedArithmetic.h:
1398 (WTF::Checked::Checked):
1400 2013-10-24 Ryuan Choi <ryuan.choi@samsung.com>
1402 [EFL] Build break with latest EFL 1.8 libraries.
1403 https://bugs.webkit.org/show_bug.cgi?id=123245
1405 Reviewed by Gyuyoung Kim.
1407 After fixed build break on EFL 1.8 at r138326, EFL libraries are changed
1408 Eo typedef and splitted header files which contain version macro.
1410 * wtf/OwnPtrCommon.h: Changed Eo typedef.
1411 * wtf/efl/RefPtrEfl.h: Ditto.
1413 2013-10-24 Carlos Garcia Campos <cgarcia@igalia.com>
1415 [GObject bindings] Make EventTarget interface introspectable
1416 https://bugs.webkit.org/show_bug.cgi?id=77835
1418 Reviewed by Gustavo Noronha Silva.
1420 Add support for use GRefPtr with GClosure.
1422 * wtf/gobject/GRefPtr.cpp:
1425 * wtf/gobject/GRefPtr.h:
1426 * wtf/gobject/GTypedefs.h:
1428 2013-10-23 Anders Carlsson <andersca@apple.com>
1430 Remove USE(LOCKFREE_THREADSAFEREFCOUNTED)
1431 https://bugs.webkit.org/show_bug.cgi?id=123228
1433 Reviewed by Geoffrey Garen.
1435 All ports support USE(LOCKFREE_THREADSAFEREFCOUNTED) now and taking a lock on every ref/deref seems bad.
1438 * wtf/ThreadSafeRefCounted.h:
1439 (WTF::ThreadSafeRefCountedBase::ref):
1440 (WTF::ThreadSafeRefCountedBase::refCount):
1441 (WTF::ThreadSafeRefCountedBase::derefBase):
1443 2013-10-23 Anders Carlsson <andersca@apple.com>
1446 https://bugs.webkit.org/show_bug.cgi?id=123226
1448 Reviewed by Dan Bernstein.
1450 HAVE_XPC has been true on Mac since Lion, so remove it.
1454 2013-10-23 Andreas Kling <akling@apple.com>
1456 Make more StringImpl construction functions return PassRef.
1457 <https://webkit.org/b/123203>
1459 Knock out a couple more of the StringImpl construction helpers that
1460 always return a non-null StringImpl.
1462 Reviewed by Antti Koivisto.
1464 2013-10-22 Filip Pizlo <fpizlo@apple.com>
1466 FTL should be able to do some simple inline caches using LLVM patchpoints
1467 https://bugs.webkit.org/show_bug.cgi?id=123164
1469 Reviewed by Mark Hahnenberg.
1471 This needed some better bitvector support, like merging (|=), excluding (&=~),
1472 hashing, and bit counting.
1474 * wtf/BitVector.cpp:
1475 (WTF::BitVector::setSlow):
1476 (WTF::BitVector::excludeSlow):
1477 (WTF::BitVector::bitCountSlow):
1478 (WTF::BitVector::equalsSlowCase):
1479 (WTF::BitVector::hashSlowCase):
1480 (WTF::BitVector::dump):
1482 (WTF::BitVector::merge):
1483 (WTF::BitVector::exclude):
1484 (WTF::BitVector::bitCount):
1485 (WTF::BitVector::BitVector):
1486 (WTF::BitVector::isEmptyValue):
1487 (WTF::BitVector::isDeletedValue):
1488 (WTF::BitVector::isEmptyOrDeletedValue):
1489 (WTF::BitVector::operator==):
1490 (WTF::BitVector::hash):
1491 (WTF::BitVectorHash::hash):
1492 (WTF::BitVectorHash::equal):
1494 (WTF::CustomHashTraits::constructDeletedValue):
1495 (WTF::CustomHashTraits::isDeletedValue):
1496 (WTF::CustomHashTraits::emptyValue):
1497 (WTF::CustomHashTraits::isEmptyValue):
1498 * wtf/StdLibExtras.h:
1501 2013-10-23 Allan Sandfeld Jensen <allan.jensen@digia.com>
1503 Clean-up in Atomics.h
1504 https://bugs.webkit.org/show_bug.cgi?id=123207
1506 Reviewed by Anders Carlsson.
1508 Atomics.h has two confusing and bit-rotted ifdefs with comments.
1510 The first about CPU(SPARC64) was rendered obsolete when we switched
1511 from __exchange_and_add to __sync_add_and_fetch.
1513 The second was caused by a wrong definition that apparently only
1514 caused trouble on GCC.
1518 2013-10-22 Andreas Kling <akling@apple.com>
1520 StringImpl::lower() should return a PassRef.
1521 <https://webkit.org/b/123190>
1523 Test the waters and hack enough of StringImpl to be able to return
1524 a PassRef<StringImpl> from lower().
1526 Also gave String a constructor that takes a PassRef<StringImpl>.
1528 Reviewed by Antti Koivisto.
1530 2013-10-22 Commit Queue <commit-queue@webkit.org>
1532 Unreviewed, rolling out r157835.
1533 http://trac.webkit.org/changeset/157835
1534 https://bugs.webkit.org/show_bug.cgi?id=123192
1536 broke 32-bit builds (Requested by smfr on #webkit).
1538 * wtf/MediaTime.cpp:
1542 2013-10-22 Jer Noble <jer.noble@apple.com>
1544 [WTF] Add a multiplication operator (and a few others) to MediaTime
1545 https://bugs.webkit.org/show_bug.cgi?id=123137
1547 Reviewed by Eric Carlson.
1549 Add a multiplication operator and an inequality operator to the
1550 MediaTime class for use by MSE.
1552 * wtf/MediaTime.cpp:
1553 (WTF::signum): Moved to top of file.
1554 (WTF::MediaTime::operator*): Added.
1555 (WTF::MediaTime::operator!=): Added.
1557 (WTF::operator*): Added non-class version of operator*.
1559 2013-10-21 Gyuyoung Kim <gyuyoung.kim@samsung.com>
1561 Make TYPE_CASTS_BASE more flexible
1562 https://bugs.webkit.org/show_bug.cgi?id=122951
1564 Reviewed by Andreas Kling.
1566 TYPE_CASTS_BASE is being used by node|element type casts. However, it is difficult
1567 to be used by other type casts. For instance, CSSValue, Accessibility and so on.
1568 This patch modifies TYPE_CASTS_BASE which can support other type casts.
1570 Besides TYPE_CASTS_BASE body is moved from node.h to Assertions.h.
1574 2013-10-20 Filip Pizlo <fpizlo@apple.com>
1576 StructureStubInfo's usedRegisters set should be able to track all registers, not just the ones that our JIT's view as temporaries
1577 https://bugs.webkit.org/show_bug.cgi?id=123076
1579 Reviewed by Sam Weinig.
1581 Teach BitVector how to efficiently merge (i.e. bitvector |=).
1583 * wtf/BitVector.cpp:
1584 (WTF::BitVector::mergeSlow):
1586 (WTF::BitVector::merge):
1587 (WTF::BitVector::cleanseInlineBits):
1589 2013-10-19 Jer Noble <jer.noble@apple.com>
1591 Unreviewed roll out of r157695; broke Mac builds.
1593 * wtf/FeatureDefines.h:
1595 2013-10-07 Jer Noble <jer.noble@apple.com>
1597 [MSE] [Mac] Enable MediaSource on the Mac
1598 https://bugs.webkit.org/show_bug.cgi?id=122484
1600 Reviewed by Darin Adler.
1602 Enable ENABLE_MEDIA_SOURCE.
1604 * wtf/FeatureDefines.h:
1606 2013-10-19 Andreas Kling <akling@apple.com>
1608 RefPtr::releaseNonNull() incorrectly increments the refcount.
1609 <https://webkit.org/b/123063>
1611 Make releaseNonNull() use adoptRef(T&), mirroring release().
1613 Reviewed by Anders Carlsson.
1615 2013-10-18 Andreas Kling <akling@apple.com>
1617 Start passing RenderStyle around with PassRef.
1618 <https://webkit.org/b/123051>
1620 Added some new PassRef tricks to make this patch possible.
1622 Reviewed by Darin Adler.
1625 (WTF::PassRef::get):
1627 Added a get() helper to facilitate writing functions that
1628 construct a new object and call some functions on it before
1631 (WTF::PassRef::dropRef):
1633 This will deref() the referenced object and mark the PassRef
1634 as "passed." This is used in code paths where the PassRef is
1635 going to go out of scope with nobody to take it over.
1637 (WTF::PassRef::leakRef):
1639 Renamed takeReference() to leakRef() and made it public so
1640 we don't have to awkwardly sink the PassRef into a Ref for
1644 (WTF::RefPtr::releaseNonNull):
1646 Added RefPtr::releaseNonNull() for a convenient way of creating
1647 a PassRef<T> from a RefPtr<T>. This function may only be called
1648 if the RefPtr is known to be non-null.
1650 2013-10-18 Filip Pizlo <fpizlo@apple.com>
1652 A CodeBlock's StructureStubInfos shouldn't be in a Vector that we search using code origins and machine code PCs
1653 https://bugs.webkit.org/show_bug.cgi?id=122940
1655 Reviewed by Oliver Hunt.
1657 * GNUmakefile.list.am:
1658 * WTF.vcxproj/WTF.vcxproj:
1659 * WTF.xcodeproj/project.pbxproj:
1660 * wtf/BagToHashMap.h: Added.
1662 * wtf/CMakeLists.txt:
1664 2013-10-18 Anders Carlsson <andersca@apple.com>
1666 Remove spaces between template angle brackets
1667 https://bugs.webkit.org/show_bug.cgi?id=123040
1669 Reviewed by Andreas Kling.
1672 * wtf/CheckedArithmetic.h:
1673 * wtf/Compression.h:
1676 * wtf/HashFunctions.h:
1677 * wtf/HashIterators.h:
1680 * wtf/ListHashSet.h:
1682 * wtf/RefCountedLeakCounter.cpp:
1684 * wtf/SentinelLinkedList.h:
1686 * wtf/SizeLimits.cpp:
1687 * wtf/StreamBuffer.h:
1689 * wtf/VectorTraits.h:
1691 (WTF::WeakReference::create):
1692 (WTF::WeakReference::createUnbound):
1693 (WTF::WeakPtr::WeakPtr):
1694 (WTF::WeakPtrFactory::WeakPtrFactory):
1695 * wtf/text/AtomicString.cpp:
1696 (WTF::AtomicString::add):
1698 * wtf/text/StringConcatenate.h:
1699 * wtf/text/StringImpl.h:
1700 * wtf/text/StringOperators.h:
1703 2013-10-18 Brendan Long <b.long@cablelabs.com>
1705 [GStreamer][GTK] Add GRefPtr::outPtr()
1706 https://bugs.webkit.org/show_bug.cgi?id=122996
1708 Reviewed by Philippe Normand.
1710 * wtf/gobject/GRefPtr.h:
1711 (WTF::GRefPtr::outPtr): Added.
1713 2013-10-17 Geoffrey Garen <ggaren@apple.com>
1715 Tidied up the Vector<T> move constructor
1716 https://bugs.webkit.org/show_bug.cgi?id=122998
1718 Reviewed by Anders Carlsson.
1721 (WTF::::Vector): Don't call swap() "weird". It's the way most std types
1722 implement move constructors.
1724 Do inline this function, so the compiler can optimize away a logical
1725 move into a physical no-op.
1727 2013-10-16 Filip Pizlo <fpizlo@apple.com>
1729 Introduce WTF::Bag and start using it for InlineCallFrameSet
1730 https://bugs.webkit.org/show_bug.cgi?id=122941
1732 Reviewed by Geoffrey Garen.
1734 Introduce WTF::Bag, which is basically an allocation pool. No POD restrictions. Does one
1735 malloc per entry. No need to shrink afterwards.
1737 * GNUmakefile.list.am:
1738 * WTF.vcxproj/WTF.vcxproj:
1739 * WTF.xcodeproj/project.pbxproj:
1744 (WTF::Bag::iterator::iterator):
1745 (WTF::Bag::iterator::operator!):
1746 (WTF::Bag::iterator::operator*):
1747 (WTF::Bag::iterator::operator++):
1748 (WTF::Bag::iterator::operator==):
1751 (WTF::Bag::isEmpty):
1752 * wtf/CMakeLists.txt:
1754 2013-10-17 Andreas Kling <akling@apple.com>
1756 Make it possible to assign a PassRef to a RefPtr.
1757 <https://webkit.org/b/122943>
1759 We have to use std::move when constructing a RefPtr from a PassRef
1760 since there is no copy constructor for the latter.
1762 Reviewed by Antti Koivisto.
1764 2013-10-16 Ryuan Choi <ryuan.choi@samsung.com>
1766 Unreviewed build fix attempt on EFL port after r157520 and r157523
1768 * wtf/PassRef.h: includes <utility>
1770 2013-10-16 Darin Adler <darin@apple.com>
1772 Add PassRef and createRefCounted so we can improve creation of RefCounted objects
1773 https://bugs.webkit.org/show_bug.cgi?id=122904
1775 Reviewed by Anders Carlsson.
1777 * GNUmakefile.list.am: Added PassRef.h.
1778 * WTF.vcxproj/WTF.vcxproj: Ditto.
1779 * WTF.vcxproj/WTF.vcxproj.filters: Ditto.
1780 * WTF.xcodeproj/project.pbxproj: Ditto.
1781 * wtf/CMakeLists.txt: Ditto.
1783 * wtf/Forward.h: Added PassRef. Also re-sorted and un-indented to match what
1784 the style-checking script expects.
1786 * wtf/PassRef.h: Added. Includes the createRefCounted function template, which
1787 is analogous to make_unique, but is for reference counted objects, and also
1788 assumes that new will never return null. Also includes an overload of adoptRef
1789 that takes a reference rather than a pointer.
1791 * wtf/PassRefPtr.h: Include "PassRef.h" so we can share the adopted function.
1792 Got rid of declarations that duplicate ones in there.
1793 (WTF::refIfNotNull): Use nullptr.
1794 (WTF::derefIfNotNull): Use nullptr.
1795 (WTF::PassRefPtr::PassRefPtr): Use nullptr. Added an overload that takes a PassRef.
1796 (WTF::PassRefPtr::operator UnspecifiedBoolType): Use nullptr.
1797 (WTF::PassRefPtr::operator=): Made this deleted instead of compile time assertion.
1798 (WTF::PassRefPtr::PassRefPtr): Made adopting constructor use an adopt tag instead
1799 of an unused boolean.
1800 (WTF::PassRefPtr::leakRef): Use nullptr.
1801 (WTF::adoptRef): Use the adopt tag.
1803 * wtf/Ref.h: Use Noncopyable instead of rolling our own.
1804 (WTF::Ref::Ref): Add an overload that takes a PassRef.
1805 (WTF::Ref::operator=): Ditto.
1807 * wtf/RefPtr.h: Removed unneeded forward declaration of PassRefPtr.
1808 (WTF::RefPtr::RefPtr): Use nullptr. Added overload that takes a PassRef.
1809 (WTF::RefPtr::release): Use nullptr.
1810 (WTF::RefPtr::operator UnspecifiedBoolType): Use nullptr.
1811 (WTF::RefPtr::operator=): Added overload that takes a PassRef.
1812 (WTF::RefPtr::clear): Use nullptr.
1814 * wtf/StdLibExtras.h: Added inline keyword to isPointerTypeAlignmentOkay,
1815 reinterpret_cast_ptr, and make_unique. Seems like a simple oversight that these
1816 were missing before.
1818 2013-10-15 Dean Jackson <dino@apple.com>
1820 Add ENABLE_WEB_ANIMATIONS flag
1821 https://bugs.webkit.org/show_bug.cgi?id=122871
1823 Reviewed by Tim Horton.
1825 Eventually might be http://dev.w3.org/fxtf/web-animations/
1826 but this is just engine-internal work at the moment.
1828 * wtf/FeatureDefines.h:
1830 2013-10-15 Daniel Bates <dabates@apple.com>
1832 [iOS] Upstream JavaScriptCore support for ARM64
1833 https://bugs.webkit.org/show_bug.cgi?id=122762
1835 Reviewed by Oliver Hunt.
1837 * Configurations/Base.xcconfig:
1839 (WTF::weakCompareAndSwap):
1841 * wtf/FastMalloc.cpp:
1845 * wtf/text/ASCIIFastPath.h:
1846 (WTF::copyLCharsFromUCharSource):
1847 * wtf/text/StringImpl.h:
1849 2013-10-14 Zan Dobersek <zdobersek@igalia.com>
1851 Static assertions in WTF::adoptPtr should point to using adoptRef for ref-counted objects
1852 https://bugs.webkit.org/show_bug.cgi?id=122745
1854 Reviewed by Anders Carlsson.
1857 (WTF::adoptPtr): When the object's type is convertible to the RefCountedBase or ThreadSafeRefCountedBase type,
1858 the static assertion should note that adoptRef should be used instead.
1860 2013-10-14 Anders Carlsson <andersca@apple.com>
1862 WebKit Nightlies broken by r157374
1863 https://bugs.webkit.org/show_bug.cgi?id=122736
1865 Reviewed by Andreas Kling.
1867 Add back a callOnMainThread overload that Safari is using.
1869 * wtf/MainThread.cpp:
1870 (WTF::callOnMainThread):
1873 2013-10-13 Darin Adler <darin@apple.com>
1875 Deprecate or remove deleteAllValues functions; there are only a few call sites left
1876 https://bugs.webkit.org/show_bug.cgi?id=122738
1878 Reviewed by Anders Carlsson.
1880 * wtf/Deque.h: Deleted deleteAllValues.
1881 * wtf/HashMap.h: Ditto.
1882 * wtf/HashSet.h: Ditto.
1883 * wtf/ListHashSet.h: Ditto.
1884 * wtf/Vector.h: Renamed deleteAllValues to deprecatedDeleteAllValues.
1886 == Rolled over to ChangeLog-2013-10-13 ==