1 2013-12-18 Daniel Bates <dabates@apple.com>
3 WTF, JavaScriptCore fails to build with trunk clang: operators new, new[],
4 delete, delete[] cannot be declared inline
5 https://bugs.webkit.org/show_bug.cgi?id=124186
6 <rdar://problem/15644039>
8 Reviewed by Geoffrey Garen and Anders Carlsson.
10 Following <http://llvm.org/viewvc/llvm-project?view=revision&revision=193044>
11 (http://llvm.org/bugs/show_bug.cgi?id=17591>), Clang emits warnings when
12 operator new, delete are inlined. Such definitions cannot be inline per
13 replacement.functions (17.6.4.6/3) of the C++ standard. For now,
14 disable these warnings instead of exporting these functions.
18 2013-12-19 Hugo Parente Lima <hugo.lima@openbossa.org>
20 WTF fails to compile with gcc 4.8.2 and -Werror=array-bounds
21 https://bugs.webkit.org/show_bug.cgi?id=125936
23 Reviewed by Anders Carlsson.
25 * wtf/dtoa/double-conversion.cc: Use a unsigned instead of int on buffer_pos type.
27 2013-12-19 Peter Szanka <h868064@stud.u-szeged.hu>
29 Delete RVCT related code parts.
30 https://bugs.webkit.org/show_bug.cgi?id=125626
32 Reviewed by Csaba Osztrogonác.
34 * wtf/Compiler.h: follow-up fix for r160648, remove an unnecessary comment.
36 2013-12-18 Alex Christensen <achristensen@webkit.org>
38 [WinCairo] Preparation for GStreamer on Windows.
39 https://bugs.webkit.org/show_bug.cgi?id=125946
41 Reviewed by Brent Fulgham.
43 * WTF.vcxproj/WTF.vcxproj:
44 Use new GStreamer property sheets for WinCairo.
46 2013-12-18 Mark Hahnenberg <mhahnenberg@apple.com>
48 DFG should have a separate StoreBarrier node
49 https://bugs.webkit.org/show_bug.cgi?id=125530
51 Reviewed by Filip Pizlo.
53 * wtf/Platform.h: Added an #define for ENABLE(GGC) which will be used for landing things related to GenGC.
55 2013-12-16 Daniel Bates <dabates@apple.com>
57 [iOS] Upstream WebCore/html changes
58 https://bugs.webkit.org/show_bug.cgi?id=125765
60 Reviewed by Darin Adler.
62 Defined ENABLE_IOS_AUTOCORRECT_AND_AUTOCAPITALIZE, enabled by default on iOS.
64 * wtf/FeatureDefines.h:
66 2013-12-17 Alex Christensen <achristensen@webkit.org>
68 Compile fix for WebGL on Windows without GRAPHICS_SURFACE.
69 https://bugs.webkit.org/show_bug.cgi?id=125867
71 Reviewed by Martin Robinson.
73 * wtf/FeatureDefines.h:
74 Removed unused ENABLE_GLIB_SUPPORT macro.
76 Don't use GRAPHICS_SURFACE for WebGL on Windows.
78 2013-12-17 Alex Christensen <achristensen@webkit.org>
80 [Win] Fixed linker error with GStreamer.
81 https://bugs.webkit.org/show_bug.cgi?id=124861
83 Reviewed by Martin Robinson.
85 * wtf/gobject/GOwnPtr.cpp:
87 * wtf/gobject/GOwnPtr.h:
88 Added WTF_EXPORT_PRIVATE to freeOwnedGPtr<GError> declaration and definition.
90 2013-12-17 Benjamin Poulain <benjamin@webkit.org>
92 Add a simple register allocator to WebCore for x86_64
93 https://bugs.webkit.org/show_bug.cgi?id=125771
95 Reviewed by Geoffrey Garen.
97 * wtf/Platform.h: Add a new flag "CSS_SELECTOR_JIT" to guard
98 an experimental JIT compiler in WebCore.
100 2013-12-16 Anders Carlsson <andersca@apple.com>
102 Remove EnumClass.h from WTF
103 https://bugs.webkit.org/show_bug.cgi?id=125820
105 Reviewed by Darin Adler.
107 All compilers we build on now support real strongly typed enums, so we can remove the ENUM_CLASS version.
109 * WTF.vcxproj/WTF.vcxproj:
110 * WTF.vcxproj/WTF.vcxproj.filters:
111 * WTF.xcodeproj/project.pbxproj:
112 * wtf/CheckedArithmetic.h:
113 * wtf/EnumClass.h: Removed.
115 2013-12-16 Brent Fulgham <bfulgham@apple.com>
117 [Win] Remove dead code after conversion to VS2013
118 https://bugs.webkit.org/show_bug.cgi?id=125795
120 Reviewed by Darin Adler.
122 * wtf/Assertions.h: Include <inttypes.h> now that it exists.
123 * wtf/Compiler.h: Update compiler checks for VS2013, and
124 enable support for NEVER_INLINE
125 * wtf/HashFunctions.h:
126 (WTF::PtrHash::hash): Remove compiler workaround.
127 * wtf/MathExtras.h: Remove C99 functions that are now supplied
128 by the MS runtime library.
129 * wtf/Platform.h: Remove old MSVC support flags.
130 * wtf/StdLibExtras.h: Remove old MSVC workaround code.
132 2013-12-16 Alex Christensen <achristensen@webkit.org>
134 Fixed Win64 build on VS2013.
135 https://bugs.webkit.org/show_bug.cgi?id=125753
137 Reviewed by Brent Fulgham.
139 * WTF.vcxproj/WTF.vcxproj:
140 Added correct PlatformToolset for 64-bit builds.
142 2013-12-16 Peter Szanka <h868064@stud.u-szeged.hu>
144 Delete RVCT related code parts.
145 https://bugs.webkit.org/show_bug.cgi?id=125626
147 Reviewed by Darin Adler.
154 2013-12-13 Brent Fulgham <bfulgham@apple.com>
156 [Win] Remove Pre-VS2013 support code.
157 https://bugs.webkit.org/show_bug.cgi?id=125693
159 Reviewed by Darin Adler.
161 * wtf/StringPrintStream.cpp:
162 (WTF::StringPrintStream::vprintf): Use va_copy, like a civilized person.
164 2013-12-12 Darin Adler <darin@apple.com>
166 Incorrect handling of non-ASCII characters in WTF::base64DecodeInternal
167 https://bugs.webkit.org/show_bug.cgi?id=125658
169 Reviewed by Alexey Proskuryakov.
171 * wtf/text/Base64.cpp:
172 (WTF::base64EncodeInternal): Use a reference to an array instead of a pointer
173 for the table argument type so we check the size of the array at the call site.
174 (WTF::base64DecodeInternal): Ditto. Also added an bounds check before using the
175 table so we don't load some random value for non-ASCII characters.
177 2013-12-13 Brent Fulgham <bfulgham@apple.com>
179 [Win] Unreviewed build fix after r160548
181 * WTF.vcxproj/WTFGenerated.vcxproj: Specify that we are using
182 the vs12_xp target for Makefile-based projects.
184 2013-12-13 Anders Carlsson <andersca@apple.com>
186 Require variadic templates to build WebKit
187 https://bugs.webkit.org/show_bug.cgi?id=125701
189 Reviewed by Andreas Kling.
192 Add an #error if variadic templates are disabled.
194 * wtf/NeverDestroyed.h:
196 * wtf/StdLibExtras.h:
197 Remove a bunch of COMPILER_SUPPORTS(CXX_VARIADIC_TEMPLATES) #ifdefs.
199 2013-12-13 Peter Szanka <h868064@stud.u-szeged.hu>
201 Delete INTEL C compiler related code parts.
202 https://bugs.webkit.org/show_bug.cgi?id=125625
204 Reviewed by Darin Adler.
209 2013-12-13 Brent Fulgham <bfulgham@apple.com>
211 [Win] Switch WebKit solution to Visual Studio 2013
212 https://bugs.webkit.org/show_bug.cgi?id=125192
214 Reviewed by Anders Carlsson.
216 * WTF.vcxproj/WTF.vcxproj: Update for VS2013
217 * WTF.vcxproj/WTF.vcxproj.filters: Ditto
219 2013-12-12 Brady Eidson <beidson@apple.com>
221 DatabaseProcess IndexedDB: Establish a metadata backing store on disk
222 https://bugs.webkit.org/show_bug.cgi?id=125258
224 Reviewed by Alexey Proskuryakov, Anders Carlsson, and Tim Horton.
226 * wtf/text/WTFString.h: Export toUInt64Strict().
228 2013-12-12 Sam Weinig <sam@webkit.org>
230 Replace uses of WTF::BitArray with std::bitset
231 https://bugs.webkit.org/show_bug.cgi?id=125642
233 Reviewed by Anders Carlsson.
235 * GNUmakefile.list.am:
236 * WTF.vcxproj/WTF.vcxproj:
237 * WTF.vcxproj/WTF.vcxproj.filters:
238 * WTF.xcodeproj/project.pbxproj:
239 * wtf/BitArray.h: Removed.
240 * wtf/CMakeLists.txt:
242 2013-12-11 David Kilzer <ddkilzer@apple.com>
244 Define m_hasBadParent in InlineBox if defined(ADDRESS_SANITIZER)
245 <http://webkit.org/b/125329>
247 Reviewed by Darin Adler.
249 * wtf/Assertions.h: Define macro
250 ASSERT_WITH_SECURITY_IMPLICATION_DISABLED based on whether
251 ASSERT_WITH_SECURITY_IMPLICATION() is enabled.
253 2013-12-11 Brendan Long <b.long@cablelabs.com>
255 Type punning error in MD5.cpp
256 https://bugs.webkit.org/show_bug.cgi?id=125412
258 Reviewed by Darin Adler.
261 (WTF::toLittleEndian): Renamed, and use memcpy instead of casting.
262 (WTF::MD5::addBytes): Renamed reverseBytes to toLittleEndian.
263 (WTF::MD5::checksum): Same, and use memcpy instead of casting to prevent type punning error.
265 2013-12-11 Laszlo Vidacs <lac@inf.u-szeged.hu>
267 Store SHA1 hash in std::array
268 https://bugs.webkit.org/show_bug.cgi?id=125446
270 Reviewed by Darin Adler.
272 Change Vector to std::array and use typedef.
275 (WTF::SHA1::computeHash):
276 (WTF::SHA1::hexDigest):
277 (WTF::SHA1::computeHexDigest):
280 2013-12-11 Oliver Hunt <oliver@apple.com>
282 Give Unique StringImpls a meaningful data pointer
283 https://bugs.webkit.org/show_bug.cgi?id=125598
285 Reviewed by Michael Saboff.
287 Found by code inspection. If there is a collision in an Identifier
288 table when comparing to a string literal we attempt to use the data
289 pointer (essentially this ends up being a null termination check).
291 Previously unique pointers just used the literal 1 as the data address
292 but this obviously fails when dereferenced. Instead we now make the
293 data pointer point to the location of the buffer pointer itself. As
294 the buffer pointer is initialised to 0, this satisfies the requirement
295 that the 0-length unique string is null terminated.
297 * wtf/text/StringImpl.h:
298 (WTF::StringImpl::StringImpl):
300 2013-12-10 Anders Carlsson <andersca@apple.com>
302 Add a HashMap constructor that takes an initializer list
303 https://bugs.webkit.org/show_bug.cgi?id=125551
305 Reviewed by Dan Bernstein.
308 (WTF::HashMap::HashMap):
310 2013-12-10 Laszlo Vidacs <lac@inf.u-szeged.hu>
312 Use std::array when computing MD5 checksum
313 https://bugs.webkit.org/show_bug.cgi?id=125509
315 Reviewed by Anders Carlsson.
317 Added MD5::Digest type and MD5::hashSize for computing MD5 checksum.
320 (WTF::MD5::checksum):
323 2013-12-10 Martin Robinson <mrobinson@igalia.com>
325 Various fixes for the CMake GTK+ build
327 Reviewed by Gustavo Noronha.
329 * wtf/PlatformGTK.cmake: Add Zlib library to the WTF build.
331 2013-12-09 Sam Weinig <sam@webkit.org>
334 https://bugs.webkit.org/show_bug.cgi?id=125478
336 Reviewed by Anders Carlsson.
338 * GNUmakefile.list.am:
339 * WTF.vcxproj/WTF.vcxproj:
340 * WTF.vcxproj/WTF.vcxproj.filters:
341 * WTF.xcodeproj/project.pbxproj:
342 * wtf/CMakeLists.txt:
343 * wtf/FixedArray.h: Removed.
345 2013-12-09 Sam Weinig <sam@webkit.org>
347 Replace use of WTF::FixedArray with std::array
348 https://bugs.webkit.org/show_bug.cgi?id=125475
350 Reviewed by Anders Carlsson.
354 * wtf/SixCharacterHash.cpp:
355 (WTF::integerToSixCharacterHashString):
356 * wtf/SixCharacterHash.h:
358 2013-12-06 Roger Fong <roger_fong@apple.com> and Brent Fulgham <bfulgham@apple.com>
360 [Win] Support compiling with VS2013
361 https://bugs.webkit.org/show_bug.cgi?id=125353
363 Reviewed by Anders Carlsson.
365 * wtf/Compiler.h: Show proper features for VS2012 and VS2013.
366 * wtf/MathExtras.h: Don't implement common C99 routines when
367 they are available through the runtime libraries.
369 (WTF::RetainPtr::operator bool): Added.
370 * wtf/StdLibExtras.h: Use Microsoft's version of make_unique
373 2013-12-06 Laszlo Vidacs <lac@inf.u-szeged.hu>
375 Define SHA1 hash size in SHA1.h and use it at various places.
376 https://bugs.webkit.org/show_bug.cgi?id=125345
378 Reviewed by Darin Adler.
380 Use SHA1::hashSize instead of local variables.
382 * wtf/SHA1.h: define SHA1 hash size
384 2013-12-05 Iain Lane <iain.lane@canonical.com>
386 Remove USE(LOCKFREE_THREADSAFEREFCOUNTED) from Atomics.cpp since it is
388 https://bugs.webkit.org/show_bug.cgi?id=124502
390 Reviewed by Anders Carlsson.
394 2013-12-04 Ryosuke Niwa <rniwa@webkit.org>
396 Enable HTMLTemplateElement by default
397 https://bugs.webkit.org/show_bug.cgi?id=123851
399 Reviewed by Antti Koivisto.
401 * wtf/FeatureDefines.h:
403 2013-12-04 Dan Bernstein <mitz@apple.com>
405 Replace USE(SECURITY_FRAMEWORK) with finer-grained defines
406 https://bugs.webkit.org/show_bug.cgi?id=125242
408 Reviewed by Sam Weinig.
410 * wtf/Platform.h: Removed definitions of WTF_USE_SECURITY_FRAMEWORK, and defined
411 HAVE_SEC_IDENTITY and HAVE_SEC_KEYCHAIN.
413 2013-12-03 Joseph Pecoraro <pecoraro@apple.com>
415 Web Inspector: Push Remote Inspector debugging connection management into JavaScriptCore
416 https://bugs.webkit.org/show_bug.cgi?id=124613
418 Reviewed by Timothy Hatcher.
420 * wtf/ios/WebCoreThread.cpp:
421 * wtf/ios/WebCoreThread.h:
422 Expose WebThreadRun/WebThreadRunSync iOS methods defined in WebCore through
423 WTF so that JavaScriptCore can use it. Another such method already existed.
425 2013-12-03 Mark Lam <mark.lam@apple.com>
427 testapi test crashes on Windows in WTF::Vector<wchar_t,64,WTF::UnsafeVectorOverflow>::size().
428 https://bugs.webkit.org/show_bug.cgi?id=121972.
430 Reviewed by Brent Fulgham.
432 * wtf/OSAllocatorWin.cpp:
433 (WTF::OSAllocator::decommit):
434 (WTF::OSAllocator::releaseDecommitted):
435 - Added a check to ensure that the bytes to decommit / release is not 0.
436 On Windows, a 0 length passed to VirtualFree() has a special meaning,
437 and it's not "decommit / release nothing" as one would expect. Adding
438 this check makes OSAllocatorWin consistent with OSAllocatorPosix for
441 2013-12-02 Mark Lam <mark.lam@apple.com>
443 Build failure when disabling JIT, YARR_JIT, and ASSEMBLER.
444 https://bugs.webkit.org/show_bug.cgi?id=123809.
446 Reviewed by Geoffrey Garen.
449 - Ensure that the ASSEMBLER is enabled when the DISASSEMBLER is enabled.
451 2013-11-30 peavo@outlook.com <peavo@outlook.com>
453 [Win] Some JavaScript date tests are failing.
454 https://bugs.webkit.org/show_bug.cgi?id=124946
456 Reviewed by Brent Fulgham.
458 Use native Win32 api functions to compute Daylight saving time offset.
461 (WTF::UnixTimeToFileTime): Added method to calculate Win32 specific struct FILETIME from time_t value.
462 (WTF::calculateDSTOffset): Use native Win32 api functions to compute Daylight saving time offset.
464 2013-11-28 Thiago de Barros Lacerda <thiago.lacerda@openbossa.org>
466 Nix Upstream: Updating Nix WTF files
467 https://bugs.webkit.org/show_bug.cgi?id=124980
469 Reviewed by Csaba Osztrogonác.
471 Just to sync our private repo files and the trunk, as part of the upstream process.
473 * wtf/DisallowCType.h:
474 * wtf/PlatformNix.cmake:
475 * wtf/nix/FeatureDefinesNix.h:
476 * wtf/nix/PlatformNix.h:
477 * wtf/nix/RunLoopNix.cpp: Added.
479 2013-11-28 Antti Koivisto <antti@apple.com>
481 Remove feature: CSS variables
482 https://bugs.webkit.org/show_bug.cgi?id=114119
484 Reviewed by Andreas Kling.
486 * wtf/FeatureDefines.h:
488 2013-11-26 Filip Pizlo <fpizlo@apple.com>
490 Do bytecode validation as part of testing
491 https://bugs.webkit.org/show_bug.cgi?id=124913
493 Reviewed by Oliver Hunt.
495 * GNUmakefile.list.am:
496 * WTF.vcxproj/WTF.vcxproj:
497 * WTF.xcodeproj/project.pbxproj:
498 * wtf/CMakeLists.txt:
499 * wtf/FastBitVector.cpp: Added.
500 (WTF::FastBitVector::dump):
501 * wtf/FastBitVector.h:
502 (WTF::FastBitVector::resize):
503 (WTF::FastBitVector::bitCount):
504 (WTF::FastBitVector::arrayLength):
506 2013-11-27 Tamas Gergely <tgergely.u-szeged@partner.samsung.com>
508 Remove Sparc specific code.
509 https://bugs.webkit.org/show_bug.cgi?id=124941
511 Reviewed by Michael Saboff.
513 Sparc is not supported, remove leftover code.
518 2013-11-26 Marcelo Lira <marcelo.lira@openbossa.org>
520 Nix upstreaming - Adding build files and supporting scripts
521 https://bugs.webkit.org/show_bug.cgi?id=118367
523 Reviewed by Ryosuke Niwa.
525 * wtf/FeatureDefines.h:
527 * wtf/PlatformNix.cmake: Added.
529 2013-11-26 Drew Yao <ayao@apple.com>
531 ASSERT_WITH_SECURITY_IMPLICATION should crash in a distinct way.
532 https://bugs.webkit.org/show_bug.cgi?id=124757
534 Change ASSERT_WITH_SECURITY_IMPLICATION to access a different address from CRASH()
535 in order to help screen fuzzing bugs.
537 Reviewed by Brent Fulgham.
539 * wtf/Assertions.cpp:
542 2013-11-24 Tim Horton <timothy_horton@apple.com>
544 Upstream USE(IOSURFACE) from the iOS port
545 https://bugs.webkit.org/show_bug.cgi?id=124814
547 Reviewed by Sam Weinig.
549 Some code guarded by USE(IOSURFACE) was recently upstreamed,
550 but not the definition of WTF_USE_IOSURFACE itself.
554 2013-11-23 Xabier Rodriguez Calvar <calvaris@igalia.com>
556 [GStreamer] Remove 0.10 codepath
557 https://bugs.webkit.org/show_bug.cgi?id=124534
559 Reviewed by Philippe Normand.
561 * wtf/Platform.h: Removed macro for GStreamer 1.0 as it is the
564 2013-11-21 Peter Molnar <pmolnar.u-szeged@partner.samsung.com>
566 Remove ENABLE_WORKERS
567 https://bugs.webkit.org/show_bug.cgi?id=105784
569 Reviewed by Darin Adler.
571 * wtf/FeatureDefines.h:
572 * wtf/nix/FeatureDefinesNix.h:
574 2013-11-21 Mark Rowe <mrowe@apple.com>
576 <https://webkit.org/b/124701> Fix an error in a few Xcode configuration setting files.
578 Reviewed by Alexey Proskuryakov.
580 * Configurations/Base.xcconfig:
582 2013-11-20 Mark Lam <mark.lam@apple.com>
584 Introducing VMEntryScope to update the VM stack limit.
585 https://bugs.webkit.org/show_bug.cgi?id=124634.
587 Reviewed by Geoffrey Garen.
591 (WTF::StackBounds::StackBounds):
593 2013-11-18 Filip Pizlo <fpizlo@apple.com>
595 Allow the FTL debug dumps to include the new size field
596 https://bugs.webkit.org/show_bug.cgi?id=124479
598 Reviewed by Mark Hahnenberg.
600 * wtf/PrintStream.cpp:
601 (WTF::printInternal):
604 2013-11-17 Jer Noble <jer.noble@apple.com>
606 [WTF] Media time should not have a constructor which accepts a single int or float.
607 https://bugs.webkit.org/show_bug.cgi?id=124470
609 Having a constructor taking a single number value, as it's very easy to accidentially mis-
610 initialize a MediaTime with a double (automatically casted to a int64_t).
612 Reviewed by Eric Carlson.
616 2013-11-18 Csaba Osztrogonác <ossy@webkit.org>
618 URTBF after r159432 to make WinCairo build happy.
620 * wtf/text/WTFString.h:
622 2013-11-18 Carlos Garcia Campos <cgarcia@igalia.com>
624 Unreviewed. Fix make distcheck.
626 * GNUmakefile.list.am: Add missing header file.
628 2013-11-16 Alexey Proskuryakov <ap@apple.com>
630 Use uint8_t vectors for WebCrypto data
631 https://bugs.webkit.org/show_bug.cgi?id=124466
633 Reviewed by Sam Weinig.
635 Binary data can be UTF-8, in which case "char*" is idiomatic, or it can be arbitrary
636 binary data, in which case "uint8_t*" is more common.
638 Changed encode functions that took "const char *" to "const void*", and decode
639 functions that took "Vector<char>&" now take an adapter class.
641 The adapter relies on Vector<char> and Vector<uint8_t> classes having an identical layout.
643 * wtf/text/Base64.cpp:
645 (WTF::base64URLEncode):
646 (WTF::base64DecodeInternal):
648 (WTF::base64URLDecode):
650 (WTF::SignedOrUnsignedCharVectorAdapter):
651 (WTF::ConstSignedOrUnsignedCharVectorAdapter):
653 (WTF::base64URLEncode):
655 2013-11-15 Alexey Proskuryakov <ap@apple.com>
657 Support exporting symmetric keys as JWK
658 https://bugs.webkit.org/show_bug.cgi?id=124442
660 Reviewed by Sam Weinig.
662 Base64URL encoding doesn't use '=' padding, and doesn't need any other options.
663 Added this mode for encode, and removed policy arguments from exposed functions.
665 * wtf/text/Base64.cpp:
666 (WTF::base64EncodeInternal):
667 (WTF::base64URLEncode):
668 (WTF::base64URLDecode):
670 (WTF::base64URLEncode):
672 2013-11-15 Mark Hahnenberg <mhahnenberg@apple.com>
674 Remove VTableSpectrum
675 https://bugs.webkit.org/show_bug.cgi?id=124427
677 Reviewed by Filip Pizlo.
681 2013-11-15 Jer Noble <jer.noble@apple.com>
683 MediaTime addition and subtraction operators have errors when the rhs is infinite.
684 https://bugs.webkit.org/show_bug.cgi?id=124413
686 Reviewed by Eric Carlson.
688 Correctly account for infinities that can occur on the right-hand side of addition or
689 subtraction operators.
692 (WTF::MediaTime::operator+):
693 (WTF::MediaTime::operator-):
695 2013-11-14 Oliver Hunt <oliver@apple.com>
697 Make CLoop easier to build, and make it work
698 https://bugs.webkit.org/show_bug.cgi?id=124359
700 Reviewed by Geoffrey Garen.
702 Make building with the CLoop forcibly enabled manually
707 2013-11-14 Andreas Kling <akling@apple.com>
709 FontDescription copies should share families list, not duplicate it.
710 <https://webkit.org/b/124338>
712 Add RefCountedArray::operator==.
714 Reviewed by Antti Koivisto.
716 2013-11-13 Anders Carlsson <andersca@apple.com>
718 Add a Vector constructor that takes an std::initializer_list
719 https://bugs.webkit.org/show_bug.cgi?id=124287
721 Reviewed by Antti Koivisto.
725 (WTF::Vector::Vector):
727 2013-11-12 Brent Fulgham <bfulgham@apple.com>
729 [Win] Unreviewed gardening.
731 * WTF.vcxproj/WTF.vcxproj.filters: Tidy up filters so files show up
732 in their proper directories.
734 2013-11-12 Alex Christensen <achristensen@webkit.org>
736 Build GStreamer files on Windows.
737 https://bugs.webkit.org/show_bug.cgi?id=124180
739 Reviewed by Brent Fulgham.
741 * WTF.vcxproj/WTF.vcxproj:
742 * WTF.vcxproj/WTF.vcxproj.filters:
743 * WTF.vcxproj/copy-files.cmd:
744 Include gobject files in WinCairo build.
746 2013-11-09 Filip Pizlo <fpizlo@apple.com>
748 Switch FTL GetById/PutById IC's over to using AnyRegCC
749 https://bugs.webkit.org/show_bug.cgi?id=124094
751 Reviewed by Sam Weinig.
753 I needed to add another set operation, namely filter(), which is an in-place set
757 (WTF::BitVector::filterSlow):
759 (WTF::BitVector::filter):
761 2013-11-10 Ryuan Choi <ryuan.choi@samsung.com>
763 [EFL] Build break on Ubuntu 13.10
764 https://bugs.webkit.org/show_bug.cgi?id=124131
766 Reviewed by Gyuyoung Kim.
768 Turned DisallowCType macros off on EFL port because gtest-internal.h uses isspace().
770 * wtf/DisallowCType.h: Added !PLATFORM(EFL) guard.
772 2013-11-09 Patrick Gansterer <paroga@webkit.org>
774 Move RunLoop from WebCore to WTF
775 https://bugs.webkit.org/show_bug.cgi?id=116606
777 Reviewed by Anders Carlsson.
779 With this change RunLoop can be used in JavaScriptCore too.
781 * GNUmakefile.list.am:
782 * WTF.vcxproj/WTF.vcxproj:
783 * WTF.xcodeproj/project.pbxproj:
784 * wtf/CMakeLists.txt:
785 * wtf/PlatformBlackBerry.cmake:
786 * wtf/PlatformEfl.cmake:
787 * wtf/PlatformGTK.cmake:
788 * wtf/PlatformWin.cmake:
789 * wtf/RunLoop.cpp: Renamed from Source/WebCore/platform/RunLoop.cpp.
790 (WTF::RunLoop::Holder::Holder):
791 (WTF::RunLoop::Holder::runLoop):
792 (WTF::RunLoop::initializeMainRunLoop):
793 (WTF::RunLoop::current):
794 (WTF::RunLoop::main):
795 (WTF::RunLoop::isMain):
796 (WTF::RunLoop::performWork):
797 (WTF::RunLoop::dispatch):
798 * wtf/RunLoop.h: Renamed from Source/WebCore/platform/RunLoop.h.
799 (WTF::RunLoop::TimerBase::startRepeating):
800 (WTF::RunLoop::TimerBase::startOneShot):
801 (WTF::RunLoop::TimerBase::isRepeating):
802 (WTF::RunLoop::Timer::Timer):
803 (WTF::RunLoop::Timer::fired):
804 * wtf/blackberry/RunLoopBlackBerry.cpp: Renamed from Source/WebCore/platform/blackberry/RunLoopBlackBerry.cpp.
805 (WTF::RunLoop::RunLoop):
806 (WTF::RunLoop::~RunLoop):
807 (WTF::RunLoop::wakeUp):
808 * wtf/cf/RunLoopCF.cpp: Renamed from Source/WebCore/platform/cf/RunLoopCF.cpp.
809 (WTF::RunLoop::performWork):
810 (WTF::RunLoop::RunLoop):
811 (WTF::RunLoop::~RunLoop):
812 (WTF::RunLoop::runForDuration):
813 (WTF::RunLoop::wakeUp):
815 (WTF::RunLoop::stop):
816 (WTF::RunLoop::TimerBase::timerFired):
817 (WTF::RunLoop::TimerBase::TimerBase):
818 (WTF::RunLoop::TimerBase::~TimerBase):
819 (WTF::RunLoop::TimerBase::start):
820 (WTF::RunLoop::TimerBase::stop):
821 (WTF::RunLoop::TimerBase::isActive):
822 * wtf/efl/RunLoopEfl.cpp: Renamed from Source/WebCore/platform/efl/RunLoopEfl.cpp.
823 (WTF::RunLoop::RunLoop):
824 (WTF::RunLoop::~RunLoop):
826 (WTF::RunLoop::stop):
827 (WTF::RunLoop::wakeUpEvent):
828 (WTF::RunLoop::wakeUp):
829 (WTF::RunLoop::TimerBase::TimerBase):
830 (WTF::RunLoop::TimerBase::~TimerBase):
831 (WTF::RunLoop::TimerBase::timerFired):
832 (WTF::RunLoop::TimerBase::start):
833 (WTF::RunLoop::TimerBase::stop):
834 (WTF::RunLoop::TimerBase::isActive):
835 * wtf/gtk/RunLoopGtk.cpp: Renamed from Source/WebCore/platform/gtk/RunLoopGtk.cpp.
836 (WTF::RunLoop::RunLoop):
837 (WTF::RunLoop::~RunLoop):
839 (WTF::RunLoop::innermostLoop):
840 (WTF::RunLoop::pushNestedMainLoop):
841 (WTF::RunLoop::popNestedMainLoop):
842 (WTF::RunLoop::stop):
843 (WTF::RunLoop::queueWork):
844 (WTF::RunLoop::wakeUp):
845 (WTF::RunLoop::TimerBase::TimerBase):
846 (WTF::RunLoop::TimerBase::~TimerBase):
847 (WTF::RunLoop::TimerBase::clearTimerSource):
848 (WTF::RunLoop::TimerBase::timerFiredCallback):
849 (WTF::RunLoop::TimerBase::start):
850 (WTF::RunLoop::TimerBase::stop):
851 (WTF::RunLoop::TimerBase::isActive):
852 * wtf/win/RunLoopWin.cpp: Renamed from Source/WebCore/platform/win/RunLoopWin.cpp.
853 (WTF::RunLoop::RunLoopWndProc):
854 (WTF::RunLoop::wndProc):
856 (WTF::RunLoop::stop):
857 (WTF::RunLoop::registerRunLoopMessageWindowClass):
858 (WTF::RunLoop::RunLoop):
859 (WTF::RunLoop::~RunLoop):
860 (WTF::RunLoop::wakeUp):
861 (WTF::RunLoop::TimerBase::timerFired):
862 (WTF::generateTimerID):
863 (WTF::RunLoop::TimerBase::TimerBase):
864 (WTF::RunLoop::TimerBase::~TimerBase):
865 (WTF::RunLoop::TimerBase::start):
866 (WTF::RunLoop::TimerBase::stop):
867 (WTF::RunLoop::TimerBase::isActive):
869 2013-11-08 Alexey Proskuryakov <ap@apple.com>
871 Make base64url decoding actually work
872 https://bugs.webkit.org/show_bug.cgi?id=124050
874 Reviewed by Sam Weinig.
876 * wtf/text/Base64.cpp: (WTF::base64DecodeInternal): Don't hardcode knowledge about
877 alphabet, put it into the map.
879 2013-11-07 Denis Nomiyama <d.nomiyama@samsung.com>
881 [GTK] Glyphs in vertical text tests are rotated 90 degrees clockwise
882 https://bugs.webkit.org/show_bug.cgi?id=50619
884 Reviewed by Martin Robinson.
886 Enabled OPENTYPE_VERTICAL by default on GTK+ and EFL ports, which are
887 currently using Freetype.
891 2013-11-06 Daniel Bates <dabates@apple.com>
893 [iOS] Upstream Letterpress effect
894 https://bugs.webkit.org/show_bug.cgi?id=123932
896 Reviewed by Sam Weinig.
898 Add feature define ENABLE_LETTERPRESS disabled by default. We only enable
901 * wtf/FeatureDefines.h:
903 2013-11-06 Nick Diego Yamane <nick.yamane@openbossa.org>
905 Disable "unused local typedefs" warning for GCC 4.7
906 https://bugs.webkit.org/show_bug.cgi?id=123913
908 Reviewed by Martin Robinson.
910 That warning was actually introduced in gcc 4.7.0.
911 See: http://gcc.gnu.org/gcc-4.7/changes.html
915 2013-11-06 Daniel Bates <dabates@apple.com>
917 Add ENABLE(TEXT_SELECTION)
918 https://bugs.webkit.org/show_bug.cgi?id=123827
920 Reviewed by Ryosuke Niwa.
922 Enable selection painting by default on all ports except iOS.
924 * wtf/FeatureDefines.h:
926 2013-11-04 Alexey Proskuryakov <ap@apple.com>
928 Implement base64url encoding from RFC 4648
929 https://bugs.webkit.org/show_bug.cgi?id=123767
931 Reviewed by Sam Weinig.
933 No tests yet, will be covered by JWK tests for WebCrypto.
935 * wtf/text/Base64.cpp:
936 (WTF::base64EncodeInternal):
938 (WTF::base64URLEncode):
939 (WTF::base64DecodeInternal):
941 (WTF::base64URLDecode):
943 (WTF::base64URLEncode):
945 2013-11-04 Brent Fulgham <bfulgham@apple.com>
947 [Win] User VersionStamper for official builds
948 https://bugs.webkit.org/show_bug.cgi?id=123758
950 Reviewed by Tim Horton.
952 * WTF.vcxproj/WTFPostBuild.cmd: Add missing command to run VersionStamper.exe.
954 2013-11-01 Jer Noble <jer.noble@apple.com>
956 [PluginProxy] Add a setting to disable video plugin proxy support in HTMLMediaElement.
957 https://bugs.webkit.org/show_bug.cgi?id=123621
959 Reviewed by Eric Carlson.
961 Enable WTF_USE_AVFOUNDATION and add some HAVE_AVFOUNDATION_* defines
962 to replace the existing __MAC_OS_X_VERSION_MIN_REQUIRED macros in
963 MediaPlayerPrivateAVFoundationObjC.mm.
967 2013-11-02 Patrick Gansterer <paroga@webkit.org>
969 Fix compilation of DateMath.cpp with MSVC
970 https://bugs.webkit.org/show_bug.cgi?id=123680
972 Reviewed by Darin Adler.
975 (WTF::appendTwoDigitNumber): Help the compiler finding the
976 correct overload by casting the characters to LChar.
978 2013-11-02 Filip Pizlo <fpizlo@apple.com>
980 LLVM assertion failures should funnel into WTF's crash handling
981 https://bugs.webkit.org/show_bug.cgi?id=123682
983 Reviewed by Geoffrey Garen.
985 Give JSC some new toys to play with for crash handling.
987 * wtf/Assertions.cpp:
990 2013-11-02 Patrick Gansterer <paroga@webkit.org>
992 Fix UnicodeWchar after r157330.
993 https://bugs.webkit.org/show_bug.cgi?id=123668
995 Reviewed by Darin Adler.
997 * wtf/unicode/wchar/UnicodeWchar.cpp:
1002 * wtf/unicode/wchar/UnicodeWchar.h:
1007 2013-11-02 Andreas Kling <akling@apple.com>
1009 Make remaining StringImpl functions return PassRef.
1010 <https://webkit.org/b/123683>
1012 Okay, this seems to work well! Let's go all in and convert the
1013 remaining StringImpl functions to return PassRef<StringImpl> instead
1014 of PassRefPtr where we know that null is never returned.
1016 Reviewed by Anders Carlsson.
1018 2013-11-02 Andreas Kling <akling@apple.com>
1020 StringImpl::upper() should return PassRef.
1021 <https://webkit.org/b/123655>
1023 Make upper() return PassRef<StringImpl>. Spotted and removed some
1024 ref churning in implementations.
1026 Reviewed by Darin Adler.
1028 2013-11-01 Alexey Proskuryakov <ap@apple.com>
1030 Add WebCrypto AES-CBC
1031 https://bugs.webkit.org/show_bug.cgi?id=123647
1033 Reviewed by Anders Carlsson.
1035 * wtf/FixedArray.h: (WTF::FixedArray::data): Added a const version of the function.
1037 * wtf/Vector.h: Added a comment to Vector constructor about how it is different
1040 2013-11-01 Joseph Pecoraro <pecoraro@apple.com>
1042 Unreviewed extended attempt at Windows build fix after r158471.
1044 * wtf/text/cf/AtomicStringCF.cpp:
1045 * wtf/text/cf/StringCF.cpp:
1046 * wtf/text/cf/StringImplCF.cpp:
1048 2013-11-01 Joseph Pecoraro <pecoraro@apple.com>
1050 Unreviewed attempt at Windows build fix after r158471.
1052 * wtf/text/cf/AtomicStringCF.cpp:
1053 * wtf/text/cf/StringCF.cpp:
1054 * wtf/text/cf/StringImplCF.cpp:
1056 2013-11-01 Andreas Kling <akling@apple.com>
1058 Make more StringImpl construction helpers return PassRef.
1059 <https://webkit.org/b/123652>
1061 Tweak another handful of StringImpl constructor functions to return
1062 PassRef<StringImpl> instead of PassRefPtr.
1064 Reviewed by Anders Carlsson.
1066 2013-11-01 Andreas Kling <akling@apple.com>
1068 Neuter WTF_MAKE_FAST_ALLOCATED in GLOBAL_FASTMALLOC_NEW builds.
1069 <https://webkit.org/b/123639>
1071 When building with GLOBAL_FASTMALLOC_NEW, we don't need to expand
1072 operator new/delete overrides in every class.
1074 This change makes allocations group up nicely in Instruments,
1075 instead of being split between "WTF::fastMalloc" and "operator new"
1076 depending on whether the class had WTF_MAKE_FAST_ALLOCATED.
1078 Reviewed by Anders Carlsson.
1080 2013-11-01 Joseph Pecoraro <pecoraro@apple.com>
1082 Move CF/Mac WTF String implementations down into WTF
1083 https://bugs.webkit.org/show_bug.cgi?id=123635
1085 Reviewed by Sam Weinig.
1087 * WTF.vcxproj/WTF.vcxproj:
1088 * WTF.vcxproj/WTF.vcxproj.filters:
1089 * WTF.xcodeproj/project.pbxproj:
1090 * wtf/text/AtomicString.h:
1091 * wtf/text/StringImpl.h:
1092 * wtf/text/WTFString.h:
1093 * wtf/text/cf/AtomicStringCF.cpp: Renamed from Source/WebCore/platform/text/cf/AtomicStringCF.cpp.
1094 (WTF::AtomicString::add):
1095 * wtf/text/cf/StringCF.cpp: Renamed from Source/WebCore/platform/text/cf/StringCF.cpp.
1096 (WTF::String::String):
1097 (WTF::String::createCFString):
1098 * wtf/text/cf/StringImplCF.cpp: Renamed from Source/WebCore/platform/text/cf/StringImplCF.cpp.
1099 (garbageCollectionEnabled):
1100 (WTF::StringWrapperCFAllocator::retain):
1101 (WTF::StringWrapperCFAllocator::release):
1102 (WTF::StringWrapperCFAllocator::copyDescription):
1103 (WTF::StringWrapperCFAllocator::allocate):
1104 (WTF::StringWrapperCFAllocator::reallocate):
1105 (WTF::StringWrapperCFAllocator::deallocateOnMainThread):
1106 (WTF::StringWrapperCFAllocator::deallocate):
1107 (WTF::StringWrapperCFAllocator::preferredSize):
1108 (WTF::StringWrapperCFAllocator::create):
1109 (WTF::StringWrapperCFAllocator::allocator):
1110 (WTF::StringImpl::createCFString):
1111 * wtf/text/mac/StringImplMac.mm: Renamed from Source/WebCore/platform/text/mac/StringImplMac.mm.
1112 (WTF::StringImpl::operator NSString *):
1113 * wtf/text/mac/StringMac.mm: Renamed from Source/WebCore/platform/text/mac/StringMac.mm.
1114 (WTF::String::String):
1116 2013-11-01 Emilio Pozuelo Monfort <pochu27@gmail.com>
1119 https://bugs.webkit.org/show_bug.cgi?id=123625
1121 Original patch from John David Anglin <dave.anglin@bell.net>
1123 Reviewed by Darin Adler.
1128 2013-11-01 Patrick Gansterer <paroga@webkit.org>
1130 Buildfix for !USE(ICU_UNICODE) after 156968.
1132 * wtf/unicode/CollatorDefault.cpp:
1133 (WTF::Collator::userDefault):
1135 2013-10-30 Oliver Hunt <oliver@apple.com>
1137 Implement basic ES6 Math functions
1138 https://bugs.webkit.org/show_bug.cgi?id=123536
1140 Reviewed by Michael Saboff.
1142 Add basic implementations of necessary methods to MathExtras to
1143 deal with MSVC not supplying them
1153 2013-10-30 Commit Queue <commit-queue@webkit.org>
1155 Unreviewed, rolling out r158299.
1156 http://trac.webkit.org/changeset/158299
1157 https://bugs.webkit.org/show_bug.cgi?id=123558
1159 caused assertion failures in fast/canvas/canvas-color-
1160 serialization.html and fast/forms/input-text-paste-
1161 maxlength.html (Requested by rniwa on #webkit).
1163 * wtf/text/StringStatics.cpp:
1164 (WTF::StringImpl::empty):
1166 2013-10-30 Ryosuke Niwa <rniwa@webkit.org>
1168 Remove code for Mac Lion
1169 https://bugs.webkit.org/show_bug.cgi?id=123542
1171 Reviewed by Anders Carlsson.
1175 2013-10-30 Peter Molnar <pmolnar.u-szeged@partner.samsung.com>
1177 Remove PCRE workaround.
1178 https://bugs.webkit.org/show_bug.cgi?id=123265
1180 Reviewed by Brent Fulgham.
1182 * wtf/text/StringStatics.cpp:
1183 (WTF::StringImpl::empty):
1185 2013-10-30 peavo@outlook.com <peavo@outlook.com>
1187 [Win] Compile errors when enabling DFG JIT.
1188 https://bugs.webkit.org/show_bug.cgi?id=120998
1190 Reviewed by Brent Fulgham.
1192 * wtf/CompilationThread.cpp: Use new ThreadingOnce class instead of pthread_once.
1193 (WTF::initializeCompilationThreads):
1194 * wtf/ThreadingOnce.h: Added ThreadingOnce class encapsulating pthread_once functionality.
1195 (WTF::ThreadingOnce::ThreadingOnce):
1196 (WTF::ThreadingOnce::~ThreadingOnce):
1197 (WTF::ThreadingOnce::callOnce):
1198 * wtf/text/CString.h: Export needed symbols.
1200 2013-10-30 Alex Christensen <achristensen@webkit.org>
1202 Disabled JIT on Win64.
1203 https://bugs.webkit.org/show_bug.cgi?id=122472
1205 Reviewed by Geoffrey Garen.
1208 Disabled JIT on Win64.
1210 2013-10-29 Andreas Kling <akling@apple.com>
1212 StringImpl::isolatedCopy() should return PassRef.
1213 <https://webkit.org/b/123484>
1215 Make isolatedCopy() return a PassRef<StringImpl>.
1217 Reviewed by Anders Carlsson.
1219 2013-10-29 Jer Noble <jer.noble@apple.com>
1221 [MSE] [Mac] Enable MediaSource on the Mac
1222 https://bugs.webkit.org/show_bug.cgi?id=122484
1224 Reviewed by Darin Adler.
1226 Enable ENABLE_MEDIA_SOURCE.
1228 * wtf/FeatureDefines.h:
1229 * wtf/Platform.h: Force a clean build.
1231 2013-10-29 Andreas Kling <akling@apple.com>
1233 StringImpl::adopt() should return PassRef.
1234 <https://webkit.org/b/123456>
1236 Make the StringImpl::adopt() functions return a PassRef<StringImpl>.
1238 Reviewed by Anders Carlsson.
1240 2013-10-29 Jinwoo Song <jinwoo7.song@samsung.com>
1242 Re-enable simple line layout for EFL
1243 https://bugs.webkit.org/show_bug.cgi?id=123402
1245 Reviewed by Antti Koivisto.
1247 * wtf/FeatureDefines.h: Enable 8-bit TextRun support for EFL port.
1249 2013-10-28 Anders Carlsson <andersca@apple.com>
1251 RunLoop::dispatch should take an std::function
1252 https://bugs.webkit.org/show_bug.cgi?id=123407
1254 Reviewed by Andreas Kling.
1256 * wtf/FunctionDispatcher.h:
1258 2013-10-28 Andreas Kling <akling@apple.com>
1260 RenderElement::m_style should be a Ref.
1261 <https://webkit.org/b/123401>
1263 Added a Ref::replace() so we can Indiana Jones the new style in
1264 RenderElement::setStyle() while keeping a handle on the old style
1267 Reviewed by Antti Koivisto.
1269 2013-10-28 Carlos Garcia Campos <cgarcia@igalia.com>
1271 Unreviewed. Fix make distcheck.
1273 * GNUmakefile.list.am: Remove unexistent file from compilation.
1275 2013-10-28 Bastien Nocera <hadess@hadess.net>
1277 Replace 0 timeouts g_timeout_add() by g_idle_add()
1278 https://bugs.webkit.org/show_bug.cgi?id=123260
1280 Reviewed by Carlos Garcia Campos.
1282 A zero timeout should be equivalent to using g_idle_add_full(G_PRIORITY_DEFAULT, ...)
1283 without the nagging feeling that the wrong API was used.
1285 * wtf/gtk/MainThreadGtk.cpp: Use g_idle_add() instead
1287 (WTF::scheduleDispatchFunctionsOnMainThread):
1289 2013-10-28 Zan Dobersek <zdobersek@igalia.com>
1291 Re-enable simple line layout for GTK
1292 https://bugs.webkit.org/show_bug.cgi?id=123388
1294 Reviewed by Andreas Kling.
1296 * wtf/FeatureDefines.h: Enable the 8-bit TextRun support for the GTK port.
1298 2013-10-25 Joseph Pecoraro <pecoraro@apple.com>
1300 Upstream ENABLE(REMOTE_INSPECTOR) and enable on iOS and Mac
1301 https://bugs.webkit.org/show_bug.cgi?id=123111
1303 Reviewed by Timothy Hatcher.
1305 * wtf/FeatureDefines.h:
1307 2013-10-25 Jer Noble <jer.noble@apple.com>
1309 [WTF] Add a multiplication operator (and a few others) to MediaTime
1310 https://bugs.webkit.org/show_bug.cgi?id=123137
1312 Reviewed by Eric Carlson.
1314 Add a multiplication operator and an inequality operator to the
1315 MediaTime class for use by MSE.
1317 * wtf/MediaTime.cpp:
1318 (WTF::signum): Moved to top of file.
1319 (WTF::MediaTime::operator*): Added.
1320 (WTF::MediaTime::operator!=): Added.
1322 (WTF::operator*): Added non-class version of operator*.
1324 2013-10-24 Jer Noble <jer.noble@apple.com>
1326 [Mac] Add helper methods to convert CMTime <--> MediaTime
1327 https://bugs.webkit.org/show_bug.cgi?id=123285
1329 Reviewed by Eric Carlson.
1331 Add a #ifdef header_h protector.
1335 2013-10-24 Mark Rowe <mrowe@apple.com>
1337 Remove references to OS X 10.7 from Xcode configuration settings.
1339 Now that we're not building for OS X 10.7 they're no longer needed.
1341 Reviewed by Anders Carlsson.
1343 * Configurations/Base.xcconfig:
1344 * Configurations/DebugRelease.xcconfig:
1346 2013-10-24 Mark Rowe <mrowe@apple.com>
1348 <rdar://problem/15312643> Prepare for the mysterious future.
1350 Reviewed by David Kilzer.
1352 * Configurations/Base.xcconfig:
1353 * Configurations/DebugRelease.xcconfig:
1355 2013-10-24 Commit Queue <commit-queue@webkit.org>
1357 Unreviewed, rolling out r157931.
1358 http://trac.webkit.org/changeset/157931
1359 https://bugs.webkit.org/show_bug.cgi?id=123284
1361 Seems to have caused a lot of assertions on debug bots
1362 (Requested by ap on #webkit).
1364 * wtf/text/StringStatics.cpp:
1365 (WTF::StringImpl::empty):
1367 2013-10-24 Peter Molnar <pmolnar.u-szeged@partner.samsung.com>
1369 Remove PCRE workaround.
1370 https://bugs.webkit.org/show_bug.cgi?id=123265
1372 Reviewed by Darin Adler.
1374 * wtf/text/StringStatics.cpp:
1375 (WTF::StringImpl::empty):
1377 2013-10-24 Peter Molnar <pmolnar.u-szeged@partner.samsung.com>
1379 Remove Clang workaround.
1380 https://bugs.webkit.org/show_bug.cgi?id=123262
1382 Reviewed by Anders Carlsson.
1384 * wtf/CheckedArithmetic.h:
1385 (WTF::Checked::Checked):
1387 2013-10-24 Ryuan Choi <ryuan.choi@samsung.com>
1389 [EFL] Build break with latest EFL 1.8 libraries.
1390 https://bugs.webkit.org/show_bug.cgi?id=123245
1392 Reviewed by Gyuyoung Kim.
1394 After fixed build break on EFL 1.8 at r138326, EFL libraries are changed
1395 Eo typedef and splitted header files which contain version macro.
1397 * wtf/OwnPtrCommon.h: Changed Eo typedef.
1398 * wtf/efl/RefPtrEfl.h: Ditto.
1400 2013-10-24 Carlos Garcia Campos <cgarcia@igalia.com>
1402 [GObject bindings] Make EventTarget interface introspectable
1403 https://bugs.webkit.org/show_bug.cgi?id=77835
1405 Reviewed by Gustavo Noronha Silva.
1407 Add support for use GRefPtr with GClosure.
1409 * wtf/gobject/GRefPtr.cpp:
1412 * wtf/gobject/GRefPtr.h:
1413 * wtf/gobject/GTypedefs.h:
1415 2013-10-23 Anders Carlsson <andersca@apple.com>
1417 Remove USE(LOCKFREE_THREADSAFEREFCOUNTED)
1418 https://bugs.webkit.org/show_bug.cgi?id=123228
1420 Reviewed by Geoffrey Garen.
1422 All ports support USE(LOCKFREE_THREADSAFEREFCOUNTED) now and taking a lock on every ref/deref seems bad.
1425 * wtf/ThreadSafeRefCounted.h:
1426 (WTF::ThreadSafeRefCountedBase::ref):
1427 (WTF::ThreadSafeRefCountedBase::refCount):
1428 (WTF::ThreadSafeRefCountedBase::derefBase):
1430 2013-10-23 Anders Carlsson <andersca@apple.com>
1433 https://bugs.webkit.org/show_bug.cgi?id=123226
1435 Reviewed by Dan Bernstein.
1437 HAVE_XPC has been true on Mac since Lion, so remove it.
1441 2013-10-23 Andreas Kling <akling@apple.com>
1443 Make more StringImpl construction functions return PassRef.
1444 <https://webkit.org/b/123203>
1446 Knock out a couple more of the StringImpl construction helpers that
1447 always return a non-null StringImpl.
1449 Reviewed by Antti Koivisto.
1451 2013-10-22 Filip Pizlo <fpizlo@apple.com>
1453 FTL should be able to do some simple inline caches using LLVM patchpoints
1454 https://bugs.webkit.org/show_bug.cgi?id=123164
1456 Reviewed by Mark Hahnenberg.
1458 This needed some better bitvector support, like merging (|=), excluding (&=~),
1459 hashing, and bit counting.
1461 * wtf/BitVector.cpp:
1462 (WTF::BitVector::setSlow):
1463 (WTF::BitVector::excludeSlow):
1464 (WTF::BitVector::bitCountSlow):
1465 (WTF::BitVector::equalsSlowCase):
1466 (WTF::BitVector::hashSlowCase):
1467 (WTF::BitVector::dump):
1469 (WTF::BitVector::merge):
1470 (WTF::BitVector::exclude):
1471 (WTF::BitVector::bitCount):
1472 (WTF::BitVector::BitVector):
1473 (WTF::BitVector::isEmptyValue):
1474 (WTF::BitVector::isDeletedValue):
1475 (WTF::BitVector::isEmptyOrDeletedValue):
1476 (WTF::BitVector::operator==):
1477 (WTF::BitVector::hash):
1478 (WTF::BitVectorHash::hash):
1479 (WTF::BitVectorHash::equal):
1481 (WTF::CustomHashTraits::constructDeletedValue):
1482 (WTF::CustomHashTraits::isDeletedValue):
1483 (WTF::CustomHashTraits::emptyValue):
1484 (WTF::CustomHashTraits::isEmptyValue):
1485 * wtf/StdLibExtras.h:
1488 2013-10-23 Allan Sandfeld Jensen <allan.jensen@digia.com>
1490 Clean-up in Atomics.h
1491 https://bugs.webkit.org/show_bug.cgi?id=123207
1493 Reviewed by Anders Carlsson.
1495 Atomics.h has two confusing and bit-rotted ifdefs with comments.
1497 The first about CPU(SPARC64) was rendered obsolete when we switched
1498 from __exchange_and_add to __sync_add_and_fetch.
1500 The second was caused by a wrong definition that apparently only
1501 caused trouble on GCC.
1505 2013-10-22 Andreas Kling <akling@apple.com>
1507 StringImpl::lower() should return a PassRef.
1508 <https://webkit.org/b/123190>
1510 Test the waters and hack enough of StringImpl to be able to return
1511 a PassRef<StringImpl> from lower().
1513 Also gave String a constructor that takes a PassRef<StringImpl>.
1515 Reviewed by Antti Koivisto.
1517 2013-10-22 Commit Queue <commit-queue@webkit.org>
1519 Unreviewed, rolling out r157835.
1520 http://trac.webkit.org/changeset/157835
1521 https://bugs.webkit.org/show_bug.cgi?id=123192
1523 broke 32-bit builds (Requested by smfr on #webkit).
1525 * wtf/MediaTime.cpp:
1529 2013-10-22 Jer Noble <jer.noble@apple.com>
1531 [WTF] Add a multiplication operator (and a few others) to MediaTime
1532 https://bugs.webkit.org/show_bug.cgi?id=123137
1534 Reviewed by Eric Carlson.
1536 Add a multiplication operator and an inequality operator to the
1537 MediaTime class for use by MSE.
1539 * wtf/MediaTime.cpp:
1540 (WTF::signum): Moved to top of file.
1541 (WTF::MediaTime::operator*): Added.
1542 (WTF::MediaTime::operator!=): Added.
1544 (WTF::operator*): Added non-class version of operator*.
1546 2013-10-21 Gyuyoung Kim <gyuyoung.kim@samsung.com>
1548 Make TYPE_CASTS_BASE more flexible
1549 https://bugs.webkit.org/show_bug.cgi?id=122951
1551 Reviewed by Andreas Kling.
1553 TYPE_CASTS_BASE is being used by node|element type casts. However, it is difficult
1554 to be used by other type casts. For instance, CSSValue, Accessibility and so on.
1555 This patch modifies TYPE_CASTS_BASE which can support other type casts.
1557 Besides TYPE_CASTS_BASE body is moved from node.h to Assertions.h.
1561 2013-10-20 Filip Pizlo <fpizlo@apple.com>
1563 StructureStubInfo's usedRegisters set should be able to track all registers, not just the ones that our JIT's view as temporaries
1564 https://bugs.webkit.org/show_bug.cgi?id=123076
1566 Reviewed by Sam Weinig.
1568 Teach BitVector how to efficiently merge (i.e. bitvector |=).
1570 * wtf/BitVector.cpp:
1571 (WTF::BitVector::mergeSlow):
1573 (WTF::BitVector::merge):
1574 (WTF::BitVector::cleanseInlineBits):
1576 2013-10-19 Jer Noble <jer.noble@apple.com>
1578 Unreviewed roll out of r157695; broke Mac builds.
1580 * wtf/FeatureDefines.h:
1582 2013-10-07 Jer Noble <jer.noble@apple.com>
1584 [MSE] [Mac] Enable MediaSource on the Mac
1585 https://bugs.webkit.org/show_bug.cgi?id=122484
1587 Reviewed by Darin Adler.
1589 Enable ENABLE_MEDIA_SOURCE.
1591 * wtf/FeatureDefines.h:
1593 2013-10-19 Andreas Kling <akling@apple.com>
1595 RefPtr::releaseNonNull() incorrectly increments the refcount.
1596 <https://webkit.org/b/123063>
1598 Make releaseNonNull() use adoptRef(T&), mirroring release().
1600 Reviewed by Anders Carlsson.
1602 2013-10-18 Andreas Kling <akling@apple.com>
1604 Start passing RenderStyle around with PassRef.
1605 <https://webkit.org/b/123051>
1607 Added some new PassRef tricks to make this patch possible.
1609 Reviewed by Darin Adler.
1612 (WTF::PassRef::get):
1614 Added a get() helper to facilitate writing functions that
1615 construct a new object and call some functions on it before
1618 (WTF::PassRef::dropRef):
1620 This will deref() the referenced object and mark the PassRef
1621 as "passed." This is used in code paths where the PassRef is
1622 going to go out of scope with nobody to take it over.
1624 (WTF::PassRef::leakRef):
1626 Renamed takeReference() to leakRef() and made it public so
1627 we don't have to awkwardly sink the PassRef into a Ref for
1631 (WTF::RefPtr::releaseNonNull):
1633 Added RefPtr::releaseNonNull() for a convenient way of creating
1634 a PassRef<T> from a RefPtr<T>. This function may only be called
1635 if the RefPtr is known to be non-null.
1637 2013-10-18 Filip Pizlo <fpizlo@apple.com>
1639 A CodeBlock's StructureStubInfos shouldn't be in a Vector that we search using code origins and machine code PCs
1640 https://bugs.webkit.org/show_bug.cgi?id=122940
1642 Reviewed by Oliver Hunt.
1644 * GNUmakefile.list.am:
1645 * WTF.vcxproj/WTF.vcxproj:
1646 * WTF.xcodeproj/project.pbxproj:
1647 * wtf/BagToHashMap.h: Added.
1649 * wtf/CMakeLists.txt:
1651 2013-10-18 Anders Carlsson <andersca@apple.com>
1653 Remove spaces between template angle brackets
1654 https://bugs.webkit.org/show_bug.cgi?id=123040
1656 Reviewed by Andreas Kling.
1659 * wtf/CheckedArithmetic.h:
1660 * wtf/Compression.h:
1663 * wtf/HashFunctions.h:
1664 * wtf/HashIterators.h:
1667 * wtf/ListHashSet.h:
1669 * wtf/RefCountedLeakCounter.cpp:
1671 * wtf/SentinelLinkedList.h:
1673 * wtf/SizeLimits.cpp:
1674 * wtf/StreamBuffer.h:
1676 * wtf/VectorTraits.h:
1678 (WTF::WeakReference::create):
1679 (WTF::WeakReference::createUnbound):
1680 (WTF::WeakPtr::WeakPtr):
1681 (WTF::WeakPtrFactory::WeakPtrFactory):
1682 * wtf/text/AtomicString.cpp:
1683 (WTF::AtomicString::add):
1685 * wtf/text/StringConcatenate.h:
1686 * wtf/text/StringImpl.h:
1687 * wtf/text/StringOperators.h:
1690 2013-10-18 Brendan Long <b.long@cablelabs.com>
1692 [GStreamer][GTK] Add GRefPtr::outPtr()
1693 https://bugs.webkit.org/show_bug.cgi?id=122996
1695 Reviewed by Philippe Normand.
1697 * wtf/gobject/GRefPtr.h:
1698 (WTF::GRefPtr::outPtr): Added.
1700 2013-10-17 Geoffrey Garen <ggaren@apple.com>
1702 Tidied up the Vector<T> move constructor
1703 https://bugs.webkit.org/show_bug.cgi?id=122998
1705 Reviewed by Anders Carlsson.
1708 (WTF::::Vector): Don't call swap() "weird". It's the way most std types
1709 implement move constructors.
1711 Do inline this function, so the compiler can optimize away a logical
1712 move into a physical no-op.
1714 2013-10-16 Filip Pizlo <fpizlo@apple.com>
1716 Introduce WTF::Bag and start using it for InlineCallFrameSet
1717 https://bugs.webkit.org/show_bug.cgi?id=122941
1719 Reviewed by Geoffrey Garen.
1721 Introduce WTF::Bag, which is basically an allocation pool. No POD restrictions. Does one
1722 malloc per entry. No need to shrink afterwards.
1724 * GNUmakefile.list.am:
1725 * WTF.vcxproj/WTF.vcxproj:
1726 * WTF.xcodeproj/project.pbxproj:
1731 (WTF::Bag::iterator::iterator):
1732 (WTF::Bag::iterator::operator!):
1733 (WTF::Bag::iterator::operator*):
1734 (WTF::Bag::iterator::operator++):
1735 (WTF::Bag::iterator::operator==):
1738 (WTF::Bag::isEmpty):
1739 * wtf/CMakeLists.txt:
1741 2013-10-17 Andreas Kling <akling@apple.com>
1743 Make it possible to assign a PassRef to a RefPtr.
1744 <https://webkit.org/b/122943>
1746 We have to use std::move when constructing a RefPtr from a PassRef
1747 since there is no copy constructor for the latter.
1749 Reviewed by Antti Koivisto.
1751 2013-10-16 Ryuan Choi <ryuan.choi@samsung.com>
1753 Unreviewed build fix attempt on EFL port after r157520 and r157523
1755 * wtf/PassRef.h: includes <utility>
1757 2013-10-16 Darin Adler <darin@apple.com>
1759 Add PassRef and createRefCounted so we can improve creation of RefCounted objects
1760 https://bugs.webkit.org/show_bug.cgi?id=122904
1762 Reviewed by Anders Carlsson.
1764 * GNUmakefile.list.am: Added PassRef.h.
1765 * WTF.vcxproj/WTF.vcxproj: Ditto.
1766 * WTF.vcxproj/WTF.vcxproj.filters: Ditto.
1767 * WTF.xcodeproj/project.pbxproj: Ditto.
1768 * wtf/CMakeLists.txt: Ditto.
1770 * wtf/Forward.h: Added PassRef. Also re-sorted and un-indented to match what
1771 the style-checking script expects.
1773 * wtf/PassRef.h: Added. Includes the createRefCounted function template, which
1774 is analogous to make_unique, but is for reference counted objects, and also
1775 assumes that new will never return null. Also includes an overload of adoptRef
1776 that takes a reference rather than a pointer.
1778 * wtf/PassRefPtr.h: Include "PassRef.h" so we can share the adopted function.
1779 Got rid of declarations that duplicate ones in there.
1780 (WTF::refIfNotNull): Use nullptr.
1781 (WTF::derefIfNotNull): Use nullptr.
1782 (WTF::PassRefPtr::PassRefPtr): Use nullptr. Added an overload that takes a PassRef.
1783 (WTF::PassRefPtr::operator UnspecifiedBoolType): Use nullptr.
1784 (WTF::PassRefPtr::operator=): Made this deleted instead of compile time assertion.
1785 (WTF::PassRefPtr::PassRefPtr): Made adopting constructor use an adopt tag instead
1786 of an unused boolean.
1787 (WTF::PassRefPtr::leakRef): Use nullptr.
1788 (WTF::adoptRef): Use the adopt tag.
1790 * wtf/Ref.h: Use Noncopyable instead of rolling our own.
1791 (WTF::Ref::Ref): Add an overload that takes a PassRef.
1792 (WTF::Ref::operator=): Ditto.
1794 * wtf/RefPtr.h: Removed unneeded forward declaration of PassRefPtr.
1795 (WTF::RefPtr::RefPtr): Use nullptr. Added overload that takes a PassRef.
1796 (WTF::RefPtr::release): Use nullptr.
1797 (WTF::RefPtr::operator UnspecifiedBoolType): Use nullptr.
1798 (WTF::RefPtr::operator=): Added overload that takes a PassRef.
1799 (WTF::RefPtr::clear): Use nullptr.
1801 * wtf/StdLibExtras.h: Added inline keyword to isPointerTypeAlignmentOkay,
1802 reinterpret_cast_ptr, and make_unique. Seems like a simple oversight that these
1803 were missing before.
1805 2013-10-15 Dean Jackson <dino@apple.com>
1807 Add ENABLE_WEB_ANIMATIONS flag
1808 https://bugs.webkit.org/show_bug.cgi?id=122871
1810 Reviewed by Tim Horton.
1812 Eventually might be http://dev.w3.org/fxtf/web-animations/
1813 but this is just engine-internal work at the moment.
1815 * wtf/FeatureDefines.h:
1817 2013-10-15 Daniel Bates <dabates@apple.com>
1819 [iOS] Upstream JavaScriptCore support for ARM64
1820 https://bugs.webkit.org/show_bug.cgi?id=122762
1822 Reviewed by Oliver Hunt.
1824 * Configurations/Base.xcconfig:
1826 (WTF::weakCompareAndSwap):
1828 * wtf/FastMalloc.cpp:
1832 * wtf/text/ASCIIFastPath.h:
1833 (WTF::copyLCharsFromUCharSource):
1834 * wtf/text/StringImpl.h:
1836 2013-10-14 Zan Dobersek <zdobersek@igalia.com>
1838 Static assertions in WTF::adoptPtr should point to using adoptRef for ref-counted objects
1839 https://bugs.webkit.org/show_bug.cgi?id=122745
1841 Reviewed by Anders Carlsson.
1844 (WTF::adoptPtr): When the object's type is convertible to the RefCountedBase or ThreadSafeRefCountedBase type,
1845 the static assertion should note that adoptRef should be used instead.
1847 2013-10-14 Anders Carlsson <andersca@apple.com>
1849 WebKit Nightlies broken by r157374
1850 https://bugs.webkit.org/show_bug.cgi?id=122736
1852 Reviewed by Andreas Kling.
1854 Add back a callOnMainThread overload that Safari is using.
1856 * wtf/MainThread.cpp:
1857 (WTF::callOnMainThread):
1860 2013-10-13 Darin Adler <darin@apple.com>
1862 Deprecate or remove deleteAllValues functions; there are only a few call sites left
1863 https://bugs.webkit.org/show_bug.cgi?id=122738
1865 Reviewed by Anders Carlsson.
1867 * wtf/Deque.h: Deleted deleteAllValues.
1868 * wtf/HashMap.h: Ditto.
1869 * wtf/HashSet.h: Ditto.
1870 * wtf/ListHashSet.h: Ditto.
1871 * wtf/Vector.h: Renamed deleteAllValues to deprecatedDeleteAllValues.
1873 == Rolled over to ChangeLog-2013-10-13 ==