1 2014-01-28 Anders Carlsson <andersca@apple.com>
3 Use std::mutex instead of WTF::Mutex in WTF
4 https://bugs.webkit.org/show_bug.cgi?id=127783
6 Reviewed by Antti Koivisto.
8 * wtf/CryptographicallyRandomNumber.cpp:
10 (WTF::mainThreadFunctionQueueMutex):
12 (WTF::dispatchFunctionsFromMainThread):
13 (WTF::callOnMainThread):
14 (WTF::cancelCallOnMainThread):
16 (WTF::StackStats::initialize):
17 (WTF::StackStats::CheckPoint::CheckPoint):
18 (WTF::StackStats::CheckPoint::~CheckPoint):
19 (WTF::StackStats::probe):
20 (WTF::StackStats::LayoutCheckPoint::LayoutCheckPoint):
21 (WTF::StackStats::LayoutCheckPoint::~LayoutCheckPoint):
24 2014-01-27 Joseph Pecoraro <pecoraro@apple.com>
26 WebCore: Enable -Wimplicit-fallthrough and add FALLTHROUGH annotation where needed
27 https://bugs.webkit.org/show_bug.cgi?id=127671
29 Reviewed by Ryosuke Niwa.
31 * wtf/text/WTFString.h:
34 2014-01-27 Jer Noble <jer.noble@apple.com>
36 [WK2] callOnMainThread() from main thread sometimes results in ASSERTs.
37 https://bugs.webkit.org/show_bug.cgi?id=127370
39 Reviewed by Alexey Proskuryakov.
41 When WEB_THREAD is enabled, and callOnMainThread() is called from the main
42 thread, if the web thread is locked, a timer is set and the passed-in function
43 is called on the next run-loop. However, by that time the web thread may have
44 been unlocked, and isMainThread() will no longer return true, resulting in
47 Instead, scheduleDispatchFunctionsOnMainThread() should check isWebThread(),
48 which is equivalent to isMainThread() when the WEB_THREAD is disabled, but
49 will do the correct thing when WEB_THREAD is enabled.
51 * wtf/mac/MainThreadMac.mm:
52 (WTF::scheduleDispatchFunctionsOnMainThread):
54 2014-01-27 Dan Bernstein <mitz@apple.com>
58 * wtf/ThreadSafeRefCounted.h: Added a necessary #include.
60 2014-01-25 Sam Weinig <sam@webkit.org>
62 Remove unused support for DRAGGABLE_REGION
63 https://bugs.webkit.org/show_bug.cgi?id=127642
65 Reviewed by Simon Fraser.
67 * wtf/FeatureDefines.h:
69 2014-01-25 Joseph Pecoraro <pecoraro@apple.com>
71 Add FALLTHROUGH and -Wimplicit-fallthrough to warn about unannotated implicit fallthroughs in switches
72 https://bugs.webkit.org/show_bug.cgi?id=127637
74 Reviewed by Darin Adler.
76 For information about [[clang::fallthrough]], see:
77 <http://clang.llvm.org/docs/LanguageExtensions.html#the-clang-fallthrough-attribute>
79 * Configurations/Base.xcconfig:
80 Enable -Wimplicit-fallthrough warnings.
83 Define FALLTHROUGH on clang and fallback to outputing nothing when unsupported.
85 * wtf/dtoa/fast-dtoa.cc:
86 * wtf/unicode/UTF8.cpp:
87 (WTF::Unicode::convertLatin1ToUTF8):
88 (WTF::Unicode::convertUTF16ToUTF8):
89 (WTF::Unicode::isLegalUTF8):
90 (WTF::Unicode::readUTF8Sequence):
91 Explicitly annotate implicit fallthroughs with FALLTHROUGH.
93 2014-01-25 Darin Adler <darin@apple.com>
95 Call deprecatedCharacters instead of characters at more call sites
96 https://bugs.webkit.org/show_bug.cgi?id=127631
98 Reviewed by Sam Weinig.
100 * wtf/text/StringImpl.cpp:
101 (WTF::StringImpl::replace):
102 * wtf/text/WTFString.h:
103 (WTF::String::isAllSpecialCharacters):
106 2014-01-25 Darin Adler <darin@apple.com>
108 Add a new separate LChar.h header file, to be used after we remove Unicode.h
109 https://bugs.webkit.org/show_bug.cgi?id=127630
111 Reviewed by Sam Weinig.
113 * GNUmakefile.list.am: Added the new file
114 * WTF.vcxproj/WTF.vcxproj: Ditto.
115 * WTF.vcxproj/WTF.vcxproj.filters: Ditto.
116 * WTF.xcodeproj/project.pbxproj: Ditto.
117 * wtf/CMakeLists.txt: Ditto.
118 * wtf/text/LChar.h: Added.
120 2014-01-25 Darin Adler <darin@apple.com>
122 Get rid of ICU_UNICODE and WCHAR_UNICODE remnants
123 https://bugs.webkit.org/show_bug.cgi?id=127623
125 Reviewed by Anders Carlsson.
127 * wtf/CMakeLists.txt: Removed WTF_USE_ICU_UNICODE and
128 WTF_USE_WCHAR_UNICODE since they are true and false respectively.
130 * wtf/Platform.h: Removed code to set WTF_USE_ICU_UNICODE.
132 * wtf/unicode/Collator.h: Removed ifdefs.
133 * wtf/unicode/CollatorDefault.cpp: Ditto.
134 * wtf/unicode/Unicode.h: Ditto.
135 * wtf/unicode/icu/CollatorICU.cpp: Ditto.
137 2014-01-25 Anders Carlsson <andersca@apple.com>
139 Remove atomicIncrement/atomicDecrement
140 https://bugs.webkit.org/show_bug.cgi?id=127625
142 Reviewed by Andreas Kling.
144 Replace atomicIncrement/atomicDecrement with std::atomic.
147 * wtf/RefCountedLeakCounter.cpp:
148 (WTF::RefCountedLeakCounter::~RefCountedLeakCounter):
149 (WTF::RefCountedLeakCounter::increment):
150 (WTF::RefCountedLeakCounter::decrement):
151 * wtf/RefCountedLeakCounter.h:
152 * wtf/ThreadSafeRefCounted.h:
153 (WTF::ThreadSafeRefCountedBase::ref):
154 (WTF::ThreadSafeRefCountedBase::refCount):
155 (WTF::ThreadSafeRefCountedBase::derefBase):
157 2014-01-25 Anders Carlsson <andersca@apple.com>
159 Modernize HashTable threading code
160 https://bugs.webkit.org/show_bug.cgi?id=127621
162 Reviewed by Darin Adler.
164 Use std::mutex and std::atomic instead of WTF threading primitives.
166 * wtf/DynamicAnnotations.h:
167 Include Platform.h here since this file relies on USE macros.
170 (WTF::HashTableStats::recordCollisionAtCount):
171 Change this to take an unsigned.
173 (WTF::HashTableStats::dumpStats):
175 (WTF::KeyTraits>::HashTable):
176 (WTF::KeyTraits>::remove):
177 (WTF::KeyTraits>::invalidateIterators):
178 Use a single probe counter.
181 (WTF::removeIterator):
183 2014-01-25 Darin Adler <darin@apple.com>
185 Restore alphabetical order in Compiler.h
186 https://bugs.webkit.org/show_bug.cgi?id=127620
188 Reviewed by Sam Weinig.
190 * wtf/Compiler.h: Resorted some things into alphabetical order
192 2014-01-24 Brent Fulgham <bfulgham@apple.com>
194 [Win] Convert some NMake files to MSBuild project files
195 https://bugs.webkit.org/show_bug.cgi?id=127579
197 Reviewed by Tim Horton.
199 * WTF.vcxproj/WTF.make: Removed.
200 * WTF.vcxproj/WTF.proj: Added.
202 2014-01-24 Anders Carlsson <andersca@apple.com>
204 Get rid of monotonicallyIncreasingTimeMS and start using std::chrono instead
205 https://bugs.webkit.org/show_bug.cgi?id=127571
207 Reviewed by Antti Koivisto.
210 Add a CONSTEXPR define so we can still use constexpr on compilers that don't support them (MSVC).
213 Remove monotonicallyIncreasingTimeMS().
215 * wtf/StdLibExtras.h:
216 (std::literals::chrono_literals::operator _s):
217 (std::literals::chrono_literals::operator _ms):
218 Add _s and _ms literals. Once we switch over to C++14, we can drop them and just use the built-in ones.
220 2014-01-24 Anders Carlsson <andersca@apple.com>
222 The CXX_EXPLICIT_CONVERSIONS COMPILER_SUPPORTS macro has been removed, and all
223 compilers support explicit conversions now so simply remove the #ifdef.
227 2014-01-24 Darin Adler <darin@apple.com>
230 https://bugs.webkit.org/show_bug.cgi?id=127491
232 Reviewed by Anders Carlsson.
234 * wtf/Assertions.h: Remove COMPILER_SUPPORTS(CXX_STATIC_ASSERT), since
235 we now have that for all compilers that can build WebKit.
237 * wtf/Compiler.h: Removed always true feature flags, including:
238 COMPILER_SUPPORTS(CXX_VARIADIC_TEMPLATES), COMPILER_SUPPORTS(CXX_RVALUE_REFERENCES),
239 COMPILER_SUPPORTS(CXX_DELETED_FUNCTIONS), COMPILER_SUPPORTS(CXX_NULLPTR),
240 COMPILER_SUPPORTS(CXX_EXPLICIT_CONVERSIONS), COMPILER_SUPPORTS(CXX_STATIC_ASSERT),
241 COMPILER_SUPPORTS(CXX_OVERRIDE_CONTROL), COMPILER_SUPPORTS(CXX_STRONG_ENUMS), and
242 COMPILER_SUPPORTS(CXX_AUTO_TYPE). Sorted sections alphabetically. Separated out
243 nested #if and #else into separate checks for greater readability. Removed obsolete
244 check for COMPILER(RVCT). Removed unused COMPILER(GCCE) detection.
246 * wtf/RefPtr.h: Remove COMPILER_SUPPORTS(CXX_NULLPTR), since we now have
247 that for all compilers that can build WebKit.
248 * wtf/RetainPtr.h: Ditto.
250 2014-01-23 Max Vujovic <mvujovic@adobe.com>
252 Remove CSS Custom Filters code and tests
253 https://bugs.webkit.org/show_bug.cgi?id=127382
255 Reviewed by Simon Fraser.
257 * wtf/FeatureDefines.h:
259 2014-01-22 Brent Fulgham <bfulgham@apple.com>
261 [Win] Update project and solution files for 64-bit builds.
262 https://bugs.webkit.org/show_bug.cgi?id=127457
264 Reviewed by Eric Carlson.
266 * WTF.vcxproj/WTF.submit.sln: Add x64 targets.
267 * WTF.vcxproj/WTF.vcxproj: Update for VS2013
269 2014-01-22 Myles C. Maxfield <mmaxfield@apple.com>
271 Remove CSS3_TEXT_DECORATION define
272 https://bugs.webkit.org/show_bug.cgi?id=127333
274 Reviewed by Simon Fraser.
276 This is required for unprefixing the text-decoration-* CSS properties.
280 2014-01-22 Jae Hyun Park <jae.park@company100.net>
282 Remove unnecessary include in Noncopyable.h
283 https://bugs.webkit.org/show_bug.cgi?id=127406
285 Reviewed by Anders Carlsson.
287 * wtf/Noncopyable.h: We don't need Compiler.h as of r162198.
289 2014-01-22 Carlos Garcia Campos <cgarcia@igalia.com>
292 https://bugs.webkit.org/show_bug.cgi?id=127170
294 Reviewed by Gustavo Noronha Silva.
296 The idea is to replace GOwnPtr with a template alias of
297 std:unique_ptr. Not everything can be replaced, though, because
298 GOwnPtr::outPtr() doesn't seem to be possible to implement with
299 unique_ptr. This smart pointer is more flexible than GOwnPtr and
300 allows to transfer the ownership of the pointer using
303 * GNUmakefile.list.am: Add new file to compilation.
304 * wtf/gobject/GUniquePtr.h: Added.
305 (WTF::GPtrDeleter::operator()):
307 2014-01-20 Anders Carlsson <andersca@apple.com>
309 Remove an unused member variable
310 https://bugs.webkit.org/show_bug.cgi?id=127295
312 Reviewed by Antti Koivisto.
314 * wtf/MainThread.cpp:
315 (WTF::FunctionWithContext::FunctionWithContext):
316 (WTF::FunctionWithContext::operator == ):
317 (WTF::dispatchFunctionsFromMainThread):
319 2014-01-20 Anders Carlsson <andersca@apple.com>
321 Remove MutexTryLocker
322 https://bugs.webkit.org/show_bug.cgi?id=127294
324 Reviewed by Antti Koivisto.
326 MutexTryLocker has been replaced with std::unique_lock with std::try_to_lock everywhere now.
328 * wtf/ThreadingPrimitives.h:
330 2014-01-19 Carlos Garcia Campos <cgarcia@igalia.com>
332 [GLIB] GVariant floating references are not correctly handled by GRefPtr
333 https://bugs.webkit.org/show_bug.cgi?id=127246
335 Reviewed by Martin Robinson.
337 GRefPtr should always use g_variant_ref_sink to deal with GVariant
338 floating references. In case of full references,
339 g_variant_ref_sink calls g_variant_ref, so it's safe to use it always.
341 * wtf/gobject/GRefPtr.cpp:
342 (WTF::refGPtr): Use g_variant_ref_sink().
344 2014-01-18 Anders Carlsson <andersca@apple.com>
346 Remove support for the viewsource attribute
347 https://bugs.webkit.org/show_bug.cgi?id=127232
349 Reviewed by Andreas Kling.
351 * wtf/FeatureDefines.h:
353 2014-01-18 Anders Carlsson <andersca@apple.com>
355 Remove ENABLE_THREADED_HTML_PARSER defines everywhere
356 https://bugs.webkit.org/show_bug.cgi?id=127225
358 Reviewed by Andreas Kling.
360 This concludes the removal of over 8.8 million lines of threaded parser code.
362 * wtf/FeatureDefines.h:
364 2014-01-17 Anders Carlsson <andersca@apple.com>
366 Add a callOnMainThreadAndWait variant in SocketStreamHandle
367 https://bugs.webkit.org/show_bug.cgi?id=127180
369 Reviewed by Geoffrey Garen.
371 Remove callOnMainThreadAndWait from WTF.
373 * wtf/MainThread.cpp:
376 2014-01-17 Peter Molnar <pmolnar.u-szeged@partner.samsung.com>
378 Remove workaround for compilers not supporting deleted functions
379 https://bugs.webkit.org/show_bug.cgi?id=127166
381 Reviewed by Andreas Kling.
387 2014-01-16 Benjamin Poulain <bpoulain@apple.com>
390 https://bugs.webkit.org/show_bug.cgi?id=127150
392 Reviewed by Alexey Proskuryakov.
394 * wtf/DisallowCType.h:
395 * wtf/FeatureDefines.h:
397 * wtf/PlatformNix.cmake: Removed.
400 2014-01-16 Anders Carlsson <andersca@apple.com>
403 https://bugs.webkit.org/show_bug.cgi?id=127149
405 Reviewed by Tim Horton.
409 2014-01-16 Peter Molnar <pmolnar.u-szeged@partner.samsung.com>
411 Remove workaround for compilers not supporting explicit override control
412 https://bugs.webkit.org/show_bug.cgi?id=127111
414 Reviewed by Anders Carlsson.
416 Now all compilers support explicit override control, this workaround can be removed.
419 * wtf/FilePrintStream.h:
421 * wtf/StringPrintStream.h:
423 2014-01-16 Alberto Garcia <berto@igalia.com>
425 Source/WTF/wtf/Atomics.h:300: Error: bad register name `%bpl'
426 https://bugs.webkit.org/show_bug.cgi?id=126985
428 Reviewed by Csaba Osztrogonác.
430 Use the 'q' constraint to force using a register that allows
431 access to its lower byte.
434 (WTF::weakCompareAndSwap):
436 2014-01-16 Peter Molnar <pmolnar.u-szeged@partner.samsung.com>
438 Fix unnecessary checks for Clang compiler if the compiler is MSVC.
439 https://bugs.webkit.org/show_bug.cgi?id=127037
441 Reviewed by Csaba Osztrogonác.
443 Inside the #if defined(_MSC_VER) there's no need for checking whether the compiler is not Clang.
447 2014-01-16 Peter Molnar <pmolnar.u-szeged@partner.samsung.com>
449 Require at least GCC version 4.7
450 https://bugs.webkit.org/show_bug.cgi?id=127049
452 Reviewed by Csaba Osztrogonác.
454 r161770 added a template alias, so the minimum GCC version is 4.7 now.
456 Also fixed a typo in the error message about old MSVC version.
460 2014-01-15 Alberto Garcia <berto@igalia.com>
462 [GTK] v2.3.3 fails to build in Debian / FreeBSD
463 https://bugs.webkit.org/show_bug.cgi?id=126502
465 Reviewed by Mark Lam.
467 * wtf/Platform.h: Add LLINT support to FreeBSD.
469 2014-01-15 Anders Carlsson <andersca@apple.com>
471 Get rid of RefCountedCustomAllocated
472 https://bugs.webkit.org/show_bug.cgi?id=127051
474 Reviewed by Antti Koivisto.
476 It's not used anywhere anymore, get rid of it.
479 * wtf/SizeLimits.cpp:
481 2014-01-14 Anders Carlsson <andersca@apple.com>
483 And yet another build fix.
485 * wtf/SizeLimits.cpp:
487 2014-01-14 Anders Carlsson <andersca@apple.com>
491 * wtf/SizeLimits.cpp:
493 2014-01-14 Daniel Bates <dabates@apple.com>
495 [iOS] Enable WTF_USE_UIKIT_EDITING
499 2014-01-14 Daniel Bates <dabates@apple.com>
501 [iOS] Enable QuickLook
502 https://bugs.webkit.org/show_bug.cgi?id=126954
504 Reviewed by David Kilzer.
508 2014-01-14 Anders Carlsson <andersca@apple.com>
510 Get rid of ThreadRestrictionVerifier
511 https://bugs.webkit.org/show_bug.cgi?id=127004
513 Reviewed by Sam Weinig.
515 The ThreadRestrictionVerifier mechanism has been turned off for a while
516 since it doesn't really have a good solution for objects that are passed between threads.
517 Instead of having dead code in the tree, just get rid of it.
519 * GNUmakefile.list.am:
520 * WTF.vcxproj/WTF.vcxproj:
521 * WTF.vcxproj/WTF.vcxproj.filters:
522 * WTF.xcodeproj/project.pbxproj:
523 * wtf/CMakeLists.txt:
525 (WTF::RefCountedBase::ref):
526 (WTF::RefCountedBase::hasOneRef):
527 (WTF::RefCountedBase::refCount):
528 (WTF::RefCountedBase::derefBase):
529 * wtf/ThreadRestrictionVerifier.h: Removed.
531 2014-01-14 Benjamin Poulain <benjamin@webkit.org>
533 Enable the experimental selector code generator by default
534 https://bugs.webkit.org/show_bug.cgi?id=126953
536 Reviewed by Gavin Barraclough.
539 Enable CSS_SELECTOR_JIT on OS X x86_64 by default.
540 The feature is not ready to ship but it is stable enough to enable
541 for the bots and nightly.
543 2014-01-14 Brian J. Burg <burg@cs.washington.edu>
545 Add ENABLE(WEB_REPLAY) feature flag to the build system
546 https://bugs.webkit.org/show_bug.cgi?id=126949
548 Reviewed by Joseph Pecoraro.
550 * wtf/FeatureDefines.h: for now, disable the flag by default.
552 2014-01-14 peavo@outlook.com <peavo@outlook.com>
554 [Win] Application name in user agent string is truncated.
555 https://bugs.webkit.org/show_bug.cgi?id=126810
557 Reviewed by Anders Carlsson.
559 * wtf/text/StringConcatenate.h:
560 (WTF::tryMakeString): Add missing 8 bit check for last argument.
562 2014-01-13 Anders Carlsson <andersca@apple.com>
564 Move another deprecated symbol to DeprecatedSymbolsUsedBySafari.mm
565 https://bugs.webkit.org/show_bug.cgi?id=126909
567 Reviewed by Ryosuke Niwa.
569 * wtf/MainThread.cpp:
571 * wtf/mac/DeprecatedSymbolsUsedBySafari.mm:
572 (WTF::callOnMainThread):
574 2014-01-13 Anders Carlsson <andersca@apple.com>
578 * wtf/ThreadingWin.cpp:
579 (WTF::initializeThreading):
581 2014-01-13 Anders Carlsson <andersca@apple.com>
583 Remove AtomicallyInitializedStatic
584 https://bugs.webkit.org/show_bug.cgi?id=126864
586 Reviewed by Andreas Kling.
588 Remove the lockAtomicallyInitializedStaticMutex and unlockAtomicallyInitializedStaticMutex functions
589 everywhere except on Mac (where they unfortunately were used by Safari).
591 On Mac, add them to a separate file which will hold functions and symbols that we would like
592 to remove but that are used by Safari. Reimplement them in terms of std::call_once and std::mutex.
594 * WTF.xcodeproj/project.pbxproj:
596 * wtf/ThreadingPthreads.cpp:
597 (WTF::initializeThreading):
598 * wtf/ThreadingWin.cpp:
599 (WTF::initializeThreading):
600 * wtf/mac/DeprecatedSymbolsUsedBySafari.mm: Added.
601 (WTF::atomicallyInitializedStaticMutex):
602 (WTF::lockAtomicallyInitializedStaticMutex):
603 (WTF::unlockAtomicallyInitializedStaticMutex):
605 2014-01-13 Commit Queue <commit-queue@webkit.org>
607 Unreviewed, rolling out r161855.
608 http://trac.webkit.org/changeset/161855
609 https://bugs.webkit.org/show_bug.cgi?id=126880
611 Sister commit of r161852 (Requested by kling on #webkit).
613 * wtf/ThreadingPthreads.cpp:
614 (WTF::initializeThreading):
616 2014-01-13 Commit Queue <commit-queue@webkit.org>
618 Unreviewed, rolling out r161852.
619 http://trac.webkit.org/changeset/161852
620 https://bugs.webkit.org/show_bug.cgi?id=126877
622 Broke ToT with system Safari (Requested by kling on #webkit).
625 * wtf/ThreadingPthreads.cpp:
626 (WTF::initializeThreading):
627 (WTF::lockAtomicallyInitializedStaticMutex):
628 (WTF::unlockAtomicallyInitializedStaticMutex):
629 * wtf/ThreadingWin.cpp:
630 (WTF::lockAtomicallyInitializedStaticMutex):
631 (WTF::unlockAtomicallyInitializedStaticMutex):
632 (WTF::initializeThreading):
634 2014-01-12 Commit Queue <commit-queue@webkit.org>
636 Unreviewed, rolling out r161840.
637 http://trac.webkit.org/changeset/161840
638 https://bugs.webkit.org/show_bug.cgi?id=126870
640 Caused jsscore and layout test failures (Requested by smfr on
643 * wtf/text/StringImpl.cpp:
644 (WTF::StringImpl::replace):
645 * wtf/text/WTFString.h:
646 (WTF::String::isAllSpecialCharacters):
648 2014-01-12 Dan Bernstein <mitz@apple.com>
650 Fix an assertion failure in initializeDates() when launching Safari, which was introduced in r161852.
652 Reviewed by Andy Estes.
654 * wtf/ThreadingPthreads.cpp:
655 (WTF::initializeThreading): Set isInitialized to true.
657 2014-01-12 Darin Adler <darin@apple.com>
659 Add PLATFORM(COCOA) and USE(FOUNDATION)
660 https://bugs.webkit.org/show_bug.cgi?id=126859
662 Reviewed by Anders Carlsson.
664 * wtf/Platform.h: Added PLATFORM(COCOA), which for now is set at exactly the same
665 times that PLATFORM(MAC) is. Added USE(FOUNDATION), which is set at the same times
666 that PLATFORM(COCOA) is. Re-organize the PLATFORM(MAC) and PLATFORM(IOS) settings
667 in the header so they are a bit easier to read. Put HAVE_LANGINFO_H in with the
668 rest of the OS(UNIX) settings and put HAVE_READLINE in with the rest of the
669 OS(DARWIN) settings. Tweak formatting a bit.
671 2014-01-12 Anders Carlsson <andersca@apple.com>
673 Remove AtomicallyInitializedStatic
674 https://bugs.webkit.org/show_bug.cgi?id=126864
676 Reviewed by Darin Adler.
679 * wtf/ThreadingPthreads.cpp:
680 (WTF::initializeThreading):
681 * wtf/ThreadingWin.cpp:
682 (WTF::initializeThreading):
684 2014-01-12 Darin Adler <darin@apple.com>
686 Add deprecatedCharacters as a synonym for characters and convert most call sites
687 https://bugs.webkit.org/show_bug.cgi?id=126858
689 Reviewed by Anders Carlsson.
691 * wtf/text/AtomicString.cpp:
692 (WTF::HashAndUTF8CharactersTranslator::equal):
693 (WTF::SubstringTranslator::hash):
694 (WTF::SubstringTranslator::equal):
695 * wtf/text/AtomicString.h:
696 (WTF::AtomicString::characters):
697 * wtf/text/Base64.cpp:
699 (WTF::base64URLDecode):
700 * wtf/text/StringBuilder.h:
701 (WTF::StringBuilder::characters):
702 (WTF::StringBuilder::deprecatedCharacters):
703 * wtf/text/StringImpl.cpp:
704 (WTF::StringImpl::getData16SlowCase):
705 (WTF::StringImpl::upper):
706 (WTF::StringImpl::lower):
707 (WTF::StringImpl::find):
708 (WTF::StringImpl::findIgnoringCase):
709 * wtf/text/StringImpl.h:
710 (WTF::StringImpl::characters):
711 (WTF::StringImpl::deprecatedCharacters):
712 (WTF::StringImpl::getCharacters<UChar>):
713 (WTF::equalIgnoringNullity):
714 * wtf/text/WTFString.cpp:
715 (WTF::String::append):
716 (WTF::String::appendInternal):
717 (WTF::String::insert):
718 (WTF::String::truncate):
719 (WTF::String::percentage):
720 * wtf/text/WTFString.h:
721 (WTF::String::characters):
722 (WTF::String::deprecatedCharacters):
723 (WTF::String::getCharactersWithUpconvert<UChar>):
725 Use deprecatedCharacters instead of characters.
727 2014-01-12 Anders Carlsson <andersca@apple.com>
729 Remove the last remaining uses of AtomicallyInitializedStatic
730 https://bugs.webkit.org/show_bug.cgi?id=126863
732 Reviewed by Darin Adler.
735 (WTF::hashTableStatsMutex):
736 (WTF::HashTableStats::recordCollisionAtCount):
737 (WTF::HashTableStats::dumpStats):
738 * wtf/unicode/icu/CollatorICU.cpp:
739 (WTF::cachedCollatorMutex):
740 (WTF::Collator::createCollator):
741 (WTF::Collator::releaseCollator):
743 2014-01-12 Darin Adler <darin@apple.com>
745 Reduce use of String::characters
746 https://bugs.webkit.org/show_bug.cgi?id=126854
748 Reviewed by Sam Weinig.
750 * wtf/text/StringImpl.cpp:
751 (WTF::StringImpl::replace): Use characters16 here since is8Bit was already checked.
752 * wtf/text/WTFString.h:
753 (WTF::String::isAllSpecialCharacters): Use characters16 here since is8Bit was
754 already checked. Also renamed "len" to "length".
756 2014-01-12 Anders Carlsson <andersca@apple.com>
758 Replace more uses of AtomicallyInitializedStatic with std::call_once
759 https://bugs.webkit.org/show_bug.cgi?id=126847
761 Reviewed by Sam Weinig.
764 Forward declare NeverDestroyed.
766 2014-01-11 Zan Dobersek <zdobersek@igalia.com>
768 Unreviewed build fix for ports using GCC after r161770.
770 * wtf/IteratorAdaptors.h:
771 (WTF::FilterIterator::operator*): Replicating r161797, the const qualifier for
772 FilterIterator::operator*() is removed since it clashes with some iterator types
773 that are also const, causing compilation failures with GCC.
775 2014-01-11 Anders Carlsson <andersca@apple.com>
777 Use std::call_once instead of AtomicallyInitializedStatic when creating a HTTP header set
778 https://bugs.webkit.org/show_bug.cgi?id=126837
780 Reviewed by Sam Weinig.
783 (WTF::HashSet::HashSet):
784 Add a HashSet constructor that takes an initializer list.
786 2014-01-11 Sam Weinig <sam@webkit.org>
790 * wtf/IteratorAdaptors.h:
791 (WTF::TransformIterator::operator*):
793 2014-01-11 Sam Weinig <sam@webkit.org>
795 Add support for null StringViews
796 https://bugs.webkit.org/show_bug.cgi?id=126827
798 Reviewed by Anders Carlsson.
800 - Do some style cleanup while in the neighborhood.
802 * wtf/text/StringView.h:
803 (WTF::StringView::StringView):
804 Add default constructor to create a null StringView.
806 (WTF::StringView::isNull):
807 Add isNull(), matching the semantics of String.
809 (WTF::StringView::operator bool):
810 Add an explicit operator bool() to allow use in if-statements.
812 2014-01-11 Sam Weinig <sam@webkit.org>
814 Clean up iterator filter / iterator range code
815 https://bugs.webkit.org/show_bug.cgi?id=126817
817 Reviewed by Anders Carlsson.
819 - Renames IteratorPair to IteratorRange.
820 - Splits FilterIterator into FilterIterator (which now only filters) and
821 TransformIterator (which does the transform part of the old FilterIterator).
822 Move both of these to IteratorAdaptors.h
824 * GNUmakefile.list.am:
825 * WTF.vcxproj/WTF.vcxproj:
826 * WTF.vcxproj/WTF.vcxproj.filters:
827 * WTF.xcodeproj/project.pbxproj:
828 * wtf/CMakeLists.txt:
829 * wtf/FilterIterator.h: Removed.
833 (WTF::HashMap::keys):
834 (WTF::HashMap::values):
835 * wtf/RefPtrHashMap.h:
836 Update for rename to IteratorRange. Simplify by using makeIteratorRange().
838 * wtf/IteratorAdaptors.h: Copied from wtf/FilterIterator.h.
839 (WTF::FilterIterator::FilterIterator):
840 (WTF::FilterIterator::operator*):
841 (WTF::makeFilterIterator):
842 (WTF::TransformIterator::TransformIterator):
843 (WTF::TransformIterator::operator++):
844 (WTF::TransformIterator::operator*):
845 (WTF::TransformIterator::operator==):
846 (WTF::TransformIterator::operator!=):
847 (WTF::makeTransformIterator):
848 Split up filtering and transforming. Add makeFilterIterator() and makeTransformIterator()
851 * wtf/IteratorPair.h: Removed.
852 * wtf/IteratorRange.h: Copied from wtf/IteratorPair.h.
853 (WTF::IteratorRange::IteratorRange):
854 (WTF::makeIteratorRange):
855 Renamed to IteratorRange and adds makeIteratorRange() helper.
857 2014-01-10 David Kilzer <ddkilzer@apple.com>
859 Clean up architectures in xcconfig files
860 <http://webkit.org/b/126794>
862 Reviewed by Andy Estes.
864 * Configurations/Base.xcconfig:
867 2014-01-10 Tamas Gergely <tgergely.u-szeged@partner.samsung.com>
869 [EFL][JSC] Enable udis86 disassembler on efl.
870 https://bugs.webkit.org/show_bug.cgi?id=125502
872 Reviewed by Michael Saboff.
874 Enable udis86 disassembler on efl and fix build warnings.
877 Enable udis86 disassembler on EFL.
879 2014-01-10 Hunseop Jeong <hs85.jeong@samsung.com>
881 [EFL] Enable the DFG_JIT on ARMv7
882 https://bugs.webkit.org/show_bug.cgi?id=126742
884 Reviewed by Gyuyoung Kim.
886 Turn on ENABLE_DFG_JIT on ARMv7 for EFL.
890 2014-01-07 Mark Hahnenberg <mhahnenberg@apple.com>
892 Marking should be generational
893 https://bugs.webkit.org/show_bug.cgi?id=126552
895 Reviewed by Geoffrey Garen.
898 (WTF::WordType>::count): Added a cast that became necessary when Bitmap
899 is used with smaller types than int32_t.
901 2014-01-09 Simon Fraser <simon.fraser@apple.com>
903 Enable async scrolling for iOS
904 https://bugs.webkit.org/show_bug.cgi?id=126730
906 Reviewed by Tim Horton.
908 Turn on ENABLE_ASYNC_SCROLLING for iOS.
910 * wtf/FeatureDefines.h:
912 2014-01-09 Anders Carlsson <andersca@apple.com>
914 Remove Blackberry and QNX bits from WTF
915 https://bugs.webkit.org/show_bug.cgi?id=126726
917 Reviewed by Benjamin Poulain.
919 * wtf/Assertions.cpp:
921 * wtf/CurrentTime.cpp:
922 (WTF::currentCPUTime):
924 * wtf/DisallowCType.h:
925 * wtf/FeatureDefines.h:
928 * wtf/NumberOfCores.cpp:
929 (WTF::numberOfProcessorCores):
930 * wtf/OSAllocatorPosix.cpp:
931 (WTF::OSAllocator::reserveUncommitted):
932 (WTF::OSAllocator::commit):
933 (WTF::OSAllocator::decommit):
935 * wtf/PlatformBlackBerry.cmake: Removed.
937 (WTF::computeRAMSize):
938 * wtf/StackBounds.cpp:
939 * wtf/ThreadingPthreads.cpp:
940 (WTF::initializeThreading):
941 (WTF::initializeCurrentThreadInternal):
942 * wtf/blackberry/MainThreadBlackBerry.cpp: Removed.
943 * wtf/blackberry/RunLoopBlackBerry.cpp: Removed.
944 * wtf/text/AtomicString.h:
945 * wtf/text/StringImpl.h:
946 * wtf/text/WTFString.h:
948 2014-01-09 Daniel Bates <dabates@apple.com>
950 [iOS] Upstream WebCore/platform changes
951 https://bugs.webkit.org/show_bug.cgi?id=126654
953 Rubber-stamped by David Kilzer.
955 * wtf/MainThread.cpp:
956 (WTF::canAccessThreadLocalDataForThread):
959 2014-01-09 Commit Queue <commit-queue@webkit.org>
961 Unreviewed, rolling out r161540.
962 http://trac.webkit.org/changeset/161540
963 https://bugs.webkit.org/show_bug.cgi?id=126704
965 Caused assertion failures on multiple tests (Requested by ap
969 (WTF::WordType>::count):
971 2014-01-07 Mark Hahnenberg <mhahnenberg@apple.com>
973 Marking should be generational
974 https://bugs.webkit.org/show_bug.cgi?id=126552
976 Reviewed by Geoffrey Garen.
979 (WTF::WordType>::count): Added a cast that became necessary when Bitmap
980 is used with smaller types than int32_t.
982 2014-01-08 Anders Carlsson <andersca@apple.com>
984 Add WTF::StringView and use it for grammar checking
985 https://bugs.webkit.org/show_bug.cgi?id=126644
987 Reviewed by Antti Koivisto.
989 Add a new StringView class which is an immutable reference to either an 8-bit or a 16-bit string.
991 This makes it easier to pass substrings around without having to either copy string data
992 or upconvert and use UChar pointers.
994 The StringView class is very loosely based on the std::string_view class which is proposed for a future version of C++,
995 see http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2013/n3609.html for more details.
997 * GNUmakefile.list.am:
998 * WTF.vcxproj/WTF.vcxproj:
999 * WTF.vcxproj/WTF.vcxproj.filters:
1000 * WTF.xcodeproj/project.pbxproj:
1001 * wtf/CMakeLists.txt:
1003 * wtf/text/StringView.h: Added.
1004 (WTF::StringView::StringView):
1005 (WTF::StringView::empty):
1006 (WTF::StringView::characters8):
1007 (WTF::StringView::characters16):
1008 (WTF::StringView::isEmpty):
1009 (WTF::StringView::length):
1010 (WTF::StringView::is8Bit):
1011 (WTF::StringView::substring):
1012 (WTF::StringView::toString):
1013 (WTF::StringView::toStringWithoutCopying):
1014 (WTF::StringView::encodedCharacters):
1016 2014-01-07 David Farler <dfarler@apple.com>
1018 [ASAN] Building with trunk clang corrupts sandbox profile with comment from Compiler.h
1019 https://bugs.webkit.org/show_bug.cgi?id=124532
1021 Reviewed by David Kilzer.
1024 Remove this quirk - it does nothing.
1026 2014-01-06 Filip Pizlo <fpizlo@apple.com>
1028 Get rid of ENABLE(VALUE_PROFILER). It's on all the time now.
1030 Rubber stamped by Mark Hahnenberg.
1034 2014-01-06 Zan Dobersek <zdobersek@igalia.com>
1036 Remove using directives for the std namespace from WTF
1037 https://bugs.webkit.org/show_bug.cgi?id=126524
1039 Reviewed by Alexey Proskuryakov.
1041 Remove the using directives for the std namespace throughout the WTF code.
1042 The more explicit std:: nested name specifier should be used instead.
1044 * wtf/MediaTime.cpp:
1045 (WTF::MediaTime::createWithFloat):
1046 (WTF::MediaTime::createWithDouble):
1047 * wtf/text/StringImpl.cpp:
1048 (WTF::StringImpl::create):
1049 (WTF::StringImpl::lower):
1050 (WTF::StringImpl::upper):
1051 (WTF::StringImpl::foldCase):
1052 (WTF::StringImpl::find):
1053 (WTF::StringImpl::findIgnoringCase):
1054 (WTF::reverseFindInner):
1055 (WTF::StringImpl::reverseFind):
1056 (WTF::reverseFindIgnoringCaseInner):
1057 (WTF::StringImpl::reverseFindIgnoringCase):
1058 (WTF::StringImpl::replace):
1059 (WTF::StringImpl::utf8ForCharacters):
1060 (WTF::StringImpl::utf8ForRange):
1061 * wtf/text/WTFString.cpp:
1062 (WTF::String::append):
1063 (WTF::String::appendInternal):
1064 (WTF::String::insert):
1065 (WTF::String::substringSharingImpl):
1066 (WTF::String::fromUTF8):
1067 (WTF::toIntegralType):
1068 * wtf/win/RunLoopWin.cpp:
1070 2014-01-03 Mark Hahnenberg <mhahnenberg@apple.com>
1072 DoublyLinkedLists can't be concatenated
1073 https://bugs.webkit.org/show_bug.cgi?id=125976
1075 Reviewed by Filip Pizlo.
1077 * wtf/DoublyLinkedList.h:
1078 (WTF::DoublyLinkedList<T>::append):
1080 2014-01-04 Zan Dobersek <zdobersek@igalia.com>
1082 Explicitly use the std:: nested name specifier when using std::pair, std::make_pair
1083 https://bugs.webkit.org/show_bug.cgi?id=126439
1085 Reviewed by Andreas Kling.
1087 * wtf/VectorTraits.h: Stop bringing std::pair into the current scope.
1089 2014-01-02 Gavin Barraclough <barraclough@apple.com>
1091 Refactor NSActivity handling code from ChildProcess to UserActivity
1092 https://bugs.webkit.org/show_bug.cgi?id=126330
1094 Reviewed by Sam Weinig.
1096 UserActivity is a mechanism to express to the operating system (where appropriate)
1097 that a user initiated activity is taking place, and as such that resources should be
1098 made available to the process accordingly.
1100 Currently we hold a single NSActivity, at the WebKit layer. This refactoring allows us
1101 to hold different activity tokens for different user actions (which simplifies the
1102 handling, and aides debugging since the token can more accurately express the activity
1103 taking place), and also will allow us to avoid the layering difficulty of calling back
1104 up the stack to WebKit to register that an activity is taking place.
1107 - added HAVE_NS_ACTIVITY.
1109 2013-12-30 Commit Queue <commit-queue@webkit.org>
1111 Unreviewed, rolling out r161157, r161158, r161160, r161161,
1112 r161163, and r161165.
1113 http://trac.webkit.org/changeset/161157
1114 http://trac.webkit.org/changeset/161158
1115 http://trac.webkit.org/changeset/161160
1116 http://trac.webkit.org/changeset/161161
1117 http://trac.webkit.org/changeset/161163
1118 http://trac.webkit.org/changeset/161165
1119 https://bugs.webkit.org/show_bug.cgi?id=126332
1121 Broke WebKit2 on Mountain Lion (Requested by ap on #webkit).
1123 * GNUmakefile.list.am:
1124 * WTF.vcxproj/WTF.vcxproj:
1125 * WTF.vcxproj/WTF.vcxproj.filters:
1126 * WTF.xcodeproj/project.pbxproj:
1127 * wtf/CMakeLists.txt:
1129 * wtf/PlatformWin.cmake:
1130 * wtf/threads/BinarySemaphore.cpp: Added.
1131 (WTF::BinarySemaphore::BinarySemaphore):
1132 (WTF::BinarySemaphore::~BinarySemaphore):
1133 (WTF::BinarySemaphore::signal):
1134 (WTF::BinarySemaphore::wait):
1135 * wtf/threads/BinarySemaphore.h: Added.
1136 (WTF::BinarySemaphore::event):
1137 * wtf/threads/win/BinarySemaphoreWin.cpp: Added.
1138 (WTF::BinarySemaphore::BinarySemaphore):
1139 (WTF::BinarySemaphore::~BinarySemaphore):
1140 (WTF::BinarySemaphore::signal):
1141 (WTF::BinarySemaphore::wait):
1143 2013-12-30 Anders Carlsson <andersca@apple.com>
1145 Replace yield() and pauseBriefly() with std::this_thread::yield()
1146 https://bugs.webkit.org/show_bug.cgi?id=126105
1148 Reviewed by Sam Weinig.
1150 * wtf/ByteSpinLock.h:
1151 (WTF::ByteSpinLock::lock):
1153 * wtf/ThreadingPrimitives.h:
1154 * wtf/ThreadingPthreads.cpp:
1155 * wtf/ThreadingWin.cpp:
1157 2013-12-30 Sam Weinig <sam@webkit.org>
1159 Remove unnecessary non-const overload in IteratorPair
1160 https://bugs.webkit.org/show_bug.cgi?id=126314
1162 Reviewed by Anders Carlsson.
1164 * wtf/IteratorPair.h:
1166 2013-12-30 Sam Weinig <sam@webkit.org>
1168 Remove WTF's BinarySemaphore
1169 https://bugs.webkit.org/show_bug.cgi?id=126310
1171 Reviewed by Anders Carlsson.
1173 It's unused. Also remove the now empty wtf/threads directory.
1175 * GNUmakefile.list.am:
1176 * WTF.vcxproj/WTF.vcxproj:
1177 * WTF.vcxproj/WTF.vcxproj.filters:
1178 * WTF.xcodeproj/project.pbxproj:
1179 * wtf/CMakeLists.txt:
1181 * wtf/PlatformWin.cmake:
1182 * wtf/threads: Removed.
1183 * wtf/threads/BinarySemaphore.cpp: Removed.
1184 * wtf/threads/BinarySemaphore.h: Removed.
1185 * wtf/threads/win: Removed.
1186 * wtf/threads/win/BinarySemaphoreWin.cpp: Removed.
1188 2013-12-30 Roger Fong <roger_fong@apple.com>
1190 [Windows] Unreviewed build fix following r160959.
1194 2013-12-30 Anders Carlsson <andersca@apple.com>
1196 Replace WTF::ThreadingOnce with std::call_once
1197 https://bugs.webkit.org/show_bug.cgi?id=126215
1199 Reviewed by Sam Weinig.
1201 * GNUmakefile.list.am:
1202 * wtf/CompilationThread.cpp:
1203 (WTF::initializeCompilationThreads):
1204 * wtf/ThreadingOnce.h: Removed.
1206 2013-12-26 Sam Weinig <sam@webkit.org>
1208 Move FilterIterator and IteratorPair to WTF and reimplement HashMap::keys() and HashMap::values() using IteratorPair
1209 https://bugs.webkit.org/show_bug.cgi?id=126253
1211 Reviewed by Anders Carlsson.
1213 * GNUmakefile.list.am:
1214 * WTF.vcxproj/WTF.vcxproj:
1215 * WTF.vcxproj/WTF.vcxproj.filters:
1216 * WTF.xcodeproj/project.pbxproj:
1217 * wtf/CMakeLists.txt:
1221 * wtf/RefPtrHashMap.h:
1222 Remove the old implementation of keys() and values() and replace it with one
1223 that uses IteratorPair.
1225 * wtf/FilterIterator.h: Copied from Source/WebKit2/Shared/FilterIterator.h.
1226 * wtf/IteratorPair.h: Copied from Source/WebKit2/Shared/IteratorPair.h.
1228 2013-12-27 Daniel Bates <dabates@apple.com>
1230 [iOS] Upstream WebCore/page changes
1231 https://bugs.webkit.org/show_bug.cgi?id=126180
1233 Reviewed by Darin Adler.
1235 * wtf/FeatureDefines.h: Define ENABLE_IOS_TOUCH_EVENTS to be enabled by default
1236 when building iOS with ENABLE(TOUCH_EVENTS).
1238 2013-12-25 Thiago de Barros Lacerda <thiago.lacerda@openbossa.org>
1240 [Nix] Building with DRAG_SUPPORT enabled
1241 https://bugs.webkit.org/show_bug.cgi?id=126233
1243 Reviewed by Daniel Bates.
1245 * wtf/nix/FeatureDefinesNix.h:
1247 2013-12-24 Commit Queue <commit-queue@webkit.org>
1249 Unreviewed, rolling out r160959.
1250 http://trac.webkit.org/changeset/160959
1251 https://bugs.webkit.org/show_bug.cgi?id=126222
1253 Caused Windows build to fail (Requested by rfong on #webkit).
1255 * wtf/ByteSpinLock.h:
1256 (WTF::ByteSpinLock::lock):
1258 * wtf/ThreadingPrimitives.h:
1259 (WTF::pauseBriefly):
1260 * wtf/ThreadingPthreads.cpp:
1262 * wtf/ThreadingWin.cpp:
1265 2013-12-23 Benjamin Poulain <bpoulain@apple.com>
1267 Fix the build after r161031
1269 I enabled ENABLE_CSS_SELECTOR_JIT by accident.
1273 2013-12-23 Zan Dobersek <zdobersek@igalia.com>
1275 [GTK] Clean up compiler optimizations flags for libWTF, libJSC
1276 https://bugs.webkit.org/show_bug.cgi?id=126157
1278 Reviewed by Gustavo Noronha Silva.
1280 * GNUmakefile.am: Remove the -fstrict-aliasing and -O3 compiler flags for libWTF.la. -O3 gets
1281 overridden by -O2 that's listed in CXXFLAGS (or -O0 in case of debug builds) and -fstrict-aliasing
1282 is enabled when -O2 is used (and shouldn't be enabled in debug builds anyway).
1284 2013-12-20 Anders Carlsson <andersca@apple.com>
1286 Replace yield() and pauseBriefly() with std::this_thread::yield()
1287 https://bugs.webkit.org/show_bug.cgi?id=126105
1289 Reviewed by Sam Weinig.
1291 * wtf/ByteSpinLock.h:
1292 (WTF::ByteSpinLock::lock):
1294 * wtf/ThreadingPrimitives.h:
1295 * wtf/ThreadingPthreads.cpp:
1296 * wtf/ThreadingWin.cpp:
1298 2013-12-20 Anders Carlsson <andersca@apple.com>
1300 Speed up case folding for 8-bit strings
1301 https://bugs.webkit.org/show_bug.cgi?id=126098
1303 Reviewed by Geoffrey Garen.
1305 Add a case folding lookup table for 8-bit strings and use it instead of calling down to u_foldCase.
1306 On a simple microbenchmark using a lookup table is about 15x faster.
1308 * wtf/text/StringHash.h:
1309 (WTF::CaseFoldingHash::foldCase):
1310 * wtf/text/StringImpl.cpp:
1311 (WTF::equalIgnoringCase):
1312 * wtf/text/StringImpl.h:
1314 2013-12-20 Myles C. Maxfield <mmaxfield@apple.com>
1316 Faster implementation of text-decoration-skip: ink
1317 https://bugs.webkit.org/show_bug.cgi?id=125718
1319 Reviewed by Simon Fraser.
1321 This creates a new preprocessor define, CSS3_TEXT_DECORATION_SKIP_INK,
1322 which enables the use of the text-decoration-skip: ink CSS value.
1323 Creating this new value simplifies the logic about when to enable the
1324 codepath for this CSS value.
1328 2013-12-20 Simon Fraser <simon.fraser@apple.com>
1330 Change "threaded scrolling" terminology to "asynchronous scrolling"
1331 https://bugs.webkit.org/show_bug.cgi?id=126094
1333 Reviewed by Tim Horton.
1335 Rename ENABLE_THREADED_SCROLLING to ENABLE_ASYNC_SCROLLING.
1337 * wtf/FeatureDefines.h:
1339 2013-12-20 Tamas Gergely <tgergely.u-szeged@partner.samsung.com>
1341 Build fails in debug mode after r160834.
1342 https://bugs.webkit.org/show_bug.cgi?id=126059
1344 Reviewed by Csaba Osztrogonác.
1346 Debug mode build failed due to comparing signed and unsigned in
1347 ASSERT(). Now both values are unsigned.
1349 * wtf/dtoa/double-conversion.cc:
1351 2013-12-19 Alex Christensen <achristensen@webkit.org>
1353 Final preparations for GStreamer on Windows.
1354 https://bugs.webkit.org/show_bug.cgi?id=125958
1356 Reviewed by Benjamin Poulain.
1358 * WTF.vcxproj/WTFDebugWinCairo.props:
1359 * WTF.vcxproj/WTFReleaseWinCairo.props:
1360 Include WinCairo.props.
1362 Use GLib and GStreamer on WinCairo with video.
1364 2013-12-18 Daniel Bates <dabates@apple.com>
1366 WTF, JavaScriptCore fails to build with trunk clang: operators new, new[],
1367 delete, delete[] cannot be declared inline
1368 https://bugs.webkit.org/show_bug.cgi?id=124186
1369 <rdar://problem/15644039>
1371 Reviewed by Geoffrey Garen and Anders Carlsson.
1373 Following <http://llvm.org/viewvc/llvm-project?view=revision&revision=193044>
1374 (http://llvm.org/bugs/show_bug.cgi?id=17591>), Clang emits warnings when
1375 operator new, delete are inlined. Such definitions cannot be inline per
1376 replacement.functions (17.6.4.6/3) of the C++ standard. For now,
1377 disable these warnings instead of exporting these functions.
1381 2013-12-19 Hugo Parente Lima <hugo.lima@openbossa.org>
1383 WTF fails to compile with gcc 4.8.2 and -Werror=array-bounds
1384 https://bugs.webkit.org/show_bug.cgi?id=125936
1386 Reviewed by Anders Carlsson.
1388 * wtf/dtoa/double-conversion.cc: Use a unsigned instead of int on buffer_pos type.
1390 2013-12-19 Peter Szanka <h868064@stud.u-szeged.hu>
1392 Delete RVCT related code parts.
1393 https://bugs.webkit.org/show_bug.cgi?id=125626
1395 Reviewed by Csaba Osztrogonác.
1397 * wtf/Compiler.h: follow-up fix for r160648, remove an unnecessary comment.
1399 2013-12-18 Alex Christensen <achristensen@webkit.org>
1401 [WinCairo] Preparation for GStreamer on Windows.
1402 https://bugs.webkit.org/show_bug.cgi?id=125946
1404 Reviewed by Brent Fulgham.
1406 * WTF.vcxproj/WTF.vcxproj:
1407 Use new GStreamer property sheets for WinCairo.
1409 2013-12-18 Mark Hahnenberg <mhahnenberg@apple.com>
1411 DFG should have a separate StoreBarrier node
1412 https://bugs.webkit.org/show_bug.cgi?id=125530
1414 Reviewed by Filip Pizlo.
1416 * wtf/Platform.h: Added an #define for ENABLE(GGC) which will be used for landing things related to GenGC.
1418 2013-12-16 Daniel Bates <dabates@apple.com>
1420 [iOS] Upstream WebCore/html changes
1421 https://bugs.webkit.org/show_bug.cgi?id=125765
1423 Reviewed by Darin Adler.
1425 Defined ENABLE_IOS_AUTOCORRECT_AND_AUTOCAPITALIZE, enabled by default on iOS.
1427 * wtf/FeatureDefines.h:
1429 2013-12-17 Alex Christensen <achristensen@webkit.org>
1431 Compile fix for WebGL on Windows without GRAPHICS_SURFACE.
1432 https://bugs.webkit.org/show_bug.cgi?id=125867
1434 Reviewed by Martin Robinson.
1436 * wtf/FeatureDefines.h:
1437 Removed unused ENABLE_GLIB_SUPPORT macro.
1439 Don't use GRAPHICS_SURFACE for WebGL on Windows.
1441 2013-12-17 Alex Christensen <achristensen@webkit.org>
1443 [Win] Fixed linker error with GStreamer.
1444 https://bugs.webkit.org/show_bug.cgi?id=124861
1446 Reviewed by Martin Robinson.
1448 * wtf/gobject/GOwnPtr.cpp:
1450 * wtf/gobject/GOwnPtr.h:
1451 Added WTF_EXPORT_PRIVATE to freeOwnedGPtr<GError> declaration and definition.
1453 2013-12-17 Benjamin Poulain <benjamin@webkit.org>
1455 Add a simple register allocator to WebCore for x86_64
1456 https://bugs.webkit.org/show_bug.cgi?id=125771
1458 Reviewed by Geoffrey Garen.
1460 * wtf/Platform.h: Add a new flag "CSS_SELECTOR_JIT" to guard
1461 an experimental JIT compiler in WebCore.
1463 2013-12-16 Anders Carlsson <andersca@apple.com>
1465 Remove EnumClass.h from WTF
1466 https://bugs.webkit.org/show_bug.cgi?id=125820
1468 Reviewed by Darin Adler.
1470 All compilers we build on now support real strongly typed enums, so we can remove the ENUM_CLASS version.
1472 * WTF.vcxproj/WTF.vcxproj:
1473 * WTF.vcxproj/WTF.vcxproj.filters:
1474 * WTF.xcodeproj/project.pbxproj:
1475 * wtf/CheckedArithmetic.h:
1476 * wtf/EnumClass.h: Removed.
1478 2013-12-16 Brent Fulgham <bfulgham@apple.com>
1480 [Win] Remove dead code after conversion to VS2013
1481 https://bugs.webkit.org/show_bug.cgi?id=125795
1483 Reviewed by Darin Adler.
1485 * wtf/Assertions.h: Include <inttypes.h> now that it exists.
1486 * wtf/Compiler.h: Update compiler checks for VS2013, and
1487 enable support for NEVER_INLINE
1488 * wtf/HashFunctions.h:
1489 (WTF::PtrHash::hash): Remove compiler workaround.
1490 * wtf/MathExtras.h: Remove C99 functions that are now supplied
1491 by the MS runtime library.
1492 * wtf/Platform.h: Remove old MSVC support flags.
1493 * wtf/StdLibExtras.h: Remove old MSVC workaround code.
1495 2013-12-16 Alex Christensen <achristensen@webkit.org>
1497 Fixed Win64 build on VS2013.
1498 https://bugs.webkit.org/show_bug.cgi?id=125753
1500 Reviewed by Brent Fulgham.
1502 * WTF.vcxproj/WTF.vcxproj:
1503 Added correct PlatformToolset for 64-bit builds.
1505 2013-12-16 Peter Szanka <h868064@stud.u-szeged.hu>
1507 Delete RVCT related code parts.
1508 https://bugs.webkit.org/show_bug.cgi?id=125626
1510 Reviewed by Darin Adler.
1517 2013-12-13 Brent Fulgham <bfulgham@apple.com>
1519 [Win] Remove Pre-VS2013 support code.
1520 https://bugs.webkit.org/show_bug.cgi?id=125693
1522 Reviewed by Darin Adler.
1524 * wtf/StringPrintStream.cpp:
1525 (WTF::StringPrintStream::vprintf): Use va_copy, like a civilized person.
1527 2013-12-12 Darin Adler <darin@apple.com>
1529 Incorrect handling of non-ASCII characters in WTF::base64DecodeInternal
1530 https://bugs.webkit.org/show_bug.cgi?id=125658
1532 Reviewed by Alexey Proskuryakov.
1534 * wtf/text/Base64.cpp:
1535 (WTF::base64EncodeInternal): Use a reference to an array instead of a pointer
1536 for the table argument type so we check the size of the array at the call site.
1537 (WTF::base64DecodeInternal): Ditto. Also added an bounds check before using the
1538 table so we don't load some random value for non-ASCII characters.
1540 2013-12-13 Brent Fulgham <bfulgham@apple.com>
1542 [Win] Unreviewed build fix after r160548
1544 * WTF.vcxproj/WTFGenerated.vcxproj: Specify that we are using
1545 the vs12_xp target for Makefile-based projects.
1547 2013-12-13 Anders Carlsson <andersca@apple.com>
1549 Require variadic templates to build WebKit
1550 https://bugs.webkit.org/show_bug.cgi?id=125701
1552 Reviewed by Andreas Kling.
1555 Add an #error if variadic templates are disabled.
1557 * wtf/NeverDestroyed.h:
1559 * wtf/StdLibExtras.h:
1560 Remove a bunch of COMPILER_SUPPORTS(CXX_VARIADIC_TEMPLATES) #ifdefs.
1562 2013-12-13 Peter Szanka <h868064@stud.u-szeged.hu>
1564 Delete INTEL C compiler related code parts.
1565 https://bugs.webkit.org/show_bug.cgi?id=125625
1567 Reviewed by Darin Adler.
1572 2013-12-13 Brent Fulgham <bfulgham@apple.com>
1574 [Win] Switch WebKit solution to Visual Studio 2013
1575 https://bugs.webkit.org/show_bug.cgi?id=125192
1577 Reviewed by Anders Carlsson.
1579 * WTF.vcxproj/WTF.vcxproj: Update for VS2013
1580 * WTF.vcxproj/WTF.vcxproj.filters: Ditto
1582 2013-12-12 Brady Eidson <beidson@apple.com>
1584 DatabaseProcess IndexedDB: Establish a metadata backing store on disk
1585 https://bugs.webkit.org/show_bug.cgi?id=125258
1587 Reviewed by Alexey Proskuryakov, Anders Carlsson, and Tim Horton.
1589 * wtf/text/WTFString.h: Export toUInt64Strict().
1591 2013-12-12 Sam Weinig <sam@webkit.org>
1593 Replace uses of WTF::BitArray with std::bitset
1594 https://bugs.webkit.org/show_bug.cgi?id=125642
1596 Reviewed by Anders Carlsson.
1598 * GNUmakefile.list.am:
1599 * WTF.vcxproj/WTF.vcxproj:
1600 * WTF.vcxproj/WTF.vcxproj.filters:
1601 * WTF.xcodeproj/project.pbxproj:
1602 * wtf/BitArray.h: Removed.
1603 * wtf/CMakeLists.txt:
1605 2013-12-11 David Kilzer <ddkilzer@apple.com>
1607 Define m_hasBadParent in InlineBox if defined(ADDRESS_SANITIZER)
1608 <http://webkit.org/b/125329>
1610 Reviewed by Darin Adler.
1612 * wtf/Assertions.h: Define macro
1613 ASSERT_WITH_SECURITY_IMPLICATION_DISABLED based on whether
1614 ASSERT_WITH_SECURITY_IMPLICATION() is enabled.
1616 2013-12-11 Brendan Long <b.long@cablelabs.com>
1618 Type punning error in MD5.cpp
1619 https://bugs.webkit.org/show_bug.cgi?id=125412
1621 Reviewed by Darin Adler.
1624 (WTF::toLittleEndian): Renamed, and use memcpy instead of casting.
1625 (WTF::MD5::addBytes): Renamed reverseBytes to toLittleEndian.
1626 (WTF::MD5::checksum): Same, and use memcpy instead of casting to prevent type punning error.
1628 2013-12-11 Laszlo Vidacs <lac@inf.u-szeged.hu>
1630 Store SHA1 hash in std::array
1631 https://bugs.webkit.org/show_bug.cgi?id=125446
1633 Reviewed by Darin Adler.
1635 Change Vector to std::array and use typedef.
1638 (WTF::SHA1::computeHash):
1639 (WTF::SHA1::hexDigest):
1640 (WTF::SHA1::computeHexDigest):
1643 2013-12-11 Oliver Hunt <oliver@apple.com>
1645 Give Unique StringImpls a meaningful data pointer
1646 https://bugs.webkit.org/show_bug.cgi?id=125598
1648 Reviewed by Michael Saboff.
1650 Found by code inspection. If there is a collision in an Identifier
1651 table when comparing to a string literal we attempt to use the data
1652 pointer (essentially this ends up being a null termination check).
1654 Previously unique pointers just used the literal 1 as the data address
1655 but this obviously fails when dereferenced. Instead we now make the
1656 data pointer point to the location of the buffer pointer itself. As
1657 the buffer pointer is initialised to 0, this satisfies the requirement
1658 that the 0-length unique string is null terminated.
1660 * wtf/text/StringImpl.h:
1661 (WTF::StringImpl::StringImpl):
1663 2013-12-10 Anders Carlsson <andersca@apple.com>
1665 Add a HashMap constructor that takes an initializer list
1666 https://bugs.webkit.org/show_bug.cgi?id=125551
1668 Reviewed by Dan Bernstein.
1671 (WTF::HashMap::HashMap):
1673 2013-12-10 Laszlo Vidacs <lac@inf.u-szeged.hu>
1675 Use std::array when computing MD5 checksum
1676 https://bugs.webkit.org/show_bug.cgi?id=125509
1678 Reviewed by Anders Carlsson.
1680 Added MD5::Digest type and MD5::hashSize for computing MD5 checksum.
1683 (WTF::MD5::checksum):
1686 2013-12-10 Martin Robinson <mrobinson@igalia.com>
1688 Various fixes for the CMake GTK+ build
1690 Reviewed by Gustavo Noronha.
1692 * wtf/PlatformGTK.cmake: Add Zlib library to the WTF build.
1694 2013-12-09 Sam Weinig <sam@webkit.org>
1697 https://bugs.webkit.org/show_bug.cgi?id=125478
1699 Reviewed by Anders Carlsson.
1701 * GNUmakefile.list.am:
1702 * WTF.vcxproj/WTF.vcxproj:
1703 * WTF.vcxproj/WTF.vcxproj.filters:
1704 * WTF.xcodeproj/project.pbxproj:
1705 * wtf/CMakeLists.txt:
1706 * wtf/FixedArray.h: Removed.
1708 2013-12-09 Sam Weinig <sam@webkit.org>
1710 Replace use of WTF::FixedArray with std::array
1711 https://bugs.webkit.org/show_bug.cgi?id=125475
1713 Reviewed by Anders Carlsson.
1717 * wtf/SixCharacterHash.cpp:
1718 (WTF::integerToSixCharacterHashString):
1719 * wtf/SixCharacterHash.h:
1721 2013-12-06 Roger Fong <roger_fong@apple.com> and Brent Fulgham <bfulgham@apple.com>
1723 [Win] Support compiling with VS2013
1724 https://bugs.webkit.org/show_bug.cgi?id=125353
1726 Reviewed by Anders Carlsson.
1728 * wtf/Compiler.h: Show proper features for VS2012 and VS2013.
1729 * wtf/MathExtras.h: Don't implement common C99 routines when
1730 they are available through the runtime libraries.
1732 (WTF::RetainPtr::operator bool): Added.
1733 * wtf/StdLibExtras.h: Use Microsoft's version of make_unique
1736 2013-12-06 Laszlo Vidacs <lac@inf.u-szeged.hu>
1738 Define SHA1 hash size in SHA1.h and use it at various places.
1739 https://bugs.webkit.org/show_bug.cgi?id=125345
1741 Reviewed by Darin Adler.
1743 Use SHA1::hashSize instead of local variables.
1745 * wtf/SHA1.h: define SHA1 hash size
1747 2013-12-05 Iain Lane <iain.lane@canonical.com>
1749 Remove USE(LOCKFREE_THREADSAFEREFCOUNTED) from Atomics.cpp since it is
1751 https://bugs.webkit.org/show_bug.cgi?id=124502
1753 Reviewed by Anders Carlsson.
1757 2013-12-04 Ryosuke Niwa <rniwa@webkit.org>
1759 Enable HTMLTemplateElement by default
1760 https://bugs.webkit.org/show_bug.cgi?id=123851
1762 Reviewed by Antti Koivisto.
1764 * wtf/FeatureDefines.h:
1766 2013-12-04 Dan Bernstein <mitz@apple.com>
1768 Replace USE(SECURITY_FRAMEWORK) with finer-grained defines
1769 https://bugs.webkit.org/show_bug.cgi?id=125242
1771 Reviewed by Sam Weinig.
1773 * wtf/Platform.h: Removed definitions of WTF_USE_SECURITY_FRAMEWORK, and defined
1774 HAVE_SEC_IDENTITY and HAVE_SEC_KEYCHAIN.
1776 2013-12-03 Joseph Pecoraro <pecoraro@apple.com>
1778 Web Inspector: Push Remote Inspector debugging connection management into JavaScriptCore
1779 https://bugs.webkit.org/show_bug.cgi?id=124613
1781 Reviewed by Timothy Hatcher.
1783 * wtf/ios/WebCoreThread.cpp:
1784 * wtf/ios/WebCoreThread.h:
1785 Expose WebThreadRun/WebThreadRunSync iOS methods defined in WebCore through
1786 WTF so that JavaScriptCore can use it. Another such method already existed.
1788 2013-12-03 Mark Lam <mark.lam@apple.com>
1790 testapi test crashes on Windows in WTF::Vector<wchar_t,64,WTF::UnsafeVectorOverflow>::size().
1791 https://bugs.webkit.org/show_bug.cgi?id=121972.
1793 Reviewed by Brent Fulgham.
1795 * wtf/OSAllocatorWin.cpp:
1796 (WTF::OSAllocator::decommit):
1797 (WTF::OSAllocator::releaseDecommitted):
1798 - Added a check to ensure that the bytes to decommit / release is not 0.
1799 On Windows, a 0 length passed to VirtualFree() has a special meaning,
1800 and it's not "decommit / release nothing" as one would expect. Adding
1801 this check makes OSAllocatorWin consistent with OSAllocatorPosix for
1804 2013-12-02 Mark Lam <mark.lam@apple.com>
1806 Build failure when disabling JIT, YARR_JIT, and ASSEMBLER.
1807 https://bugs.webkit.org/show_bug.cgi?id=123809.
1809 Reviewed by Geoffrey Garen.
1812 - Ensure that the ASSEMBLER is enabled when the DISASSEMBLER is enabled.
1814 2013-11-30 peavo@outlook.com <peavo@outlook.com>
1816 [Win] Some JavaScript date tests are failing.
1817 https://bugs.webkit.org/show_bug.cgi?id=124946
1819 Reviewed by Brent Fulgham.
1821 Use native Win32 api functions to compute Daylight saving time offset.
1824 (WTF::UnixTimeToFileTime): Added method to calculate Win32 specific struct FILETIME from time_t value.
1825 (WTF::calculateDSTOffset): Use native Win32 api functions to compute Daylight saving time offset.
1827 2013-11-28 Thiago de Barros Lacerda <thiago.lacerda@openbossa.org>
1829 Nix Upstream: Updating Nix WTF files
1830 https://bugs.webkit.org/show_bug.cgi?id=124980
1832 Reviewed by Csaba Osztrogonác.
1834 Just to sync our private repo files and the trunk, as part of the upstream process.
1836 * wtf/DisallowCType.h:
1837 * wtf/PlatformNix.cmake:
1838 * wtf/nix/FeatureDefinesNix.h:
1839 * wtf/nix/PlatformNix.h:
1840 * wtf/nix/RunLoopNix.cpp: Added.
1842 2013-11-28 Antti Koivisto <antti@apple.com>
1844 Remove feature: CSS variables
1845 https://bugs.webkit.org/show_bug.cgi?id=114119
1847 Reviewed by Andreas Kling.
1849 * wtf/FeatureDefines.h:
1851 2013-11-26 Filip Pizlo <fpizlo@apple.com>
1853 Do bytecode validation as part of testing
1854 https://bugs.webkit.org/show_bug.cgi?id=124913
1856 Reviewed by Oliver Hunt.
1858 * GNUmakefile.list.am:
1859 * WTF.vcxproj/WTF.vcxproj:
1860 * WTF.xcodeproj/project.pbxproj:
1861 * wtf/CMakeLists.txt:
1862 * wtf/FastBitVector.cpp: Added.
1863 (WTF::FastBitVector::dump):
1864 * wtf/FastBitVector.h:
1865 (WTF::FastBitVector::resize):
1866 (WTF::FastBitVector::bitCount):
1867 (WTF::FastBitVector::arrayLength):
1869 2013-11-27 Tamas Gergely <tgergely.u-szeged@partner.samsung.com>
1871 Remove Sparc specific code.
1872 https://bugs.webkit.org/show_bug.cgi?id=124941
1874 Reviewed by Michael Saboff.
1876 Sparc is not supported, remove leftover code.
1881 2013-11-26 Marcelo Lira <marcelo.lira@openbossa.org>
1883 Nix upstreaming - Adding build files and supporting scripts
1884 https://bugs.webkit.org/show_bug.cgi?id=118367
1886 Reviewed by Ryosuke Niwa.
1888 * wtf/FeatureDefines.h:
1890 * wtf/PlatformNix.cmake: Added.
1892 2013-11-26 Drew Yao <ayao@apple.com>
1894 ASSERT_WITH_SECURITY_IMPLICATION should crash in a distinct way.
1895 https://bugs.webkit.org/show_bug.cgi?id=124757
1897 Change ASSERT_WITH_SECURITY_IMPLICATION to access a different address from CRASH()
1898 in order to help screen fuzzing bugs.
1900 Reviewed by Brent Fulgham.
1902 * wtf/Assertions.cpp:
1905 2013-11-24 Tim Horton <timothy_horton@apple.com>
1907 Upstream USE(IOSURFACE) from the iOS port
1908 https://bugs.webkit.org/show_bug.cgi?id=124814
1910 Reviewed by Sam Weinig.
1912 Some code guarded by USE(IOSURFACE) was recently upstreamed,
1913 but not the definition of WTF_USE_IOSURFACE itself.
1917 2013-11-23 Xabier Rodriguez Calvar <calvaris@igalia.com>
1919 [GStreamer] Remove 0.10 codepath
1920 https://bugs.webkit.org/show_bug.cgi?id=124534
1922 Reviewed by Philippe Normand.
1924 * wtf/Platform.h: Removed macro for GStreamer 1.0 as it is the
1927 2013-11-21 Peter Molnar <pmolnar.u-szeged@partner.samsung.com>
1929 Remove ENABLE_WORKERS
1930 https://bugs.webkit.org/show_bug.cgi?id=105784
1932 Reviewed by Darin Adler.
1934 * wtf/FeatureDefines.h:
1935 * wtf/nix/FeatureDefinesNix.h:
1937 2013-11-21 Mark Rowe <mrowe@apple.com>
1939 <https://webkit.org/b/124701> Fix an error in a few Xcode configuration setting files.
1941 Reviewed by Alexey Proskuryakov.
1943 * Configurations/Base.xcconfig:
1945 2013-11-20 Mark Lam <mark.lam@apple.com>
1947 Introducing VMEntryScope to update the VM stack limit.
1948 https://bugs.webkit.org/show_bug.cgi?id=124634.
1950 Reviewed by Geoffrey Garen.
1953 * wtf/StackBounds.h:
1954 (WTF::StackBounds::StackBounds):
1956 2013-11-18 Filip Pizlo <fpizlo@apple.com>
1958 Allow the FTL debug dumps to include the new size field
1959 https://bugs.webkit.org/show_bug.cgi?id=124479
1961 Reviewed by Mark Hahnenberg.
1963 * wtf/PrintStream.cpp:
1964 (WTF::printInternal):
1965 * wtf/PrintStream.h:
1967 2013-11-17 Jer Noble <jer.noble@apple.com>
1969 [WTF] Media time should not have a constructor which accepts a single int or float.
1970 https://bugs.webkit.org/show_bug.cgi?id=124470
1972 Having a constructor taking a single number value, as it's very easy to accidentially mis-
1973 initialize a MediaTime with a double (automatically casted to a int64_t).
1975 Reviewed by Eric Carlson.
1979 2013-11-18 Csaba Osztrogonác <ossy@webkit.org>
1981 URTBF after r159432 to make WinCairo build happy.
1983 * wtf/text/WTFString.h:
1985 2013-11-18 Carlos Garcia Campos <cgarcia@igalia.com>
1987 Unreviewed. Fix make distcheck.
1989 * GNUmakefile.list.am: Add missing header file.
1991 2013-11-16 Alexey Proskuryakov <ap@apple.com>
1993 Use uint8_t vectors for WebCrypto data
1994 https://bugs.webkit.org/show_bug.cgi?id=124466
1996 Reviewed by Sam Weinig.
1998 Binary data can be UTF-8, in which case "char*" is idiomatic, or it can be arbitrary
1999 binary data, in which case "uint8_t*" is more common.
2001 Changed encode functions that took "const char *" to "const void*", and decode
2002 functions that took "Vector<char>&" now take an adapter class.
2004 The adapter relies on Vector<char> and Vector<uint8_t> classes having an identical layout.
2006 * wtf/text/Base64.cpp:
2007 (WTF::base64Encode):
2008 (WTF::base64URLEncode):
2009 (WTF::base64DecodeInternal):
2010 (WTF::base64Decode):
2011 (WTF::base64URLDecode):
2012 * wtf/text/Base64.h:
2013 (WTF::SignedOrUnsignedCharVectorAdapter):
2014 (WTF::ConstSignedOrUnsignedCharVectorAdapter):
2015 (WTF::base64Encode):
2016 (WTF::base64URLEncode):
2018 2013-11-15 Alexey Proskuryakov <ap@apple.com>
2020 Support exporting symmetric keys as JWK
2021 https://bugs.webkit.org/show_bug.cgi?id=124442
2023 Reviewed by Sam Weinig.
2025 Base64URL encoding doesn't use '=' padding, and doesn't need any other options.
2026 Added this mode for encode, and removed policy arguments from exposed functions.
2028 * wtf/text/Base64.cpp:
2029 (WTF::base64EncodeInternal):
2030 (WTF::base64URLEncode):
2031 (WTF::base64URLDecode):
2032 * wtf/text/Base64.h:
2033 (WTF::base64URLEncode):
2035 2013-11-15 Mark Hahnenberg <mhahnenberg@apple.com>
2037 Remove VTableSpectrum
2038 https://bugs.webkit.org/show_bug.cgi?id=124427
2040 Reviewed by Filip Pizlo.
2044 2013-11-15 Jer Noble <jer.noble@apple.com>
2046 MediaTime addition and subtraction operators have errors when the rhs is infinite.
2047 https://bugs.webkit.org/show_bug.cgi?id=124413
2049 Reviewed by Eric Carlson.
2051 Correctly account for infinities that can occur on the right-hand side of addition or
2052 subtraction operators.
2054 * wtf/MediaTime.cpp:
2055 (WTF::MediaTime::operator+):
2056 (WTF::MediaTime::operator-):
2058 2013-11-14 Oliver Hunt <oliver@apple.com>
2060 Make CLoop easier to build, and make it work
2061 https://bugs.webkit.org/show_bug.cgi?id=124359
2063 Reviewed by Geoffrey Garen.
2065 Make building with the CLoop forcibly enabled manually
2070 2013-11-14 Andreas Kling <akling@apple.com>
2072 FontDescription copies should share families list, not duplicate it.
2073 <https://webkit.org/b/124338>
2075 Add RefCountedArray::operator==.
2077 Reviewed by Antti Koivisto.
2079 2013-11-13 Anders Carlsson <andersca@apple.com>
2081 Add a Vector constructor that takes an std::initializer_list
2082 https://bugs.webkit.org/show_bug.cgi?id=124287
2084 Reviewed by Antti Koivisto.
2088 (WTF::Vector::Vector):
2090 2013-11-12 Brent Fulgham <bfulgham@apple.com>
2092 [Win] Unreviewed gardening.
2094 * WTF.vcxproj/WTF.vcxproj.filters: Tidy up filters so files show up
2095 in their proper directories.
2097 2013-11-12 Alex Christensen <achristensen@webkit.org>
2099 Build GStreamer files on Windows.
2100 https://bugs.webkit.org/show_bug.cgi?id=124180
2102 Reviewed by Brent Fulgham.
2104 * WTF.vcxproj/WTF.vcxproj:
2105 * WTF.vcxproj/WTF.vcxproj.filters:
2106 * WTF.vcxproj/copy-files.cmd:
2107 Include gobject files in WinCairo build.
2109 2013-11-09 Filip Pizlo <fpizlo@apple.com>
2111 Switch FTL GetById/PutById IC's over to using AnyRegCC
2112 https://bugs.webkit.org/show_bug.cgi?id=124094
2114 Reviewed by Sam Weinig.
2116 I needed to add another set operation, namely filter(), which is an in-place set
2119 * wtf/BitVector.cpp:
2120 (WTF::BitVector::filterSlow):
2122 (WTF::BitVector::filter):
2124 2013-11-10 Ryuan Choi <ryuan.choi@samsung.com>
2126 [EFL] Build break on Ubuntu 13.10
2127 https://bugs.webkit.org/show_bug.cgi?id=124131
2129 Reviewed by Gyuyoung Kim.
2131 Turned DisallowCType macros off on EFL port because gtest-internal.h uses isspace().
2133 * wtf/DisallowCType.h: Added !PLATFORM(EFL) guard.
2135 2013-11-09 Patrick Gansterer <paroga@webkit.org>
2137 Move RunLoop from WebCore to WTF
2138 https://bugs.webkit.org/show_bug.cgi?id=116606
2140 Reviewed by Anders Carlsson.
2142 With this change RunLoop can be used in JavaScriptCore too.
2144 * GNUmakefile.list.am:
2145 * WTF.vcxproj/WTF.vcxproj:
2146 * WTF.xcodeproj/project.pbxproj:
2147 * wtf/CMakeLists.txt:
2148 * wtf/PlatformBlackBerry.cmake:
2149 * wtf/PlatformEfl.cmake:
2150 * wtf/PlatformGTK.cmake:
2151 * wtf/PlatformWin.cmake:
2152 * wtf/RunLoop.cpp: Renamed from Source/WebCore/platform/RunLoop.cpp.
2153 (WTF::RunLoop::Holder::Holder):
2154 (WTF::RunLoop::Holder::runLoop):
2155 (WTF::RunLoop::initializeMainRunLoop):
2156 (WTF::RunLoop::current):
2157 (WTF::RunLoop::main):
2158 (WTF::RunLoop::isMain):
2159 (WTF::RunLoop::performWork):
2160 (WTF::RunLoop::dispatch):
2161 * wtf/RunLoop.h: Renamed from Source/WebCore/platform/RunLoop.h.
2162 (WTF::RunLoop::TimerBase::startRepeating):
2163 (WTF::RunLoop::TimerBase::startOneShot):
2164 (WTF::RunLoop::TimerBase::isRepeating):
2165 (WTF::RunLoop::Timer::Timer):
2166 (WTF::RunLoop::Timer::fired):
2167 * wtf/blackberry/RunLoopBlackBerry.cpp: Renamed from Source/WebCore/platform/blackberry/RunLoopBlackBerry.cpp.
2168 (WTF::RunLoop::RunLoop):
2169 (WTF::RunLoop::~RunLoop):
2170 (WTF::RunLoop::wakeUp):
2171 * wtf/cf/RunLoopCF.cpp: Renamed from Source/WebCore/platform/cf/RunLoopCF.cpp.
2172 (WTF::RunLoop::performWork):
2173 (WTF::RunLoop::RunLoop):
2174 (WTF::RunLoop::~RunLoop):
2175 (WTF::RunLoop::runForDuration):
2176 (WTF::RunLoop::wakeUp):
2177 (WTF::RunLoop::run):
2178 (WTF::RunLoop::stop):
2179 (WTF::RunLoop::TimerBase::timerFired):
2180 (WTF::RunLoop::TimerBase::TimerBase):
2181 (WTF::RunLoop::TimerBase::~TimerBase):
2182 (WTF::RunLoop::TimerBase::start):
2183 (WTF::RunLoop::TimerBase::stop):
2184 (WTF::RunLoop::TimerBase::isActive):
2185 * wtf/efl/RunLoopEfl.cpp: Renamed from Source/WebCore/platform/efl/RunLoopEfl.cpp.
2186 (WTF::RunLoop::RunLoop):
2187 (WTF::RunLoop::~RunLoop):
2188 (WTF::RunLoop::run):
2189 (WTF::RunLoop::stop):
2190 (WTF::RunLoop::wakeUpEvent):
2191 (WTF::RunLoop::wakeUp):
2192 (WTF::RunLoop::TimerBase::TimerBase):
2193 (WTF::RunLoop::TimerBase::~TimerBase):
2194 (WTF::RunLoop::TimerBase::timerFired):
2195 (WTF::RunLoop::TimerBase::start):
2196 (WTF::RunLoop::TimerBase::stop):
2197 (WTF::RunLoop::TimerBase::isActive):
2198 * wtf/gtk/RunLoopGtk.cpp: Renamed from Source/WebCore/platform/gtk/RunLoopGtk.cpp.
2199 (WTF::RunLoop::RunLoop):
2200 (WTF::RunLoop::~RunLoop):
2201 (WTF::RunLoop::run):
2202 (WTF::RunLoop::innermostLoop):
2203 (WTF::RunLoop::pushNestedMainLoop):
2204 (WTF::RunLoop::popNestedMainLoop):
2205 (WTF::RunLoop::stop):
2206 (WTF::RunLoop::queueWork):
2207 (WTF::RunLoop::wakeUp):
2208 (WTF::RunLoop::TimerBase::TimerBase):
2209 (WTF::RunLoop::TimerBase::~TimerBase):
2210 (WTF::RunLoop::TimerBase::clearTimerSource):
2211 (WTF::RunLoop::TimerBase::timerFiredCallback):
2212 (WTF::RunLoop::TimerBase::start):
2213 (WTF::RunLoop::TimerBase::stop):
2214 (WTF::RunLoop::TimerBase::isActive):
2215 * wtf/win/RunLoopWin.cpp: Renamed from Source/WebCore/platform/win/RunLoopWin.cpp.
2216 (WTF::RunLoop::RunLoopWndProc):
2217 (WTF::RunLoop::wndProc):
2218 (WTF::RunLoop::run):
2219 (WTF::RunLoop::stop):
2220 (WTF::RunLoop::registerRunLoopMessageWindowClass):
2221 (WTF::RunLoop::RunLoop):
2222 (WTF::RunLoop::~RunLoop):
2223 (WTF::RunLoop::wakeUp):
2224 (WTF::RunLoop::TimerBase::timerFired):
2225 (WTF::generateTimerID):
2226 (WTF::RunLoop::TimerBase::TimerBase):
2227 (WTF::RunLoop::TimerBase::~TimerBase):
2228 (WTF::RunLoop::TimerBase::start):
2229 (WTF::RunLoop::TimerBase::stop):
2230 (WTF::RunLoop::TimerBase::isActive):
2232 2013-11-08 Alexey Proskuryakov <ap@apple.com>
2234 Make base64url decoding actually work
2235 https://bugs.webkit.org/show_bug.cgi?id=124050
2237 Reviewed by Sam Weinig.
2239 * wtf/text/Base64.cpp: (WTF::base64DecodeInternal): Don't hardcode knowledge about
2240 alphabet, put it into the map.
2242 2013-11-07 Denis Nomiyama <d.nomiyama@samsung.com>
2244 [GTK] Glyphs in vertical text tests are rotated 90 degrees clockwise
2245 https://bugs.webkit.org/show_bug.cgi?id=50619
2247 Reviewed by Martin Robinson.
2249 Enabled OPENTYPE_VERTICAL by default on GTK+ and EFL ports, which are
2250 currently using Freetype.
2254 2013-11-06 Daniel Bates <dabates@apple.com>
2256 [iOS] Upstream Letterpress effect
2257 https://bugs.webkit.org/show_bug.cgi?id=123932
2259 Reviewed by Sam Weinig.
2261 Add feature define ENABLE_LETTERPRESS disabled by default. We only enable
2264 * wtf/FeatureDefines.h:
2266 2013-11-06 Nick Diego Yamane <nick.yamane@openbossa.org>
2268 Disable "unused local typedefs" warning for GCC 4.7
2269 https://bugs.webkit.org/show_bug.cgi?id=123913
2271 Reviewed by Martin Robinson.
2273 That warning was actually introduced in gcc 4.7.0.
2274 See: http://gcc.gnu.org/gcc-4.7/changes.html
2278 2013-11-06 Daniel Bates <dabates@apple.com>
2280 Add ENABLE(TEXT_SELECTION)
2281 https://bugs.webkit.org/show_bug.cgi?id=123827
2283 Reviewed by Ryosuke Niwa.
2285 Enable selection painting by default on all ports except iOS.
2287 * wtf/FeatureDefines.h:
2289 2013-11-04 Alexey Proskuryakov <ap@apple.com>
2291 Implement base64url encoding from RFC 4648
2292 https://bugs.webkit.org/show_bug.cgi?id=123767
2294 Reviewed by Sam Weinig.
2296 No tests yet, will be covered by JWK tests for WebCrypto.
2298 * wtf/text/Base64.cpp:
2299 (WTF::base64EncodeInternal):
2300 (WTF::base64Encode):
2301 (WTF::base64URLEncode):
2302 (WTF::base64DecodeInternal):
2303 (WTF::base64Decode):
2304 (WTF::base64URLDecode):
2305 * wtf/text/Base64.h:
2306 (WTF::base64URLEncode):
2308 2013-11-04 Brent Fulgham <bfulgham@apple.com>
2310 [Win] User VersionStamper for official builds
2311 https://bugs.webkit.org/show_bug.cgi?id=123758
2313 Reviewed by Tim Horton.
2315 * WTF.vcxproj/WTFPostBuild.cmd: Add missing command to run VersionStamper.exe.
2317 2013-11-01 Jer Noble <jer.noble@apple.com>
2319 [PluginProxy] Add a setting to disable video plugin proxy support in HTMLMediaElement.
2320 https://bugs.webkit.org/show_bug.cgi?id=123621
2322 Reviewed by Eric Carlson.
2324 Enable WTF_USE_AVFOUNDATION and add some HAVE_AVFOUNDATION_* defines
2325 to replace the existing __MAC_OS_X_VERSION_MIN_REQUIRED macros in
2326 MediaPlayerPrivateAVFoundationObjC.mm.
2330 2013-11-02 Patrick Gansterer <paroga@webkit.org>
2332 Fix compilation of DateMath.cpp with MSVC
2333 https://bugs.webkit.org/show_bug.cgi?id=123680
2335 Reviewed by Darin Adler.
2338 (WTF::appendTwoDigitNumber): Help the compiler finding the
2339 correct overload by casting the characters to LChar.
2341 2013-11-02 Filip Pizlo <fpizlo@apple.com>
2343 LLVM assertion failures should funnel into WTF's crash handling
2344 https://bugs.webkit.org/show_bug.cgi?id=123682
2346 Reviewed by Geoffrey Garen.
2348 Give JSC some new toys to play with for crash handling.
2350 * wtf/Assertions.cpp:
2353 2013-11-02 Patrick Gansterer <paroga@webkit.org>
2355 Fix UnicodeWchar after r157330.
2356 https://bugs.webkit.org/show_bug.cgi?id=123668
2358 Reviewed by Darin Adler.
2360 * wtf/unicode/wchar/UnicodeWchar.cpp:
2365 * wtf/unicode/wchar/UnicodeWchar.h:
2370 2013-11-02 Andreas Kling <akling@apple.com>
2372 Make remaining StringImpl functions return PassRef.
2373 <https://webkit.org/b/123683>
2375 Okay, this seems to work well! Let's go all in and convert the
2376 remaining StringImpl functions to return PassRef<StringImpl> instead
2377 of PassRefPtr where we know that null is never returned.
2379 Reviewed by Anders Carlsson.
2381 2013-11-02 Andreas Kling <akling@apple.com>
2383 StringImpl::upper() should return PassRef.
2384 <https://webkit.org/b/123655>
2386 Make upper() return PassRef<StringImpl>. Spotted and removed some
2387 ref churning in implementations.
2389 Reviewed by Darin Adler.
2391 2013-11-01 Alexey Proskuryakov <ap@apple.com>
2393 Add WebCrypto AES-CBC
2394 https://bugs.webkit.org/show_bug.cgi?id=123647
2396 Reviewed by Anders Carlsson.
2398 * wtf/FixedArray.h: (WTF::FixedArray::data): Added a const version of the function.
2400 * wtf/Vector.h: Added a comment to Vector constructor about how it is different
2403 2013-11-01 Joseph Pecoraro <pecoraro@apple.com>
2405 Unreviewed extended attempt at Windows build fix after r158471.
2407 * wtf/text/cf/AtomicStringCF.cpp:
2408 * wtf/text/cf/StringCF.cpp:
2409 * wtf/text/cf/StringImplCF.cpp:
2411 2013-11-01 Joseph Pecoraro <pecoraro@apple.com>
2413 Unreviewed attempt at Windows build fix after r158471.
2415 * wtf/text/cf/AtomicStringCF.cpp:
2416 * wtf/text/cf/StringCF.cpp:
2417 * wtf/text/cf/StringImplCF.cpp:
2419 2013-11-01 Andreas Kling <akling@apple.com>
2421 Make more StringImpl construction helpers return PassRef.
2422 <https://webkit.org/b/123652>
2424 Tweak another handful of StringImpl constructor functions to return
2425 PassRef<StringImpl> instead of PassRefPtr.
2427 Reviewed by Anders Carlsson.
2429 2013-11-01 Andreas Kling <akling@apple.com>
2431 Neuter WTF_MAKE_FAST_ALLOCATED in GLOBAL_FASTMALLOC_NEW builds.
2432 <https://webkit.org/b/123639>
2434 When building with GLOBAL_FASTMALLOC_NEW, we don't need to expand
2435 operator new/delete overrides in every class.
2437 This change makes allocations group up nicely in Instruments,
2438 instead of being split between "WTF::fastMalloc" and "operator new"
2439 depending on whether the class had WTF_MAKE_FAST_ALLOCATED.
2441 Reviewed by Anders Carlsson.
2443 2013-11-01 Joseph Pecoraro <pecoraro@apple.com>
2445 Move CF/Mac WTF String implementations down into WTF
2446 https://bugs.webkit.org/show_bug.cgi?id=123635
2448 Reviewed by Sam Weinig.
2450 * WTF.vcxproj/WTF.vcxproj:
2451 * WTF.vcxproj/WTF.vcxproj.filters:
2452 * WTF.xcodeproj/project.pbxproj:
2453 * wtf/text/AtomicString.h:
2454 * wtf/text/StringImpl.h:
2455 * wtf/text/WTFString.h:
2456 * wtf/text/cf/AtomicStringCF.cpp: Renamed from Source/WebCore/platform/text/cf/AtomicStringCF.cpp.
2457 (WTF::AtomicString::add):
2458 * wtf/text/cf/StringCF.cpp: Renamed from Source/WebCore/platform/text/cf/StringCF.cpp.
2459 (WTF::String::String):
2460 (WTF::String::createCFString):
2461 * wtf/text/cf/StringImplCF.cpp: Renamed from Source/WebCore/platform/text/cf/StringImplCF.cpp.
2462 (garbageCollectionEnabled):
2463 (WTF::StringWrapperCFAllocator::retain):
2464 (WTF::StringWrapperCFAllocator::release):
2465 (WTF::StringWrapperCFAllocator::copyDescription):
2466 (WTF::StringWrapperCFAllocator::allocate):
2467 (WTF::StringWrapperCFAllocator::reallocate):
2468 (WTF::StringWrapperCFAllocator::deallocateOnMainThread):
2469 (WTF::StringWrapperCFAllocator::deallocate):
2470 (WTF::StringWrapperCFAllocator::preferredSize):
2471 (WTF::StringWrapperCFAllocator::create):
2472 (WTF::StringWrapperCFAllocator::allocator):
2473 (WTF::StringImpl::createCFString):
2474 * wtf/text/mac/StringImplMac.mm: Renamed from Source/WebCore/platform/text/mac/StringImplMac.mm.
2475 (WTF::StringImpl::operator NSString *):
2476 * wtf/text/mac/StringMac.mm: Renamed from Source/WebCore/platform/text/mac/StringMac.mm.
2477 (WTF::String::String):
2479 2013-11-01 Emilio Pozuelo Monfort <pochu27@gmail.com>
2482 https://bugs.webkit.org/show_bug.cgi?id=123625
2484 Original patch from John David Anglin <dave.anglin@bell.net>
2486 Reviewed by Darin Adler.
2491 2013-11-01 Patrick Gansterer <paroga@webkit.org>
2493 Buildfix for !USE(ICU_UNICODE) after 156968.
2495 * wtf/unicode/CollatorDefault.cpp:
2496 (WTF::Collator::userDefault):
2498 2013-10-30 Oliver Hunt <oliver@apple.com>
2500 Implement basic ES6 Math functions
2501 https://bugs.webkit.org/show_bug.cgi?id=123536
2503 Reviewed by Michael Saboff.
2505 Add basic implementations of necessary methods to MathExtras to
2506 deal with MSVC not supplying them
2516 2013-10-30 Commit Queue <commit-queue@webkit.org>
2518 Unreviewed, rolling out r158299.
2519 http://trac.webkit.org/changeset/158299
2520 https://bugs.webkit.org/show_bug.cgi?id=123558
2522 caused assertion failures in fast/canvas/canvas-color-
2523 serialization.html and fast/forms/input-text-paste-
2524 maxlength.html (Requested by rniwa on #webkit).
2526 * wtf/text/StringStatics.cpp:
2527 (WTF::StringImpl::empty):
2529 2013-10-30 Ryosuke Niwa <rniwa@webkit.org>
2531 Remove code for Mac Lion
2532 https://bugs.webkit.org/show_bug.cgi?id=123542
2534 Reviewed by Anders Carlsson.
2538 2013-10-30 Peter Molnar <pmolnar.u-szeged@partner.samsung.com>
2540 Remove PCRE workaround.
2541 https://bugs.webkit.org/show_bug.cgi?id=123265
2543 Reviewed by Brent Fulgham.
2545 * wtf/text/StringStatics.cpp:
2546 (WTF::StringImpl::empty):
2548 2013-10-30 peavo@outlook.com <peavo@outlook.com>
2550 [Win] Compile errors when enabling DFG JIT.
2551 https://bugs.webkit.org/show_bug.cgi?id=120998
2553 Reviewed by Brent Fulgham.
2555 * wtf/CompilationThread.cpp: Use new ThreadingOnce class instead of pthread_once.
2556 (WTF::initializeCompilationThreads):
2557 * wtf/ThreadingOnce.h: Added ThreadingOnce class encapsulating pthread_once functionality.
2558 (WTF::ThreadingOnce::ThreadingOnce):
2559 (WTF::ThreadingOnce::~ThreadingOnce):
2560 (WTF::ThreadingOnce::callOnce):
2561 * wtf/text/CString.h: Export needed symbols.
2563 2013-10-30 Alex Christensen <achristensen@webkit.org>
2565 Disabled JIT on Win64.
2566 https://bugs.webkit.org/show_bug.cgi?id=122472
2568 Reviewed by Geoffrey Garen.
2571 Disabled JIT on Win64.
2573 2013-10-29 Andreas Kling <akling@apple.com>
2575 StringImpl::isolatedCopy() should return PassRef.
2576 <https://webkit.org/b/123484>
2578 Make isolatedCopy() return a PassRef<StringImpl>.
2580 Reviewed by Anders Carlsson.
2582 2013-10-29 Jer Noble <jer.noble@apple.com>
2584 [MSE] [Mac] Enable MediaSource on the Mac
2585 https://bugs.webkit.org/show_bug.cgi?id=122484
2587 Reviewed by Darin Adler.
2589 Enable ENABLE_MEDIA_SOURCE.
2591 * wtf/FeatureDefines.h:
2592 * wtf/Platform.h: Force a clean build.
2594 2013-10-29 Andreas Kling <akling@apple.com>
2596 StringImpl::adopt() should return PassRef.
2597 <https://webkit.org/b/123456>
2599 Make the StringImpl::adopt() functions return a PassRef<StringImpl>.
2601 Reviewed by Anders Carlsson.
2603 2013-10-29 Jinwoo Song <jinwoo7.song@samsung.com>
2605 Re-enable simple line layout for EFL
2606 https://bugs.webkit.org/show_bug.cgi?id=123402
2608 Reviewed by Antti Koivisto.
2610 * wtf/FeatureDefines.h: Enable 8-bit TextRun support for EFL port.
2612 2013-10-28 Anders Carlsson <andersca@apple.com>
2614 RunLoop::dispatch should take an std::function
2615 https://bugs.webkit.org/show_bug.cgi?id=123407
2617 Reviewed by Andreas Kling.
2619 * wtf/FunctionDispatcher.h:
2621 2013-10-28 Andreas Kling <akling@apple.com>
2623 RenderElement::m_style should be a Ref.
2624 <https://webkit.org/b/123401>
2626 Added a Ref::replace() so we can Indiana Jones the new style in
2627 RenderElement::setStyle() while keeping a handle on the old style
2630 Reviewed by Antti Koivisto.
2632 2013-10-28 Carlos Garcia Campos <cgarcia@igalia.com>
2634 Unreviewed. Fix make distcheck.
2636 * GNUmakefile.list.am: Remove unexistent file from compilation.
2638 2013-10-28 Bastien Nocera <hadess@hadess.net>
2640 Replace 0 timeouts g_timeout_add() by g_idle_add()
2641 https://bugs.webkit.org/show_bug.cgi?id=123260
2643 Reviewed by Carlos Garcia Campos.
2645 A zero timeout should be equivalent to using g_idle_add_full(G_PRIORITY_DEFAULT, ...)
2646 without the nagging feeling that the wrong API was used.
2648 * wtf/gtk/MainThreadGtk.cpp: Use g_idle_add() instead
2650 (WTF::scheduleDispatchFunctionsOnMainThread):
2652 2013-10-28 Zan Dobersek <zdobersek@igalia.com>
2654 Re-enable simple line layout for GTK
2655 https://bugs.webkit.org/show_bug.cgi?id=123388
2657 Reviewed by Andreas Kling.
2659 * wtf/FeatureDefines.h: Enable the 8-bit TextRun support for the GTK port.
2661 2013-10-25 Joseph Pecoraro <pecoraro@apple.com>
2663 Upstream ENABLE(REMOTE_INSPECTOR) and enable on iOS and Mac
2664 https://bugs.webkit.org/show_bug.cgi?id=123111
2666 Reviewed by Timothy Hatcher.
2668 * wtf/FeatureDefines.h:
2670 2013-10-25 Jer Noble <jer.noble@apple.com>
2672 [WTF] Add a multiplication operator (and a few others) to MediaTime
2673 https://bugs.webkit.org/show_bug.cgi?id=123137
2675 Reviewed by Eric Carlson.
2677 Add a multiplication operator and an inequality operator to the
2678 MediaTime class for use by MSE.
2680 * wtf/MediaTime.cpp:
2681 (WTF::signum): Moved to top of file.
2682 (WTF::MediaTime::operator*): Added.
2683 (WTF::MediaTime::operator!=): Added.
2685 (WTF::operator*): Added non-class version of operator*.
2687 2013-10-24 Jer Noble <jer.noble@apple.com>
2689 [Mac] Add helper methods to convert CMTime <--> MediaTime
2690 https://bugs.webkit.org/show_bug.cgi?id=123285
2692 Reviewed by Eric Carlson.
2694 Add a #ifdef header_h protector.
2698 2013-10-24 Mark Rowe <mrowe@apple.com>
2700 Remove references to OS X 10.7 from Xcode configuration settings.
2702 Now that we're not building for OS X 10.7 they're no longer needed.
2704 Reviewed by Anders Carlsson.
2706 * Configurations/Base.xcconfig:
2707 * Configurations/DebugRelease.xcconfig:
2709 2013-10-24 Mark Rowe <mrowe@apple.com>
2711 <rdar://problem/15312643> Prepare for the mysterious future.
2713 Reviewed by David Kilzer.
2715 * Configurations/Base.xcconfig:
2716 * Configurations/DebugRelease.xcconfig:
2718 2013-10-24 Commit Queue <commit-queue@webkit.org>
2720 Unreviewed, rolling out r157931.
2721 http://trac.webkit.org/changeset/157931
2722 https://bugs.webkit.org/show_bug.cgi?id=123284
2724 Seems to have caused a lot of assertions on debug bots
2725 (Requested by ap on #webkit).
2727 * wtf/text/StringStatics.cpp:
2728 (WTF::StringImpl::empty):
2730 2013-10-24 Peter Molnar <pmolnar.u-szeged@partner.samsung.com>
2732 Remove PCRE workaround.
2733 https://bugs.webkit.org/show_bug.cgi?id=123265
2735 Reviewed by Darin Adler.
2737 * wtf/text/StringStatics.cpp:
2738 (WTF::StringImpl::empty):
2740 2013-10-24 Peter Molnar <pmolnar.u-szeged@partner.samsung.com>
2742 Remove Clang workaround.
2743 https://bugs.webkit.org/show_bug.cgi?id=123262
2745 Reviewed by Anders Carlsson.
2747 * wtf/CheckedArithmetic.h:
2748 (WTF::Checked::Checked):
2750 2013-10-24 Ryuan Choi <ryuan.choi@samsung.com>
2752 [EFL] Build break with latest EFL 1.8 libraries.
2753 https://bugs.webkit.org/show_bug.cgi?id=123245
2755 Reviewed by Gyuyoung Kim.
2757 After fixed build break on EFL 1.8 at r138326, EFL libraries are changed
2758 Eo typedef and splitted header files which contain version macro.
2760 * wtf/OwnPtrCommon.h: Changed Eo typedef.
2761 * wtf/efl/RefPtrEfl.h: Ditto.
2763 2013-10-24 Carlos Garcia Campos <cgarcia@igalia.com>
2765 [GObject bindings] Make EventTarget interface introspectable
2766 https://bugs.webkit.org/show_bug.cgi?id=77835
2768 Reviewed by Gustavo Noronha Silva.
2770 Add support for use GRefPtr with GClosure.
2772 * wtf/gobject/GRefPtr.cpp:
2775 * wtf/gobject/GRefPtr.h:
2776 * wtf/gobject/GTypedefs.h:
2778 2013-10-23 Anders Carlsson <andersca@apple.com>
2780 Remove USE(LOCKFREE_THREADSAFEREFCOUNTED)
2781 https://bugs.webkit.org/show_bug.cgi?id=123228
2783 Reviewed by Geoffrey Garen.
2785 All ports support USE(LOCKFREE_THREADSAFEREFCOUNTED) now and taking a lock on every ref/deref seems bad.
2788 * wtf/ThreadSafeRefCounted.h:
2789 (WTF::ThreadSafeRefCountedBase::ref):
2790 (WTF::ThreadSafeRefCountedBase::refCount):
2791 (WTF::ThreadSafeRefCountedBase::derefBase):
2793 2013-10-23 Anders Carlsson <andersca@apple.com>
2796 https://bugs.webkit.org/show_bug.cgi?id=123226
2798 Reviewed by Dan Bernstein.
2800 HAVE_XPC has been true on Mac since Lion, so remove it.
2804 2013-10-23 Andreas Kling <akling@apple.com>
2806 Make more StringImpl construction functions return PassRef.
2807 <https://webkit.org/b/123203>
2809 Knock out a couple more of the StringImpl construction helpers that
2810 always return a non-null StringImpl.
2812 Reviewed by Antti Koivisto.
2814 2013-10-22 Filip Pizlo <fpizlo@apple.com>
2816 FTL should be able to do some simple inline caches using LLVM patchpoints
2817 https://bugs.webkit.org/show_bug.cgi?id=123164
2819 Reviewed by Mark Hahnenberg.
2821 This needed some better bitvector support, like merging (|=), excluding (&=~),
2822 hashing, and bit counting.
2824 * wtf/BitVector.cpp:
2825 (WTF::BitVector::setSlow):
2826 (WTF::BitVector::excludeSlow):
2827 (WTF::BitVector::bitCountSlow):
2828 (WTF::BitVector::equalsSlowCase):
2829 (WTF::BitVector::hashSlowCase):
2830 (WTF::BitVector::dump):
2832 (WTF::BitVector::merge):
2833 (WTF::BitVector::exclude):
2834 (WTF::BitVector::bitCount):
2835 (WTF::BitVector::BitVector):
2836 (WTF::BitVector::isEmptyValue):
2837 (WTF::BitVector::isDeletedValue):
2838 (WTF::BitVector::isEmptyOrDeletedValue):
2839 (WTF::BitVector::operator==):
2840 (WTF::BitVector::hash):
2841 (WTF::BitVectorHash::hash):
2842 (WTF::BitVectorHash::equal):
2844 (WTF::CustomHashTraits::constructDeletedValue):
2845 (WTF::CustomHashTraits::isDeletedValue):
2846 (WTF::CustomHashTraits::emptyValue):
2847 (WTF::CustomHashTraits::isEmptyValue):
2848 * wtf/StdLibExtras.h:
2851 2013-10-23 Allan Sandfeld Jensen <allan.jensen@digia.com>
2853 Clean-up in Atomics.h
2854 https://bugs.webkit.org/show_bug.cgi?id=123207
2856 Reviewed by Anders Carlsson.
2858 Atomics.h has two confusing and bit-rotted ifdefs with comments.
2860 The first about CPU(SPARC64) was rendered obsolete when we switched
2861 from __exchange_and_add to __sync_add_and_fetch.
2863 The second was caused by a wrong definition that apparently only
2864 caused trouble on GCC.
2868 2013-10-22 Andreas Kling <akling@apple.com>
2870 StringImpl::lower() should return a PassRef.
2871 <https://webkit.org/b/123190>
2873 Test the waters and hack enough of StringImpl to be able to return
2874 a PassRef<StringImpl> from lower().
2876 Also gave String a constructor that takes a PassRef<StringImpl>.
2878 Reviewed by Antti Koivisto.
2880 2013-10-22 Commit Queue <commit-queue@webkit.org>
2882 Unreviewed, rolling out r157835.
2883 http://trac.webkit.org/changeset/157835
2884 https://bugs.webkit.org/show_bug.cgi?id=123192
2886 broke 32-bit builds (Requested by smfr on #webkit).
2888 * wtf/MediaTime.cpp:
2892 2013-10-22 Jer Noble <jer.noble@apple.com>
2894 [WTF] Add a multiplication operator (and a few others) to MediaTime
2895 https://bugs.webkit.org/show_bug.cgi?id=123137
2897 Reviewed by Eric Carlson.
2899 Add a multiplication operator and an inequality operator to the
2900 MediaTime class for use by MSE.
2902 * wtf/MediaTime.cpp:
2903 (WTF::signum): Moved to top of file.
2904 (WTF::MediaTime::operator*): Added.
2905 (WTF::MediaTime::operator!=): Added.
2907 (WTF::operator*): Added non-class version of operator*.
2909 2013-10-21 Gyuyoung Kim <gyuyoung.kim@samsung.com>
2911 Make TYPE_CASTS_BASE more flexible
2912 https://bugs.webkit.org/show_bug.cgi?id=122951
2914 Reviewed by Andreas Kling.
2916 TYPE_CASTS_BASE is being used by node|element type casts. However, it is difficult
2917 to be used by other type casts. For instance, CSSValue, Accessibility and so on.
2918 This patch modifies TYPE_CASTS_BASE which can support other type casts.
2920 Besides TYPE_CASTS_BASE body is moved from node.h to Assertions.h.
2924 2013-10-20 Filip Pizlo <fpizlo@apple.com>
2926 StructureStubInfo's usedRegisters set should be able to track all registers, not just the ones that our JIT's view as temporaries
2927 https://bugs.webkit.org/show_bug.cgi?id=123076
2929 Reviewed by Sam Weinig.
2931 Teach BitVector how to efficiently merge (i.e. bitvector |=).
2933 * wtf/BitVector.cpp:
2934 (WTF::BitVector::mergeSlow):
2936 (WTF::BitVector::merge):
2937 (WTF::BitVector::cleanseInlineBits):
2939 2013-10-19 Jer Noble <jer.noble@apple.com>
2941 Unreviewed roll out of r157695; broke Mac builds.
2943 * wtf/FeatureDefines.h:
2945 2013-10-07 Jer Noble <jer.noble@apple.com>
2947 [MSE] [Mac] Enable MediaSource on the Mac
2948 https://bugs.webkit.org/show_bug.cgi?id=122484
2950 Reviewed by Darin Adler.
2952 Enable ENABLE_MEDIA_SOURCE.
2954 * wtf/FeatureDefines.h:
2956 2013-10-19 Andreas Kling <akling@apple.com>
2958 RefPtr::releaseNonNull() incorrectly increments the refcount.
2959 <https://webkit.org/b/123063>
2961 Make releaseNonNull() use adoptRef(T&), mirroring release().
2963 Reviewed by Anders Carlsson.
2965 2013-10-18 Andreas Kling <akling@apple.com>
2967 Start passing RenderStyle around with PassRef.
2968 <https://webkit.org/b/123051>
2970 Added some new PassRef tricks to make this patch possible.
2972 Reviewed by Darin Adler.
2975 (WTF::PassRef::get):
2977 Added a get() helper to facilitate writing functions that
2978 construct a new object and call some functions on it before
2981 (WTF::PassRef::dropRef):
2983 This will deref() the referenced object and mark the PassRef
2984 as "passed." This is used in code paths where the PassRef is
2985 going to go out of scope with nobody to take it over.
2987 (WTF::PassRef::leakRef):
2989 Renamed takeReference() to leakRef() and made it public so
2990 we don't have to awkwardly sink the PassRef into a Ref for
2994 (WTF::RefPtr::releaseNonNull):
2996 Added RefPtr::releaseNonNull() for a convenient way of creating
2997 a PassRef<T> from a RefPtr<T>. This function may only be called
2998 if the RefPtr is known to be non-null.
3000 2013-10-18 Filip Pizlo <fpizlo@apple.com>
3002 A CodeBlock's StructureStubInfos shouldn't be in a Vector that we search using code origins and machine code PCs
3003 https://bugs.webkit.org/show_bug.cgi?id=122940
3005 Reviewed by Oliver Hunt.
3007 * GNUmakefile.list.am:
3008 * WTF.vcxproj/WTF.vcxproj:
3009 * WTF.xcodeproj/project.pbxproj:
3010 * wtf/BagToHashMap.h: Added.
3012 * wtf/CMakeLists.txt:
3014 2013-10-18 Anders Carlsson <andersca@apple.com>
3016 Remove spaces between template angle brackets
3017 https://bugs.webkit.org/show_bug.cgi?id=123040
3019 Reviewed by Andreas Kling.
3022 * wtf/CheckedArithmetic.h:
3023 * wtf/Compression.h:
3026 * wtf/HashFunctions.h:
3027 * wtf/HashIterators.h:
3030 * wtf/ListHashSet.h:
3032 * wtf/RefCountedLeakCounter.cpp:
3034 * wtf/SentinelLinkedList.h:
3036 * wtf/SizeLimits.cpp:
3037 * wtf/StreamBuffer.h:
3039 * wtf/VectorTraits.h:
3041 (WTF::WeakReference::create):
3042 (WTF::WeakReference::createUnbound):
3043 (WTF::WeakPtr::WeakPtr):
3044 (WTF::WeakPtrFactory::WeakPtrFactory):
3045 * wtf/text/AtomicString.cpp:
3046 (WTF::AtomicString::add):
3048 * wtf/text/StringConcatenate.h:
3049 * wtf/text/StringImpl.h:
3050 * wtf/text/StringOperators.h:
3053 2013-10-18 Brendan Long <b.long@cablelabs.com>
3055 [GStreamer][GTK] Add GRefPtr::outPtr()
3056 https://bugs.webkit.org/show_bug.cgi?id=122996
3058 Reviewed by Philippe Normand.
3060 * wtf/gobject/GRefPtr.h:
3061 (WTF::GRefPtr::outPtr): Added.
3063 2013-10-17 Geoffrey Garen <ggaren@apple.com>
3065 Tidied up the Vector<T> move constructor
3066 https://bugs.webkit.org/show_bug.cgi?id=122998
3068 Reviewed by Anders Carlsson.
3071 (WTF::::Vector): Don't call swap() "weird". It's the way most std types
3072 implement move constructors.
3074 Do inline this function, so the compiler can optimize away a logical
3075 move into a physical no-op.
3077 2013-10-16 Filip Pizlo <fpizlo@apple.com>
3079 Introduce WTF::Bag and start using it for InlineCallFrameSet
3080 https://bugs.webkit.org/show_bug.cgi?id=122941
3082 Reviewed by Geoffrey Garen.
3084 Introduce WTF::Bag, which is basically an allocation pool. No POD restrictions. Does one
3085 malloc per entry. No need to shrink afterwards.
3087 * GNUmakefile.list.am:
3088 * WTF.vcxproj/WTF.vcxproj:
3089 * WTF.xcodeproj/project.pbxproj:
3094 (WTF::Bag::iterator::iterator):
3095 (WTF::Bag::iterator::operator!):
3096 (WTF::Bag::iterator::operator*):
3097 (WTF::Bag::iterator::operator++):
3098 (WTF::Bag::iterator::operator==):
3101 (WTF::Bag::isEmpty):
3102 * wtf/CMakeLists.txt:
3104 2013-10-17 Andreas Kling <akling@apple.com>
3106 Make it possible to assign a PassRef to a RefPtr.
3107 <https://webkit.org/b/122943>
3109 We have to use std::move when constructing a RefPtr from a PassRef
3110 since there is no copy constructor for the latter.
3112 Reviewed by Antti Koivisto.
3114 2013-10-16 Ryuan Choi <ryuan.choi@samsung.com>
3116 Unreviewed build fix attempt on EFL port after r157520 and r157523
3118 * wtf/PassRef.h: includes <utility>
3120 2013-10-16 Darin Adler <darin@apple.com>
3122 Add PassRef and createRefCounted so we can improve creation of RefCounted objects
3123 https://bugs.webkit.org/show_bug.cgi?id=122904
3125 Reviewed by Anders Carlsson.
3127 * GNUmakefile.list.am: Added PassRef.h.
3128 * WTF.vcxproj/WTF.vcxproj: Ditto.
3129 * WTF.vcxproj/WTF.vcxproj.filters: Ditto.
3130 * WTF.xcodeproj/project.pbxproj: Ditto.
3131 * wtf/CMakeLists.txt: Ditto.
3133 * wtf/Forward.h: Added PassRef. Also re-sorted and un-indented to match what
3134 the style-checking script expects.
3136 * wtf/PassRef.h: Added. Includes the createRefCounted function template, which
3137 is analogous to make_unique, but is for reference counted objects, and also
3138 assumes that new will never return null. Also includes an overload of adoptRef
3139 that takes a reference rather than a pointer.
3141 * wtf/PassRefPtr.h: Include "PassRef.h" so we can share the adopted function.
3142 Got rid of declarations that duplicate ones in there.
3143 (WTF::refIfNotNull): Use nullptr.
3144 (WTF::derefIfNotNull): Use nullptr.
3145 (WTF::PassRefPtr::PassRefPtr): Use nullptr. Added an overload that takes a PassRef.
3146 (WTF::PassRefPtr::operator UnspecifiedBoolType): Use nullptr.
3147 (WTF::PassRefPtr::operator=): Made this deleted instead of compile time assertion.
3148 (WTF::PassRefPtr::PassRefPtr): Made adopting constructor use an adopt tag instead
3149 of an unused boolean.
3150 (WTF::PassRefPtr::leakRef): Use nullptr.
3151 (WTF::adoptRef): Use the adopt tag.
3153 * wtf/Ref.h: Use Noncopyable instead of rolling our own.
3154 (WTF::Ref::Ref): Add an overload that takes a PassRef.
3155 (WTF::Ref::operator=): Ditto.
3157 * wtf/RefPtr.h: Removed unneeded forward declaration of PassRefPtr.
3158 (WTF::RefPtr::RefPtr): Use nullptr. Added overload that takes a PassRef.
3159 (WTF::RefPtr::release): Use nullptr.
3160 (WTF::RefPtr::operator UnspecifiedBoolType): Use nullptr.
3161 (WTF::RefPtr::operator=): Added overload that takes a PassRef.
3162 (WTF::RefPtr::clear): Use nullptr.
3164 * wtf/StdLibExtras.h: Added inline keyword to isPointerTypeAlignmentOkay,
3165 reinterpret_cast_ptr, and make_unique. Seems like a simple oversight that these
3166 were missing before.
3168 2013-10-15 Dean Jackson <dino@apple.com>
3170 Add ENABLE_WEB_ANIMATIONS flag
3171 https://bugs.webkit.org/show_bug.cgi?id=122871
3173 Reviewed by Tim Horton.
3175 Eventually might be http://dev.w3.org/fxtf/web-animations/
3176 but this is just engine-internal work at the moment.
3178 * wtf/FeatureDefines.h:
3180 2013-10-15 Daniel Bates <dabates@apple.com>
3182 [iOS] Upstream JavaScriptCore support for ARM64
3183 https://bugs.webkit.org/show_bug.cgi?id=122762
3185 Reviewed by Oliver Hunt.
3187 * Configurations/Base.xcconfig:
3189 (WTF::weakCompareAndSwap):
3191 * wtf/FastMalloc.cpp:
3195 * wtf/text/ASCIIFastPath.h:
3196 (WTF::copyLCharsFromUCharSource):
3197 * wtf/text/StringImpl.h:
3199 2013-10-14 Zan Dobersek <zdobersek@igalia.com>
3201 Static assertions in WTF::adoptPtr should point to using adoptRef for ref-counted objects
3202 https://bugs.webkit.org/show_bug.cgi?id=122745
3204 Reviewed by Anders Carlsson.
3207 (WTF::adoptPtr): When the object's type is convertible to the RefCountedBase or ThreadSafeRefCountedBase type,
3208 the static assertion should note that adoptRef should be used instead.
3210 2013-10-14 Anders Carlsson <andersca@apple.com>
3212 WebKit Nightlies broken by r157374
3213 https://bugs.webkit.org/show_bug.cgi?id=122736
3215 Reviewed by Andreas Kling.
3217 Add back a callOnMainThread overload that Safari is using.
3219 * wtf/MainThread.cpp:
3220 (WTF::callOnMainThread):
3223 2013-10-13 Darin Adler <darin@apple.com>
3225 Deprecate or remove deleteAllValues functions; there are only a few call sites left
3226 https://bugs.webkit.org/show_bug.cgi?id=122738
3228 Reviewed by Anders Carlsson.
3230 * wtf/Deque.h: Deleted deleteAllValues.
3231 * wtf/HashMap.h: Ditto.
3232 * wtf/HashSet.h: Ditto.
3233 * wtf/ListHashSet.h: Ditto.
3234 * wtf/Vector.h: Renamed deleteAllValues to deprecatedDeleteAllValues.
3236 == Rolled over to ChangeLog-2013-10-13 ==