2014-03-05 peavo@outlook.com [Win32][LLINT] Crash when running JSC stress tests. https://bugs.webkit.org/show_bug.cgi?id=129429 Reviewed by Geoffrey Garen. * wtf/Platform.h: Enable LLINT on Win32. 2014-03-04 Zan Dobersek [GTK] Build the Udis86 disassembler https://bugs.webkit.org/show_bug.cgi?id=129679 Reviewed by Michael Saboff. * wtf/Platform.h: Also enable the Udis86 disassembler for the GTK port on Linux. 2014-03-02 Jaehun Lim [EFL] Remove m_initEfl from RunLoop. https://bugs.webkit.org/show_bug.cgi?id=129568 Reviewed by Gyuyoung Kim. We don't use m_initEfl except RunLoop constructor. * wtf/RunLoop.h: * wtf/efl/RunLoopEfl.cpp: (WTF::RunLoop::RunLoop): 2014-03-02 Darin Adler Cut down use of OwnPtr within WTF itself https://bugs.webkit.org/show_bug.cgi?id=129567 Reviewed by Sam Weinig. * wtf/RefCounted.h: Removed OwnPtr includes. * wtf/StreamBuffer.h: Removed OwnPtr includes and switched to use std::make_unique and std::unique_ptr instead. * wtf/Threading.cpp: Removed OwnPtr includes. * wtf/ThreadingPthreads.cpp: Ditto. * wtf/Vector.h: Ditto. 2014-02-26 Gavin Barraclough FastMalloc should use vm_page_shift intead of PAGE_SHIFT. https://bugs.webkit.org/show_bug.cgi?id=129370 Reviewed by Mark Rowe. "Doesn't this lead to the page map using fewer bits than it was before? It seems like this will cause some page addresses to no longer be representable in the map when using 4K pages. Am I missing something?" * wtf/FastMalloc.cpp: - bdash raises a valid point. This should make the TCMalloc_PageMap larger than absolutely necessary, rather than potentially too small. 2014-02-25 Gavin Barraclough FastMalloc should use vm_page_shift intead of PAGE_SHIFT. https://bugs.webkit.org/show_bug.cgi?id=129370 Reviewed by Geoff Garen. Previously we used PAGE_SHIFT to initialize kPageShift. Since this was a constant, it could be used to calculate other contants used in the code. Some of these values are used in the definition of certain data structures (specifiying the length of some array members). Make kPageShift & dependent properties variables setup during initialization. Add upper bound values (K_PAGE_SHIFT_MAX, K_NUM_CLASSES_MAX) for use in cases where we need a constant. * wtf/FastMalloc.cpp: (WTF::InitSizeClasses): - initialize kPageShift, kNumClasses, kPageSize, kMaxValidPages. (WTF::pages): - added ASSERT. (WTF::AllocationSize): - added ASSERT. (WTF::TCMalloc_PageHeap::FreeBytes): - added ASSERT. (WTF::TCMalloc_PageHeap::init): - COMPILE_ASSERT -> ASSERT (WTF::TCMalloc_PageHeap::scavenge): - added ASSERT. (WTF::TCMalloc_PageHeap::Carve): - added ASSERT. (WTF::mergeDecommittedStates): - added ASSERT. (WTF::TCMalloc_PageHeap::IncrementalScavenge): - added ASSERT. (WTF::TCMalloc_PageHeap::ReturnedBytes): - added ASSERT. (WTF::PagesToMB): - added ASSERT. (WTF::TCMalloc_PageHeap::GrowHeap): - added ASSERT. (WTF::TCMalloc_PageHeap::ReleaseFreeList): - kNumClasses -> K_NUM_CLASSES_MAX (WTF::TCMalloc_ThreadCache::enumerateFreeObjects): - added ASSERT. (WTF::TCMalloc_Central_FreeList::Init): - added ASSERT. (WTF::TCMalloc_Central_FreeList::ReleaseToSpans): - added ASSERT. (WTF::TCMalloc_Central_FreeList::EvictRandomSizeClass): - added ASSERT. (WTF::TCMalloc_Central_FreeList::MakeCacheSpace): - added ASSERT. (WTF::TCMalloc_Central_FreeList::InsertRange): - added ASSERT. (WTF::TCMalloc_Central_FreeList::Populate): - added ASSERT. (WTF::TCMalloc_ThreadCache::Init): - added ASSERT. (WTF::TCMalloc_ThreadCache::Cleanup): - added ASSERT. (WTF::TCMalloc_ThreadCache::Scavenge): - added ASSERT. (WTF::TCMalloc_ThreadCache::CreateCacheIfNecessary): - added ASSERT. 2014-02-24 Alex Christensen Disabled WebGL on WinCairo. Unreviewed. * wtf/FeatureDefines.h: Removed ENABLE_WEBGL definition for WinCairo port. WebGL has not worked on WinCairo since r163079 and it was not compiling with a recent ANGLE update. 2014-02-24 Mark Hahnenberg Turn GenGC on for 32-bit systems https://bugs.webkit.org/show_bug.cgi?id=128824 Reviewed by Geoffrey Garen. * wtf/Platform.h: 2014-02-21 Benjamin Poulain jsDocumentPrototypeFunctionGetElementById should not create an AtomicString for the function argument https://bugs.webkit.org/show_bug.cgi?id=128893 Reviewed by Darin Adler. AtomicString::find() is a special case optimized for the JavaScript bindings. The method can only be called under specific conditions. The method is renamed to findStringWithHash(). The new AtomicString::find is generic and does not require any propery on the input. * wtf/text/AtomicString.cpp: (WTF::AtomicString::findStringWithHash): (WTF::AtomicString::findSlowCase): * wtf/text/AtomicString.h: (WTF::AtomicString::find): 2014-02-20 Csaba Osztrogonác Add StackStats sources to cmake and autotools build files https://bugs.webkit.org/show_bug.cgi?id=129103 Reviewed by Anders Carlsson. * GNUmakefile.list.am: * wtf/CMakeLists.txt: 2014-02-20 Csaba Osztrogonác Get rid of redundant Platform.h includes https://bugs.webkit.org/show_bug.cgi?id=128817 Reviewed by Brent Fulgham. * wtf/Assertions.h: * wtf/Atomics.h: * wtf/ByteOrder.h: * wtf/DataLog.h: * wtf/DisallowCType.h: * wtf/DynamicAnnotations.h: * wtf/ExportMacros.h: * wtf/FastMalloc.h: * wtf/FlipBytes.h: * wtf/InlineASM.h: * wtf/PrintStream.h: * wtf/ProcessID.h: * wtf/Threading.h: * wtf/ThreadingPrimitives.h: 2014-02-19 Jon Honeycutt Crash in WTF::StringBuilder::append() https://bugs.webkit.org/show_bug.cgi?id=125817 Reviewed by Oliver Hunt. * wtf/text/StringBuilder.cpp: (WTF::expandedCapacity): Ensure that we return a new capacity of at least 'requiredLength' in the case where requiredLength is large. Also, use unsigned rather than size_t for the parameters and the return value, as callers pass unsigned arguments and treat the result as an unsigned int. 2014-02-19 Anders Carlsson Add WTF_MAKE_FAST_ALLOCATED to more classes https://bugs.webkit.org/show_bug.cgi?id=129064 Reviewed by Andreas Kling. * wtf/Bitmap.h: 2014-02-19 Zan Dobersek Make PrintStream::print() a variadic template https://bugs.webkit.org/show_bug.cgi?id=126388 Reviewed by Brent Fulgham. PrintStream::print() can be converted into a variadic template, printing the value of the first parameter and recursively calling itself until the single parameter version is used for printing the last value. * wtf/DataLog.h: (WTF::dataLog): Convert the function to a variadic template as well. * wtf/PrintStream.h: (WTF::PrintStream::print): * wtf/StringPrintStream.h: (WTF::toCString): Ditto. (WTF::toString): Ditto. 2014-02-19 Zan Dobersek Use std::swap() in HashTable::swap() https://bugs.webkit.org/show_bug.cgi?id=128995 Reviewed by Brent Fulgham. Use std::swap() to swap the member variable values of two HashTable objects in HashTable::swap(). * wtf/HashTable.h: (WTF::KeyTraits>::swap): 2014-02-19 Zan Dobersek SegmentedVector::append() should take in rvalue reference, forward it to Vector::uncheckedAppend() https://bugs.webkit.org/show_bug.cgi?id=128996 Reviewed by Brent Fulgham. * wtf/SegmentedVector.h: (WTF::SegmentedVector::append): Take in an rvalue reference of the object that's to be appended and then forward it to Vector::uncheckedAppend(). This avoids unnecessary copies in the current situation where a const lvalue is accepted and passed on. 2014-02-19 Dan Bernstein Simplify PLATFORM(MAC) && !PLATFORM(IOS) and similar expressions https://bugs.webkit.org/show_bug.cgi?id=129029 Reviewed by Mark Rowe. * wtf/FeatureDefines.h: * wtf/Platform.h: * wtf/Threading.cpp: * wtf/text/cf/StringImplCF.cpp: (garbageCollectionEnabled): 2014-02-18 Dan Bernstein PLATFORM(MAC) is true when building for iOS https://bugs.webkit.org/show_bug.cgi?id=129025 Reviewed by Mark Rowe. * wtf/Platform.h: Changed to define WTF_PLATFORM_MAC only on when building for OS X (but still not when WTF_PLATFORM_GTK or WTF_PLATFORM_EFL are defined). 2014-02-18 Joseph Pecoraro [iOS] Web Inspector: JSContext inspection crashes in isMainThread, uninitialized WebCoreWebThreadIsLockedOrDisabled https://bugs.webkit.org/show_bug.cgi?id=128959 Reviewed by David Kilzer. When JavaScriptCore is used without WebCore on iOS (e.g. JSContext) the WebCoreWebThread* functions will not be initialized. Avoid calling the function pointer if it is uninitialized. This was happening with remote inspection via StringImpl::createCFString for implicit NSString / WTFString conversion which uses isMainThread. * wtf/mac/MainThreadMac.mm: (WTF::webThreadIsUninitializedOrLockedOrDisabled): (WTF::isMainThread): (WTF::canAccessThreadLocalDataForThread): 2014-02-17 Filip Pizlo More ARM FTL glue https://bugs.webkit.org/show_bug.cgi?id=128948 Reviewed by Sam Weinig. * wtf/Platform.h: 2014-02-17 Anders Carlsson Remove ENABLE_GLOBAL_FASTMALLOC_NEW https://bugs.webkit.org/show_bug.cgi?id=127067 Reviewed by Geoffrey Garen. Remove the global operator new/operator delete overrides. Having ALWAYS_INLINE operators like we do is really undefined behavior according to the C++ standard and we've been lucky enough to get away with it so far, but any code that calls operator new/operator delete inside from the C++ standard library (not from headers that are included) will be mismatched and potentially crash. libc++ calls delete in it's std::thread implementation for example. The only supported way to override operator new and operator delete globally is to not use inline functions, but that would mean that any application using WebKit would not be able to provide custom operator new/operator delete functions so we'll just reuse the already existing infrastructure consisting of the WTF_MAKE_FAST_ALLOCATED macro. * wtf/FastMalloc.cpp: (WTF::TCMalloc_ThreadCache::CreateCacheIfNecessary): * wtf/FastMalloc.h: * wtf/Platform.h: 2014-02-17 Ryan Lortie Enable DFG_JIT on FreeBSD https://bugs.webkit.org/show_bug.cgi?id=128898 Reviewed by Csaba Osztrogonác. * wtf/Platform.h: 2014-02-15 Filip Pizlo FTL should inline polymorphic heap accesses https://bugs.webkit.org/show_bug.cgi?id=128795 Reviewed by Oliver Hunt. * wtf/PrintStream.h: (WTF::PointerDumpInContext::PointerDumpInContext): (WTF::PointerDumpInContext::dump): (WTF::pointerDumpInContext): 2014-02-16 Zan Dobersek Reintroduce const qualifiers for return types of (Filter|Transform)Iterator::operator*() https://bugs.webkit.org/show_bug.cgi?id=126875 The const qualifiers for the return types of FilterIterator::operator*() and TransformIterator::operator*() were removed in r161797 and r161802 because of compilation failures when using GCC and having an Iterator type that already had the const qualifier. std::remove_const is now used to appease GCC and enforce the const qualifier on the return type, regardless of the Iterator type and its qualifiers. * wtf/IteratorAdaptors.h: (WTF::FilterIterator::operator*): (WTF::TransformIterator::operator*): 2014-02-15 Filip Pizlo Vector with inline capacity should work with non-PODs https://bugs.webkit.org/show_bug.cgi?id=128864 Reviewed by Michael Saboff. Previously, we would copy the inline storage of a vector as if it was a bag of bits. This presumed that the element type was relocatable. In general this is only true for PODs. This patch changes this by introducing a swap operation over inline storage. This swap operation requires being told about the size that is in use. Deques would have required some cleverness to make this work, because the swap operation needs to know which subset of elements are in-use and assumes that a size is sufficient for this. That's not true for deques. Instead of trying to do very clever things, I just removed the inline capacity option from Deque. I believe that this is fine since there are only two users of Deque with inline capacity, and both of them appear to be allocated rarely enough that inline capacity probably doesn't help much. * wtf/Deque.h: (WTF::DequeIterator::DequeIterator): (WTF::DequeConstIterator::DequeConstIterator): (WTF::Deque::checkValidity): (WTF::Deque::checkIndexValidity): (WTF::Deque::invalidateIterators): (WTF::Deque::Deque): (WTF::=): (WTF::Deque::destroyAll): (WTF::Deque::~Deque): (WTF::Deque::swap): (WTF::Deque::clear): (WTF::Deque::expandCapacityIfNeeded): (WTF::Deque::expandCapacity): (WTF::Deque::append): (WTF::Deque::prepend): (WTF::Deque::removeFirst): (WTF::Deque::removeLast): (WTF::Deque::remove): (WTF::DequeIteratorBase::checkValidity): (WTF::DequeIteratorBase::addToIteratorsList): (WTF::DequeIteratorBase::removeFromIteratorsList): (WTF::DequeIteratorBase::DequeIteratorBase): (WTF::DequeIteratorBase::~DequeIteratorBase): (WTF::DequeIteratorBase::isEqual): (WTF::DequeIteratorBase::increment): (WTF::DequeIteratorBase::decrement): (WTF::DequeIteratorBase::after): (WTF::DequeIteratorBase::before): * wtf/Vector.h: (WTF::VectorBuffer::swap): (WTF::VectorBuffer::swapInlineBuffer): (WTF::VectorBuffer::swapInlineBuffers): (WTF::Vector::swap): 2014-02-15 Mikhail Pozdnyakov Remove 'static' specifier from free inline functions in StringImpl.h https://bugs.webkit.org/show_bug.cgi?id=118554 Reviewed by Darin Adler. At first 'static' does not bring any use here, secondly static free inline functions in headers is a bad practice in general as each instance of function defined as inline is treated as a separate function and each instance has its own copy of static locals and string literals. * wtf/text/StringImpl.h: (WTF::codePointCompare): (WTF::codePointCompare8): (WTF::codePointCompare16): (WTF::codePointCompare8To16): (WTF::isSpaceOrNewline): 2014-02-14 Benjamin Poulain Improve the performance on mobile of FTPDirectoryDocument https://bugs.webkit.org/show_bug.cgi?id=128778 Reviewed by Antti Koivisto. * wtf/text/WTFString.h: (WTF::String::endsWith): add a missing overload. 2014-02-14 Wojciech Bielawski (try)append and insert operations don't need new operator for PODs https://bugs.webkit.org/show_bug.cgi?id=128185 Reviewed by Darin Adler. Vector's methods use VectorCopier to copy data. VectorCopier for PODs exteded to be used with different types. For different types placement new copy approach is applied. For the same types memcpy is applied. * wtf/Vector.h: (WTF::OverflowHandler>::append): use VectorCopier to copy data. (WTF::OverflowHandler>::tryAppend): use VectorCopier to copy data. (WTF::OverflowHandler>::insert): use VectorCopier to copy data. 2014-02-13 Daniel Bates Fix the iOS build after [iOS] Disable HAVE_ARM_NEON_INTRINSICS For now, disable HAVE_ARM_NEON_INTRINSICS when building for iOS. We want to audit the applicable code before we enable this define. * wtf/Platform.h: 2014-02-11 Filip Pizlo Hoist and combine array bounds checks https://bugs.webkit.org/show_bug.cgi?id=125433 Reviewed by Mark Hahnenberg. * GNUmakefile.list.am: * WTF.vcxproj/WTF.vcxproj: * WTF.xcodeproj/project.pbxproj: * wtf/CMakeLists.txt: * wtf/HashMethod.h: Added. (WTF::HashMethod::operator()): 2014-02-13 Tamas Gergely Code cleanup: remove gcc<4.7 guards. https://bugs.webkit.org/show_bug.cgi?id=128729 Reviewed by Anders Carlsson. Remove GCC_VERSION_AT_LEAST guards when it checks for pre-4.7 versions, as WK does not compile with earlier gcc versions. * wtf/Assertions.cpp: * wtf/Platform.h: 2014-02-12 Mark Lam No need to save reservedZoneSize when dropping the JSLock. Reviewed by Geoffrey Garen. * wtf/WTFThreadData.cpp: (WTF::WTFThreadData::WTFThreadData): * wtf/WTFThreadData.h: - removed unnneeded m_savedReservedZoneSize. 2014-02-11 Mark Hahnenberg 32-bit LLInt writeBarrierOnGlobalObject is wrong https://bugs.webkit.org/show_bug.cgi?id=128556 Reviewed by Geoffrey Garen. * wtf/Platform.h: Removed OBJECT_MARK_LOGGING from Platform.h since it already exists in FeatureDefines.h 2014-02-11 peavo@outlook.com [WinCairo] Compile error, deleted file in WTF. https://bugs.webkit.org/show_bug.cgi?id=128601 Reviewed by Csaba Osztrogonác. * WTF.vcxproj/WTF.vcxproj: Removed reference to deleted file. * WTF.vcxproj/WTF.vcxproj.filters: Ditto. 2014-02-10 Michael Saboff Re-enable ARM Thumb2 disassembler https://bugs.webkit.org/show_bug.cgi?id=128577 Reviewed by Filip Pizlo. Added definition of WTF_USE_ARMV7_DISASSEMBLER back to Platform.h * wtf/Platform.h: 2014-02-10 Benjamin Poulain Add the basic infrastructure to compile attributes matching in selectors https://bugs.webkit.org/show_bug.cgi?id=128484 Reviewed by Gavin Barraclough. * wtf/Vector.h: (WTF::VectorBufferBase::bufferMemoryOffset): (WTF::Vector::sizeMemoryOffset): (WTF::Vector::dataMemoryOffset): Expose the memory offsets of Vector::size() and the memory buffer pointer for the JIT. 2014-02-10 Enrica Casucci copyShortASCIIString crashes on iOS after r163793. https://bugs.webkit.org/show_bug.cgi?id=128548. Reviewed by Alexey Proskuryakov. Adding null check. * wtf/unicode/icu/CollatorICU.cpp: (WTF::copyShortASCIIString): 2014-02-10 Carlos Garcia Campos [GLIB] Add GUniqueOutPtr and use it instead of GOwnPtr https://bugs.webkit.org/show_bug.cgi?id=127554 Reviewed by Gustavo Noronha Silva. GUniqueOutPtr is a simplified version of GOwnPtr for the cases where we need the address of the contained pointer. GUniqueOutPtr uses GUniquePtr to free the contained object and to release the container pointer. The API is very simple to make sure this is only used when outPtr() is needed. It can't be constructed with a pointer, and there's not method to set a new pointer. Another difference with the old GOwnPtr is that outPtr() can be used multiple times, because it frees any pointer previously set. * GNUmakefile.list.am: * wtf/PlatformEfl.cmake: * wtf/PlatformGTK.cmake: * wtf/gobject/GOwnPtr.cpp: Removed. * wtf/gobject/GOwnPtr.h: Removed. * wtf/gobject/GUniquePtr.h: (WTF::GUniqueOutPtr::GUniqueOutPtr): (WTF::GUniqueOutPtr::~GUniqueOutPtr): (WTF::GUniqueOutPtr::outPtr): (WTF::GUniqueOutPtr::reset): (WTF::GUniqueOutPtr::release): (WTF::GUniqueOutPtr::operator*): (WTF::GUniqueOutPtr::operator->): (WTF::GUniqueOutPtr::get): (WTF::GUniqueOutPtr::operator!): (WTF::GUniqueOutPtr::operator UnspecifiedBoolType): 2014-02-10 Darin Adler Stop using String::deprecatedCharacters to call WTF::Collator https://bugs.webkit.org/show_bug.cgi?id=128517 WTF passes ICU’s deprecated ULOC_REQUESTED_LOCALE to ucol_getLocaleByType() rdar://problem/15183390 Reviewed by Alexey Proskuryakov. This patch fixes both bugs above by reworking WTF::Collator. * wtf/unicode/Collator.h: Fixed formatting. Got rid of the Collator::Result type, since the collator uses the same return value scheme as strcmp and as ICU; an int will do for the return type. Simplified the support for UCONFIG_NO_COLLATION by using a separate copy of the class definition. (We should check if anyone needs UCONFIG_NO_COLLATION support, and remove it if not.) Changed the lower-first flag from a separate function to a constructor argument. Changed the arguments to the collate function to StringView. Added a collate UTF8 function. Changed the m_collate data member to no longer be mutable since we no longer allocate it lazily. * wtf/unicode/CollatorDefault.cpp: (WTF::Collator::collate): Rewrote to be simpler. (WTF::Collator::collateUTF8): Added. Converts from UTF-8 to a String and then calls the collate function above. * wtf/unicode/icu/CollatorICU.cpp: Added a FIXME about the fact that this file has the wrong name and location. Since we always use ICU, there's no need to mention it in the file name. (WTF::copyASCIIString): Added. (WTF::copyDefaultLocale): Added. (WTF::resolveDefaultLocale): Added. Maps null locale to a default on Mac and iOS, since on those platforms ICU does not use the correct default locale when passed null. (WTF::localesMatch): Added. (WTF::Collator::Collator): Moved most of the code from createCollator here. Simplified it by storing the collator configuration along with the collator in globals. (WTF::Collator::~Collator): Moved most of the code from releaseCollator here. (WTF::getIndexLatin1): Added. (WTF::moveLatin1): Added. (WTF::hasNextLatin1): Added. (WTF::hasPreviousLatin1): Added. (WTF::currentLatin1): Added. (WTF::nextLatin1): Added. (WTF::previousLatin1): Added. (WTF::getStateLatin1): Added. (WTF::setStateLatin1): Added. (WTF::createLatin1Iterator): Added. Uses the functions above to make a UCharIterator that works for a WTF::StringView-style Latin-1 string. (WTF::createIterator): Added. Uses either createLatin1Iterator or uiter_setString to make a UCharIterator that works for a WTF::StringView. (WTF::Collator::collate): Changed to use ucol_strcollIter. (WTF::createIteratorUTF8): Added. Uses uiter_setUTF8. (WTF::Collator::collateUTF8): Added. Like collate, but for null-terminated UTF-8 strings. 2014-02-10 Tamas Gergely Code cleanup: Remove BUILDING_ON / TARGETING definitions. https://bugs.webkit.org/show_bug.cgi?id=128242 Reviewed by Brent Fulgham. The BUILDING_ON_* and TARGETING_* macros have not been used for a while. According to the FIXME: they are removed. * wtf/Platform.h: 2014-02-09 Anders Carlsson Add WTF_MAKE_FAST_ALLOCATED to more classes https://bugs.webkit.org/show_bug.cgi?id=128506 Reviewed by Andreas Kling. * wtf/Bag.h: * wtf/ListHashSet.h: 2014-02-08 Anders Carlsson Stop using getCharactersWithUpconvert in JavaScriptCore https://bugs.webkit.org/show_bug.cgi?id=128457 Reviewed by Andreas Kling. * wtf/text/StringBuilder.h: (WTF::StringBuilder::append): Add a new overload that takes a StringView. * wtf/text/StringView.h: (WTF::StringView::find): Add new find member function. 2014-02-08 Darin Adler Change TextIterator to use StringView, preparing to wean it from deprecatedCharacters https://bugs.webkit.org/show_bug.cgi?id=128233 Reviewed by Anders Carlsson. * WTF.xcodeproj/project.pbxproj: Added new source files. * wtf/text/StringView.h: Added operator[], createCFStringWithoutCopying, and createNSStringWithoutCopying. * wtf/text/cf/StringViewCF.cpp: (WTF::StringView::createCFStringWithoutCopying): Added. * wtf/text/mac/StringViewObjC.mm: (WTF::StringView::createNSString): Added. (WTF::StringView::createNSStringWithoutCopying): Added. 2014-02-06 Andreas Kling Remove unused ENABLE(REPAINT_THROTTLING) flag. Reviewed by Antti Koivisto. * wtf/FeatureDefines.h: 2014-02-06 Filip Pizlo More FTL build scaffolding https://bugs.webkit.org/show_bug.cgi?id=128330 Reviewed by Geoffrey Garen. * wtf/Platform.h: 2014-02-06 Anders Carlsson Use std::chrono functions in dispatchFunctionsFromMainThread() https://bugs.webkit.org/show_bug.cgi?id=128308 Reviewed by Antti Koivisto. * wtf/MainThread.cpp: (WTF::dispatchFunctionsFromMainThread): 2014-02-05 Zan Dobersek Remove the WTF_COMPILER_SUPPORTS_CXX_GENERALIZED_INITIALIZERS macro https://bugs.webkit.org/show_bug.cgi?id=128267 Reviewed by Andreas Kling. Remove the WTF_COMPILER_SUPPORTS_CXX_GENERALIZED_INITIALIZERS macro that was manually defined for compilers that support the C++11 initializer lists. The feature is well supported in Clang, MSVC and also GCC. It was actually already used unguarded in HashSet. * wtf/Compiler.h: * wtf/HashMap.h: (WTF::HashMap::HashMap): * wtf/Vector.h: (WTF::Vector::Vector): 2014-02-05 Andreas Kling Remove ENABLE(DIRECTORY_UPLOAD). Rubber-stamped by Ryosuke Niwa. * wtf/FeatureDefines.h: 2014-02-05 Carlos Garcia Campos HashMap can't be used with std::unique_ptr as value when it has a custom deleter https://bugs.webkit.org/show_bug.cgi?id=128250 Reviewed by Darin Adler. The problem is that the HashMap is using a unique_ptr with the default deleter, so that when trying to move the unique_ptr the deleters don't match. * wtf/HashTraits.h: Add the deleter also in the template definitation of the parent class for the HashTraits> 2014-02-05 Csaba Osztrogonác Remove ENABLE(SVG) guards https://bugs.webkit.org/show_bug.cgi?id=127991 Reviewed by Sam Weinig. * wtf/FeatureDefines.h: 2014-02-04 Mark Lam The stack limit computation does not work for Windows. Reviewed by Geoffrey Garen. The current stack limit computation assumes that the stack is allocated in high memory. On Windows, the stack seems to be allocated very near address 0, and is smaller in size than our Options::maxPerThreadStackUsage(). This combination triggers a bug where StackBounds::recursionLimit() underflows and computes a limit address that is ridiculously high in memory. The net effect is that the Windows port thinks its out of stack space all the time. We now check for potential underflows in StackBounds and return an appropriate limit address. * wtf/StackBounds.h: (WTF::StackBounds::recursionLimit): 2014-02-04 Andreas Kling Remove