| 2013-10-18 Anders Carlsson <andersca@apple.com> |
| |
| Remove spaces between template angle brackets |
| https://bugs.webkit.org/show_bug.cgi?id=123040 |
| |
| Reviewed by Andreas Kling. |
| |
| * wtf/AVLTree.h: |
| * wtf/CheckedArithmetic.h: |
| * wtf/Compression.h: |
| * wtf/Functional.h: |
| (WTF::R): |
| * wtf/HashFunctions.h: |
| * wtf/HashIterators.h: |
| * wtf/HashSet.h: |
| (WTF::::contains): |
| * wtf/ListHashSet.h: |
| (WTF::::contains): |
| * wtf/RefCountedLeakCounter.cpp: |
| * wtf/RetainPtr.h: |
| * wtf/SentinelLinkedList.h: |
| (WTF::::remove): |
| * wtf/SizeLimits.cpp: |
| * wtf/StreamBuffer.h: |
| * wtf/Vector.h: |
| * wtf/VectorTraits.h: |
| * wtf/WeakPtr.h: |
| (WTF::WeakReference::create): |
| (WTF::WeakReference::createUnbound): |
| (WTF::WeakPtr::WeakPtr): |
| (WTF::WeakPtrFactory::WeakPtrFactory): |
| * wtf/text/AtomicString.cpp: |
| (WTF::AtomicString::add): |
| (WTF::findString): |
| * wtf/text/StringConcatenate.h: |
| * wtf/text/StringImpl.h: |
| * wtf/text/StringOperators.h: |
| (WTF::operator+): |
| |
| 2013-10-18 Brendan Long <b.long@cablelabs.com> |
| |
| [GStreamer][GTK] Add GRefPtr::outPtr() |
| https://bugs.webkit.org/show_bug.cgi?id=122996 |
| |
| Reviewed by Philippe Normand. |
| |
| * wtf/gobject/GRefPtr.h: |
| (WTF::GRefPtr::outPtr): Added. |
| |
| 2013-10-17 Geoffrey Garen <ggaren@apple.com> |
| |
| Tidied up the Vector<T> move constructor |
| https://bugs.webkit.org/show_bug.cgi?id=122998 |
| |
| Reviewed by Anders Carlsson. |
| |
| * wtf/Vector.h: |
| (WTF::::Vector): Don't call swap() "weird". It's the way most std types |
| implement move constructors. |
| |
| Do inline this function, so the compiler can optimize away a logical |
| move into a physical no-op. |
| |
| 2013-10-16 Filip Pizlo <fpizlo@apple.com> |
| |
| Introduce WTF::Bag and start using it for InlineCallFrameSet |
| https://bugs.webkit.org/show_bug.cgi?id=122941 |
| |
| Reviewed by Geoffrey Garen. |
| |
| Introduce WTF::Bag, which is basically an allocation pool. No POD restrictions. Does one |
| malloc per entry. No need to shrink afterwards. |
| |
| * GNUmakefile.list.am: |
| * WTF.vcxproj/WTF.vcxproj: |
| * WTF.xcodeproj/project.pbxproj: |
| * wtf/Bag.h: Added. |
| (WTF::Bag::Bag): |
| (WTF::Bag::~Bag): |
| (WTF::Bag::add): |
| (WTF::Bag::iterator::iterator): |
| (WTF::Bag::iterator::operator!): |
| (WTF::Bag::iterator::operator*): |
| (WTF::Bag::iterator::operator++): |
| (WTF::Bag::iterator::operator==): |
| (WTF::Bag::begin): |
| (WTF::Bag::end): |
| (WTF::Bag::isEmpty): |
| * wtf/CMakeLists.txt: |
| |
| 2013-10-17 Andreas Kling <akling@apple.com> |
| |
| Make it possible to assign a PassRef to a RefPtr. |
| <https://webkit.org/b/122943> |
| |
| We have to use std::move when constructing a RefPtr from a PassRef |
| since there is no copy constructor for the latter. |
| |
| Reviewed by Antti Koivisto. |
| |
| 2013-10-16 Ryuan Choi <ryuan.choi@samsung.com> |
| |
| Unreviewed build fix attempt on EFL port after r157520 and r157523 |
| |
| * wtf/PassRef.h: includes <utility> |
| |
| 2013-10-16 Darin Adler <darin@apple.com> |
| |
| Add PassRef and createRefCounted so we can improve creation of RefCounted objects |
| https://bugs.webkit.org/show_bug.cgi?id=122904 |
| |
| Reviewed by Anders Carlsson. |
| |
| * GNUmakefile.list.am: Added PassRef.h. |
| * WTF.vcxproj/WTF.vcxproj: Ditto. |
| * WTF.vcxproj/WTF.vcxproj.filters: Ditto. |
| * WTF.xcodeproj/project.pbxproj: Ditto. |
| * wtf/CMakeLists.txt: Ditto. |
| |
| * wtf/Forward.h: Added PassRef. Also re-sorted and un-indented to match what |
| the style-checking script expects. |
| |
| * wtf/PassRef.h: Added. Includes the createRefCounted function template, which |
| is analogous to make_unique, but is for reference counted objects, and also |
| assumes that new will never return null. Also includes an overload of adoptRef |
| that takes a reference rather than a pointer. |
| |
| * wtf/PassRefPtr.h: Include "PassRef.h" so we can share the adopted function. |
| Got rid of declarations that duplicate ones in there. |
| (WTF::refIfNotNull): Use nullptr. |
| (WTF::derefIfNotNull): Use nullptr. |
| (WTF::PassRefPtr::PassRefPtr): Use nullptr. Added an overload that takes a PassRef. |
| (WTF::PassRefPtr::operator UnspecifiedBoolType): Use nullptr. |
| (WTF::PassRefPtr::operator=): Made this deleted instead of compile time assertion. |
| (WTF::PassRefPtr::PassRefPtr): Made adopting constructor use an adopt tag instead |
| of an unused boolean. |
| (WTF::PassRefPtr::leakRef): Use nullptr. |
| (WTF::adoptRef): Use the adopt tag. |
| |
| * wtf/Ref.h: Use Noncopyable instead of rolling our own. |
| (WTF::Ref::Ref): Add an overload that takes a PassRef. |
| (WTF::Ref::operator=): Ditto. |
| |
| * wtf/RefPtr.h: Removed unneeded forward declaration of PassRefPtr. |
| (WTF::RefPtr::RefPtr): Use nullptr. Added overload that takes a PassRef. |
| (WTF::RefPtr::release): Use nullptr. |
| (WTF::RefPtr::operator UnspecifiedBoolType): Use nullptr. |
| (WTF::RefPtr::operator=): Added overload that takes a PassRef. |
| (WTF::RefPtr::clear): Use nullptr. |
| |
| * wtf/StdLibExtras.h: Added inline keyword to isPointerTypeAlignmentOkay, |
| reinterpret_cast_ptr, and make_unique. Seems like a simple oversight that these |
| were missing before. |
| |
| 2013-10-15 Dean Jackson <dino@apple.com> |
| |
| Add ENABLE_WEB_ANIMATIONS flag |
| https://bugs.webkit.org/show_bug.cgi?id=122871 |
| |
| Reviewed by Tim Horton. |
| |
| Eventually might be http://dev.w3.org/fxtf/web-animations/ |
| but this is just engine-internal work at the moment. |
| |
| * wtf/FeatureDefines.h: |
| |
| 2013-10-15 Daniel Bates <dabates@apple.com> |
| |
| [iOS] Upstream JavaScriptCore support for ARM64 |
| https://bugs.webkit.org/show_bug.cgi?id=122762 |
| |
| Reviewed by Oliver Hunt. |
| |
| * Configurations/Base.xcconfig: |
| * wtf/Atomics.h: |
| (WTF::weakCompareAndSwap): |
| (WTF::armV7_dmb): |
| * wtf/FastMalloc.cpp: |
| * wtf/Platform.h: |
| * wtf/dtoa.cpp: |
| * wtf/dtoa/utils.h: |
| * wtf/text/ASCIIFastPath.h: |
| (WTF::copyLCharsFromUCharSource): |
| * wtf/text/StringImpl.h: |
| |
| 2013-10-14 Zan Dobersek <zdobersek@igalia.com> |
| |
| Static assertions in WTF::adoptPtr should point to using adoptRef for ref-counted objects |
| https://bugs.webkit.org/show_bug.cgi?id=122745 |
| |
| Reviewed by Anders Carlsson. |
| |
| * wtf/PassOwnPtr.h: |
| (WTF::adoptPtr): When the object's type is convertible to the RefCountedBase or ThreadSafeRefCountedBase type, |
| the static assertion should note that adoptRef should be used instead. |
| |
| 2013-10-14 Anders Carlsson <andersca@apple.com> |
| |
| WebKit Nightlies broken by r157374 |
| https://bugs.webkit.org/show_bug.cgi?id=122736 |
| |
| Reviewed by Andreas Kling. |
| |
| Add back a callOnMainThread overload that Safari is using. |
| |
| * wtf/MainThread.cpp: |
| (WTF::callOnMainThread): |
| * wtf/MainThread.h: |
| |
| 2013-10-13 Darin Adler <darin@apple.com> |
| |
| Deprecate or remove deleteAllValues functions; there are only a few call sites left |
| https://bugs.webkit.org/show_bug.cgi?id=122738 |
| |
| Reviewed by Anders Carlsson. |
| |
| * wtf/Deque.h: Deleted deleteAllValues. |
| * wtf/HashMap.h: Ditto. |
| * wtf/HashSet.h: Ditto. |
| * wtf/ListHashSet.h: Ditto. |
| * wtf/Vector.h: Renamed deleteAllValues to deprecatedDeleteAllValues. |
| |
| == Rolled over to ChangeLog-2013-10-13 == |