ChangeLog 411 KB
Newer Older
1 2 3 4 5 6 7
2012-10-29  Adam Barth  <abarth@webkit.org>

        Unreviewed. Correct my previous patch to disable external SVG
        references only on PLATFORM(CHROMIUM).

        * wtf/Platform.h:

8 9 10 11 12 13 14 15 16 17 18 19
2012-10-29  Adam Barth  <abarth@webkit.org>

        Block SVG external references pending a security review
        https://bugs.webkit.org/show_bug.cgi?id=100635

        Reviewed by Eric Seidel.

        We need to do a security review of loading external SVG references
        before we're sure that it is safe.

        * wtf/Platform.h:

20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
2012-10-29  Michael Saboff  <msaboff@apple.com>

        String::split(UChar, Vector<String>&) shouldn't create a temporary String
        https://bugs.webkit.org/show_bug.cgi?id=100578

        Reviewed by Anders Carlsson.

        Changed split(UChar, Vector<String>&) to call split(UChar, bool, Vector<String>&) instead of creating a
        string and calling the split(String,...) version and moved it to WTFString.h.  Also moved
        split(const String& separator, Vector<String>& result) to WTFString.h.

        * wtf/text/WTFString.cpp:
        (WTF::String::split):
        * wtf/text/WTFString.h:
        (WTF::String::split):

36 37 38 39 40 41 42 43 44 45 46 47
2012-10-29  Sheriff Bot  <webkit.review.bot@gmail.com>

        Unreviewed, rolling out r132736.
        http://trac.webkit.org/changeset/132736
        https://bugs.webkit.org/show_bug.cgi?id=100652

        It broke all plugin related tests on GTK and on Qt (Requested
        by Ossy on #webkit).

        * wtf/text/WTFString.cpp:
        (WTF::String::fromUTF8):

48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66
2012-10-27  Michael Saboff  <msaboff@apple.com>

        Try to create AtomicString as 8 bit where possible
        https://bugs.webkit.org/show_bug.cgi?id=100575

        Reviewed by Oliver Hunt.

        Added StringImpl::create8BitIfPossible() that first tries to create an 8 bit string.  If it finds a 16 bit character
        during processing, it calls the standard create() method.  The assumption is that this will be used on mostly 8 bit
        strings and ones that are shorter (in the tens of characters).  Changed AtomicString to use the new creation method
        for UChar based construction.

        * wtf/text/AtomicString.cpp:
        (WTF::UCharBufferTranslator::translate):
        * wtf/text/StringImpl.cpp:
        (WTF::StringImpl::create8BitIfPossible):
        * wtf/text/StringImpl.h:
        (WTF::StringImpl::create8BitIfPossible):

67 68 69 70 71 72 73 74 75 76 77 78
2012-10-27  Michael Saboff  <msaboff@apple.com>

        String::fromUTF8() should take advantage of the ASCII check in convertUTF8ToUTF16()
        https://bugs.webkit.org/show_bug.cgi?id=100577

        Reviewed by Oliver Hunt.

        Passed is ASCII flag to convertUTF8ToUTF16() and if try, create an 8 bit string from the original arguments.

        * wtf/text/WTFString.cpp:
        (WTF::String::fromUTF8):

79 80 81 82 83 84 85 86 87 88 89 90 91 92
2012-10-27  Dan Bernstein  <mitz@apple.com>

        REAL_PLATFORM_NAME build setting is no longer needed
        https://bugs.webkit.org/show_bug.cgi?id=100587

        Reviewed by Mark Rowe.

        Removed the definition of REAL_PLATFORM_NAME and replaced references to it with references
        to PLATFORM_NAME.

        * Configurations/Base.xcconfig:
        * Configurations/CompilerVersion.xcconfig:
        * Configurations/DebugRelease.xcconfig:

93 94 95 96 97 98 99 100 101 102 103
2012-10-26  Sheriff Bot  <webkit.review.bot@gmail.com>

        Unreviewed, rolling out r132689.
        http://trac.webkit.org/changeset/132689
        https://bugs.webkit.org/show_bug.cgi?id=100574

        Broke HashMaps containing RetainPtrs (Requested by andersca on
        #webkit).

        * wtf/RetainPtr.h:

104 105 106 107 108 109 110 111 112 113 114 115
2012-10-26  Anders Carlsson  <andersca@apple.com>

        Add an operator& to RetainPtr
        https://bugs.webkit.org/show_bug.cgi?id=100549

        Reviewed by Dan Bernstein.

        This is useful for APIs that return references using out parameters.

        * wtf/RetainPtr.h:
        (WTF::RetainPtr::operator&):

116 117 118 119 120 121 122 123 124 125 126 127
2012-10-26  Gabor Ballabas  <gaborb@inf.u-szeged.hu>

        [Qt] Enable JSC's disassembler on x86, x86_64 Linux
        https://bugs.webkit.org/show_bug.cgi?id=100386

        Reviewed by Simon Hausmann.

        It works fine on Linux x86, x86_64 just needs to be enabled in the
        QtWebKit build system.

        * wtf/Platform.h:

128 129 130 131 132 133 134 135 136 137 138 139 140 141 142
2012-10-25  Michael Saboff  <msaboff@apple.com>

        REGRESSION (r131836): failures in list styles tests on EFL, GTK
        https://bugs.webkit.org/show_bug.cgi?id=99824

        Reviewed by Oliver Hunt.

        Fixed ASCII check.
        Added placeholder argument for new argument added to convertUTF8ToUTF16() in http://trac.webkit.org/changeset/131836.

        * wtf/unicode/UTF8.cpp:
        (WTF::Unicode::convertUTF8ToUTF16):
        * wtf/unicode/glib/UnicodeGLib.cpp:
        (WTF::Unicode::convertCase):

143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159
2012-10-25  Christophe Dumez  <christophe.dumez@intel.com>

        [EFL][WK2] Remove some C'ism from EwkView
        https://bugs.webkit.org/show_bug.cgi?id=100370

        Reviewed by Kenneth Rohde Christiansen.

        Make OwnPtr useable for Ecore_IMF_Context to avoid
        using raw pointers in EFL port.

        * wtf/OwnPtrCommon.h:
        (WTF):
        * wtf/PlatformEfl.cmake:
        * wtf/efl/OwnPtrEfl.cpp:
        (WTF::deleteOwnedPtr):
        (WTF):

160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192
2012-09-27  Yury Semikhatsky  <yurys@chromium.org>

        Web Inspector: provide memory instrumentation for ListHashSet
        https://bugs.webkit.org/show_bug.cgi?id=97786

        Reviewed by Vsevolod Vlasov.

        Added memory instrumentation for ListHashSet.

        * GNUmakefile.list.am:
        * WTF.gypi:
        * WTF.pro:
        * WTF.vcproj/WTF.vcproj:
        * WTF.xcodeproj/project.pbxproj:
        * wtf/HashSet.h:
        (WTF):
        * wtf/ListHashSet.h:
        (ListHashSet):
        (ListHashSetNodeAllocator): changed visibility of inPool method to public
        (WTF::ListHashSetNodeAllocator::pool):
        (WTF::ListHashSetNodeAllocator::pastPool):
        (WTF::::sizeInBytes): added a method that returns size of the set in bytes including
        all its internals but not the content elements.
        (WTF):
        * wtf/MemoryInstrumentation.h: removed onsolete method. All clients were updated to
        use generic addMember instead.
        (MemoryInstrumentation):
        (WTF::MemoryClassInfo::addPrivateBuffer):
        * wtf/MemoryInstrumentationHashSet.h:
        * wtf/MemoryInstrumentationListHashSet.h: Copied from Source/WTF/wtf/MemoryInstrumentationHashSet.h.
        (WTF):
        (WTF::reportMemoryUsage):

193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212
2012-10-23  Benjamin Poulain  <benjamin@webkit.org>

        WTFURL: Implement KURL::setPort()
        https://bugs.webkit.org/show_bug.cgi?id=99898

        Reviewed by Adam Barth.

        Add an efficient implementation for remplacing the port component
        in an URL. This will be the base for replacing other components
        efficiently.

        The testing is covered by fast/dom/HTMLAnchorElement/set-href-attribute-port.html

        * wtf/url/api/ParsedURL.cpp:
        (WTF::generateNewSpecWithPort):
        (WTF::replacePortWithString):
        (WTF::ParsedURL::replacePort):
        * wtf/url/api/ParsedURL.h:
        (ParsedURL):

213 214 215 216 217 218 219 220 221 222 223 224 225 226
2012-10-22  Michael Saboff  <msaboff@apple.com>

        Regression(r131655): Crash in StringImpl::findIgnoringCase
        https://bugs.webkit.org/show_bug.cgi?id=99753

        Reviewed by Geoffrey Garen.

        Fixed to use the searchLength to take into account the start index.

        Added LayoutTests/fast/js/find-ignoring-case-regress-99753.html

        * wtf/text/StringImpl.cpp:
        (WTF::StringImpl::findIgnoringCase):

227 228 229 230 231 232
2012-10-22  Simon Hausmann  <simon.hausmann@digia.com>

        Unreviewed: Re-enable LLINT on Qt/Linux after r131932.

        * wtf/Platform.h:

233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256
2012-10-22  Yury Semikhatsky  <yurys@chromium.org>

        Web Inspector: do not double count memory of objects with multiple ancestors
        https://bugs.webkit.org/show_bug.cgi?id=99958

        Reviewed by Alexander Pavlov.

        Make sure memory occupied by objects of classes with multiple inheritance is
        not double counted.

        * wtf/MemoryInstrumentation.h:
        (WTF::MemoryObjectInfo::MemoryObjectInfo):
        (WTF::MemoryObjectInfo::reportedPointer):
        (WTF::MemoryObjectInfo::reportObjectInfo): 1) Store actual pointer to the instrumented
        object as it may differ from the original pointer by which it was reported. 2) Make
        the method non-template and calculate object size on the caller side.
        (MemoryObjectInfo):
        (WTF::MemoryInstrumentation::reportObjectMemoryUsage):
        (WTF::MemoryClassInfo::MemoryClassInfo):
        (WTF::MemoryInstrumentation::InstrumentedPointer::process): use adjusted pointer
        returned by reportMemoryUsage to check if the object has already been visited when
        the pointer differs from the orinal one(it may happen if the object was reported
        by a pointer to one of its base classes).

257 258 259 260 261 262
2012-10-20  Martin Robinson  <mrobinson@igalia.com>

        Fix 'make dist' for the GTK+ port

        * GNUmakefile.list.am: Add missing files to the source list.

263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310
2012-10-19  Mark Lam  <mark.lam@apple.com>

        Added WTF::StackStats mechanism.
        https://bugs.webkit.org/show_bug.cgi?id=99805.

        Reviewed by Geoffrey Garen.

        Disabled by default. Should have no performance and memory cost when
        disabled. To enable, #define ENABLE_STACK_STATS 1 in StackStats.h.
        The output is currently hardcoded to be dumped in /tmp/stack-stats.log,
        and is in the form of stack sample events. By default, it only logs
        a sample event when a new high watermark value is encountered.

        Also renamed StackBounds::recursiveCheck() to isSafeToRecurse().

        * WTF.xcodeproj/project.pbxproj:
        * wtf/StackBounds.h:
        (StackBounds):
        (WTF::StackBounds::size):
        (WTF::StackBounds::isSafeToRecurse):
        * wtf/StackStats.cpp: Added.
        (WTF):
        (WTF::StackStats::initialize):
        (WTF::StackStats::PerThreadStats::PerThreadStats):
        (WTF::StackStats::CheckPoint::CheckPoint):
        (WTF::StackStats::CheckPoint::~CheckPoint):
        (WTF::StackStats::probe):
        (WTF::StackStats::LayoutCheckPoint::LayoutCheckPoint):
        (WTF::StackStats::LayoutCheckPoint::~LayoutCheckPoint):
        * wtf/StackStats.h: Added.
        (WTF):
        (StackStats):
        (CheckPoint):
        (WTF::StackStats::CheckPoint::CheckPoint):
        (PerThreadStats):
        (WTF::StackStats::PerThreadStats::PerThreadStats):
        (LayoutCheckPoint):
        (WTF::StackStats::LayoutCheckPoint::LayoutCheckPoint):
        (WTF::StackStats::initialize):
        (WTF::StackStats::probe):
        * wtf/ThreadingPthreads.cpp:
        (WTF::initializeThreading):
        * wtf/WTFThreadData.cpp:
        (WTF::WTFThreadData::WTFThreadData):
        * wtf/WTFThreadData.h:
        (WTFThreadData):
        (WTF::WTFThreadData::stackStats):

311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333
2012-10-19  Anders Carlsson  <andersca@apple.com>

        Deque can use std::reverse_iterator for its reverse iterators
        https://bugs.webkit.org/show_bug.cgi?id=99789

        Reviewed by Andreas Kling.

        Remove DequeReverseIterator and DequeConstReverseIterator and just use std::reverse_iterator directly.
        Also, remove the DequeIteratorBase<T, inlineCapacity> to Base typedef - We can already use DequeIteratorBase since it's
        equivalent to the full class template type.

        * wtf/Deque.h:
        (WTF::Deque::rbegin):
        (WTF::Deque::rend):
        (DequeIteratorBase):
        (WTF::DequeIteratorBase::assign):
        (DequeIterator):
        (DequeConstIterator):
        (WTF::::checkValidity):
        (WTF::::DequeIteratorBase):
        (WTF::=):
        (WTF::::isEqual):

334 335 336 337 338 339
2012-10-19  Csaba Osztrogonác  <ossy@webkit.org>

        Unreviewed buildfix, use C-style comment instead of C++

        * wtf/Platform.h:

340 341 342 343 344 345 346 347 348
2012-10-19  Csaba Osztrogonác  <ossy@webkit.org>

        REGRESSION(r131822): It made 500+ tests crash on 32 bit platforms
        https://bugs.webkit.org/show_bug.cgi?id=99814

        Reviewed by Simon Hausmann.

        * wtf/Platform.h: Disable LLINT on (PLATFORM(QT) && CPU(X86)) temporarily until proper fix.

349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367
2012-10-17  Ilya Tikhonovsky  <loislo@chromium.org>

        Web Inspector: NMI provide data for mixing with tcmalloc heap dumps.
        https://bugs.webkit.org/show_bug.cgi?id=99457

        Reviewed by Yury Semikhatsky.

        countObjectSize now accepts ptr as the first argument and saves it into HashMap if the binary was ran with HEAPPROFILE env variable.
        getProcessMemoryDistribution does snapshot and calls the downstream code with the map of counted objects.

        * wtf/MemoryInstrumentation.h:
        (MemoryInstrumentationClient):
        (WTF::MemoryInstrumentation::countObjectSize):
        (WTF::MemoryInstrumentation::addRawBuffer):
        (WTF::MemoryClassInfo::addPrivateBuffer):
        (WTF::MemoryInstrumentation::addObjectImpl):
        (WTF::MemoryInstrumentation::addListHashSet):
        (WTF::::process):

368 369 370 371 372 373 374 375 376 377 378 379 380 381
2012-10-18  Michael Saboff  <msaboff@apple.com>

        convertUTF8ToUTF16() Should Check for ASCII Input
        ihttps://bugs.webkit.org/show_bug.cgi?id=99739

        Reviewed by Geoffrey Garen.

        Added code to accumulate the "or" of all characters seen during the UTF8 to UTF16 conversion.  This is
        used to check to see if all characters are ASCII and is returned via a bool*.

        * wtf/unicode/UTF8.cpp:
        (WTF::Unicode::convertUTF8ToUTF16):
        * wtf/unicode/UTF8.h:

382 383 384 385 386 387 388 389 390 391 392 393 394
2012-10-18  Michael Saboff  <msaboff@apple.com>

        Mac WTF build checks dependencies before copying header files
        https://bugs.webkit.org/show_bug.cgi?id=99770

        Reviewed by Mark Rowe.

        Fixed up build rules per Mark Rowe. Made new target an Aggregate and removed "WTF copy".

        * Configurations/CopyWTFHeaders.xcconfig: Added.
        * Configurations/WTF.xcconfig:
        * WTF.xcodeproj/project.pbxproj:

395 396 397 398 399 400 401 402 403 404 405 406
2012-10-18  Michael Saboff  <msaboff@apple.com>

        Mac WTF build checks dependencies before copying header files
        https://bugs.webkit.org/show_bug.cgi?id=99770

        Reviewed by Geoffrey Garen.

        Added a new build target "Copy WTF HEaders" to copy the header files and made that new target a dependency
        for the main WTF build target.  Moved the "Copy WTF Headers" phase from WTF target to the new target.

        * WTF.xcodeproj/project.pbxproj:

andersca@apple.com's avatar
andersca@apple.com committed
407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428
2012-10-17  Anders Carlsson  <andersca@apple.com>

        Clean up Vector.h
        https://bugs.webkit.org/show_bug.cgi?id=99622

        Reviewed by Benjamin Poulain.

        Remove unused member functions from Vector and get rid of the std::max and std::min using declarations
        (as per the WebKit coding style guidelines).

        * WTF.xcodeproj/project.pbxproj:
        Turns out StreamBuffer.h was never added to the Xcode project; add it. Also go ahead and sort the project file.

        * wtf/Deque.h:
        (WTF::::expandCapacity):
        * wtf/StreamBuffer.h:
        (WTF::StreamBuffer::append):
        Add std:: prefixes to max and min.

        * wtf/Vector.h:
        Remove VectorBase::bufferSlot(), VectorReverseProxy and add std:: prefixes where needed.

429 430 431 432 433 434 435 436 437 438 439 440
2012-10-17  Michael Saboff  <msaboff@apple.com>

        Creating a String from an NSString should check for all 8 bit strings
        https://bugs.webkit.org/show_bug.cgi?id=99392

        Reviewed by Geoffrey Garen.

        Exported the LChar* version of create().

        * wtf/text/StringImpl.cpp:
        (WTF::StringImpl::create):

441 442 443 444 445 446 447 448 449 450 451 452 453 454
2012-10-17  Michael Saboff  <msaboff@apple.com>

        StringImpl::findIgnoringCase() and reverseFindIgnoringCase() don't optimally handle a mix of 8 and 16 bit strings
        https://bugs.webkit.org/show_bug.cgi?id=99224

        Reviewed by Geoffrey Garen.

        Added helper templated functions and all four combinations similar to find() and reverseFind().

        (WTF::findIgnoringCaseInner):
        (WTF::StringImpl::findIgnoringCase):
        (WTF::reverseFindIgnoringCaseInner):
        (WTF::StringImpl::reverseFindIgnoringCase):

455 456 457 458 459 460 461 462 463 464 465 466
2012-10-17  Michael Saboff  <msaboff@apple.com>

        AtomicString::HashAndUTF8CharactersTranslator::equal() doesn't optimally handle 8 bit strings
        https://bugs.webkit.org/show_bug.cgi?id=99223

        Reviewed by Geoffrey Garen.

        Added an 8 bit path.

        * wtf/text/AtomicString.cpp:
        (WTF::HashAndUTF8CharactersTranslator::equal):

467 468 469 470 471 472 473 474 475 476 477 478 479
2012-10-17  Anders Carlsson  <andersca@apple.com>

        Always use fastRealloc when growing or shrinking the Vector buffer
        https://bugs.webkit.org/show_bug.cgi?id=99616

        Reviewed by Andreas Kling.

        Remove the pointless #if PLATFORM(BLACKBERRY) and always try to use fastRealloc to grow or shrink the
        vector buffer when possible; realloc should always be at least as fast as free+malloc.

        * wtf/Vector.h:
        (WTF::VectorBufferBase::shouldReallocateBuffer):

480 481 482 483 484 485 486 487 488 489 490
2012-10-16  Michael Saboff  <msaboff@apple.com>

        Change WTF_USE_8BIT_TEXTRUN to ENABLE_8BIT_TEXTRUN
        https://bugs.webkit.org/show_bug.cgi?id=99484

        Reviewed by Eric Seidel.

        Changed macro name to align with it's purpose.

        * wtf/Platform.h:

491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507
2012-10-16  Michael Saboff  <msaboff@apple.com>

        StringImpl::reverseFind() with a single match character isn't optimal for mixed 8/16 bit cases
        https://bugs.webkit.org/show_bug.cgi?id=99363

        Reviewed by Benjamin Poulain.

        Factored out the 8/16 bitness check of the match character from the subject character bitness
        check.  Did this for both find() and reverseFind().  Added all UChar/LChar combinations to the
        inline reverseFind().

        * wtf/text/StringImpl.cpp:
        (WTF::StringImpl::find):
        (WTF::StringImpl::reverseFind):
        * wtf/text/StringImpl.h:
        (WTF::reverseFind):

508 509 510 511 512 513 514 515 516 517 518 519
2012-10-16  Dima Gorbik  <dgorbik@apple.com>

        Remove Platform.h include from the header files.
        https://bugs.webkit.org/show_bug.cgi?id=98665

        Reviewed by Eric Seidel.

        We don't want other clients that include WebKit headers to know about Platform.h.

        * wtf/Assertions.h:
        * wtf/MainThread.h:

520 521 522 523 524 525 526 527 528 529 530
2012-10-16  Adrienne Walker  <enne@google.com>

        Remove unused WTF_NEW_HASHMAP_ITERATORS_INTERFACE #define
        https://bugs.webkit.org/show_bug.cgi?id=99367

        Reviewed by James Robinson.

        Does what it says on the tin.

        * wtf/HashTraits.h:

531 532 533 534 535 536 537 538 539 540 541 542 543 544
2012-10-15  Andreas Kling  <kling@webkit.org>

        Remove WTF::fastDeleteAllValues().
        <http://webkit.org/b/99345>

        Reviewed by Eric Seidel.

        It was only used to fastDelete() a class that was already overriding operator delete
        by way of WTF_MAKE_FAST_ALLOCATED anyway.

        * wtf/HashSet.h:
        (WTF):
        (HashSet):

545 546 547 548 549 550
2012-10-15  Mark Hahnenberg  <mhahnenberg@apple.com>

        Parallel GC should not be disabled for all platforms

        * wtf/Platform.h: D'oh!

551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569
2012-10-15  George Staikos  <staikos@webkit.org>

        [BlackBerry] Adapt to Platform API changes in string handling
        https://bugs.webkit.org/show_bug.cgi?id=99248

        Reviewed by Yong Li.

        Convert usage of WebString, char* and std::string to BlackBerry::Platform::String.

        * wtf/Assertions.cpp: Use proper log function.
        * wtf/text/AtomicString.h: Add BlackBerry support
        (AtomicString):
        (WTF::AtomicString::AtomicString): Add BlackBerry Support
        (WTF::AtomicString::operator BlackBerry::Platform::String):
        * wtf/text/StringImpl.h: Conversion support.
        * wtf/text/WTFString.h: Conversion support.
        (Platform):
        (String):

570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587
2012-10-15  Michael Saboff  <msaboff@apple.com>

        Update RenderText to use String instead of UChar* for text
        https://bugs.webkit.org/show_bug.cgi?id=96979

        Reviewed by Dan Bernstein.

        Added WTF_USE_8BIT_TEXTRUN to encase code that creates 8 bit TextRun's.  Enabled WTF_USE_8BIT_TEXTRUN
        for PLATFORM(MAC).  Other platform can update this setting in Platform.h when their platform specific use of
        TextRun handle 8 bit data.  Added a new Vector::appendVector to allow appending the contents of a vector
        containing one type to the end of vector containing another.  This is used to append a Vector<LChar> to
        the end of a Vector<UChar>.

        * wtf/Platform.h:
        * wtf/Vector.h:
        (Vector):
        (WTF::Vector::appendVector):

588 589 590 591 592 593 594 595 596 597 598 599 600
2012-10-15  Ilya Tikhonovsky  <loislo@chromium.org>

        Web Inspector: convert manual size calculation of different WebKit things into MemoryInstrumentation.
        https://bugs.webkit.org/show_bug.cgi?id=99309

        Reviewed by Yury Semikhatsky.

        JSHeap, DOMStorage and HeapProfiler data were counted manually.
        Now we count the sizes more generic way.

        * wtf/MemoryInstrumentation.h: calculateContainerSize were removed.
        * wtf/MemoryInstrumentationSequence.h: empty instrumentations were added for 'const char*' and 'const void*' sequences.

601 602 603 604 605 606 607 608 609 610 611 612 613 614 615
2012-10-12  Anders Carlsson  <andersca@apple.com>

        Move QDataStream functions into HistoryItemQt.cpp
        https://bugs.webkit.org/show_bug.cgi?id=99203

        Reviewed by Andreas Kling.

        It seems like the QDataStream stream operators are only used from HistoryItemQt.cpp
        inside WebCore, so move them there. If in the future they are required elsewhere, they should
        be moved into a separate header instead of polluting headers unnecessarily.

        * wtf/Vector.h:
        * wtf/qt/StringQt.cpp:
        * wtf/text/WTFString.h:

616 617 618 619 620 621 622 623 624 625 626 627
2012-10-12  Michael Saboff  <msaboff@apple.com>

        StringBuilder::append(StringBuilder&) doesn't take into account the bit size of the argument string
        https://bugs.webkit.org/show_bug.cgi?id=99225

        Reviewed by Benjamin Poulain.

        Added 8 bit path.

        * wtf/text/StringBuilder.h:
        (WTF::StringBuilder::append):

628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646
2012-10-12  Sheriff Bot  <webkit.review.bot@gmail.com>

        Unreviewed, rolling out r131224.
        http://trac.webkit.org/changeset/131224
        https://bugs.webkit.org/show_bug.cgi?id=99210

        It broke the build (Requested by andersca on #webkit).

        * wtf/Vector.h:
        (WTF):
        (WTF::operator<<):
        (WTF::operator>>):
        * wtf/qt/StringQt.cpp:
        (WTF::operator<<):
        (WTF):
        (WTF::operator>>):
        * wtf/text/WTFString.h:
        (WTF):

647 648 649 650 651 652 653 654 655 656 657 658 659 660 661
2012-10-12  Anders Carlsson  <andersca@apple.com>

        Move QDataStream functions into HistoryItemQt.cpp
        https://bugs.webkit.org/show_bug.cgi?id=99203

        Reviewed by Andreas Kling.

        It seems like the QDataStream stream operators are only used from HistoryItemQt.cpp
        inside WebCore, so move them there. If in the future they are required elsewhere, they should
        be moved into a separate header instead of polluting headers unnecessarily.

        * wtf/Vector.h:
        * wtf/qt/StringQt.cpp:
        * wtf/text/WTFString.h:

662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678
2012-10-11  Mark Toller  <mark.toller@samsung.com>

        Removed incorrect pthread_mutex_trylock code in an ASSERT in TCMalloc_PageHeap::signalScavenger. This 
        branch is used by the Webkit GTK code.

        https://bugs.webkit.org/show_bug.cgi?id=97539

        Reviewed by Geoffrey Garen.

        The code was never compiled in, and was functionally broken. There is no need for locking around the 
        m_scavengeThreadActive flag, however, we should lock pageheap_lock before calling 'shouldScavenge()', as we
        only want to scavenge when really required, so it's better to wait for any current memory operation to 
        complete before checking. 

        * wtf/FastMalloc.cpp:
        (WTF::TCMalloc_PageHeap::signalScavenger):

679 680 681 682 683 684 685 686 687 688 689 690
2012-10-10  Yong Li  <yoli@rim.com>

        [BlackBerry] Define WTF_USE_EXTRA_MACROS in cmake rather than Platform.h
        https://bugs.webkit.org/show_bug.cgi?id=98819

        Reviewed by Rob Buis.

        And make it depend on SHARED_CORE
        RIM PR# 221339.

        * wtf/Platform.h:

691 692 693 694 695 696 697 698 699 700 701 702 703
2012-10-09  Filip Pizlo  <fpizlo@apple.com>

        JSC should infer when indexed storage is contiguous, and optimize for it
        https://bugs.webkit.org/show_bug.cgi?id=97288

        Reviewed by Mark Hahnenberg.

        Moved out this helpful math utility to MathExtras, since we now use it in
        multiple places.

        * wtf/MathExtras.h:
        (timesThreePlusOneDividedByTwo):

704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733
2012-10-08  Benjamin Poulain  <benjamin@webkit.org>

        Generalize moving URLComponent's begin position
        https://bugs.webkit.org/show_bug.cgi?id=98626

        Reviewed by Adam Barth.

        The patch r130609 introduced moving URLComponents's position.
        It turns out this concept is really useful in the parser so
        this patch generalize the idea.

        * wtf/url/api/ParsedURL.cpp:
        (WTF::ParsedURL::removePort):
        * wtf/url/src/URLCanonEtc.cpp:
        * wtf/url/src/URLComponent.h:
        (WTF::URLComponent::moveBy):
        Rename URLComponent::move() to URLComponent::moveBy() for consistency
        with some of WebCore types.

        * wtf/url/src/URLParse.cpp:
        * wtf/url/src/URLParseFile.cpp:

        * wtf/url/src/URLSegments.cpp:
        (WTF::URLSegments::moveFromComponentBy):
        Change the semantic to everything from a certain component. This is
        useful to move everything, including the scheme.

        * wtf/url/src/URLSegments.h:
        (URLSegments):

734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749
2012-10-08  Andreas Kling  <kling@webkit.org>

        Lower minimum table size of WTF::HashTable to reduce memory usage.
        <http://webkit.org/b/98406>
        <rdar://problem/12432140>

        Reviewed by Anders Carlsson.

        Lower the default minimumTableSize for WTF hash tables from 64 to 8 entries.
        This reduces WebProcess memory consumption by ~16MB on Membuster3 (a 6% progression!)

        No significant movement on PLT or JSC benchmarks on my machine. If there's a perf regression somewhere
        from this, we can tweak individual tables to have a larger minimumTableSize.

        * wtf/HashTraits.h:

750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766
2012-10-08  Andreas Kling  <kling@webkit.org>

        Using float/double as WTF hash table key is unreliable.
        <http://webkit.org/b/98627>

        Reviewed by Geoffrey Garen.

        Change FloatHash::equal() to do a bitwise compare instead of a logical compare.
        This fixes a problem where the keys with different binary representation but the
        same logical value (e.g 0 and -0) could block each other from being found if they
        ended up in the same hash bucket.

        * wtf/HashFunctions.h:
        (FloatHash):
        (WTF::FloatHash::hash):
        (WTF::FloatHash::equal):

767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782
2012-10-08  Sheriff Bot  <webkit.review.bot@gmail.com>

        Unreviewed, rolling out r130619.
        http://trac.webkit.org/changeset/130619
        https://bugs.webkit.org/show_bug.cgi?id=98634

        Causes many crashes on the EFL bots. (Requested by rakuco on
        #webkit).

        * wtf/efl/MainThreadEfl.cpp:
        (WTF::pipeObject):
        (WTF):
        (WTF::monitorDispatchFunctions):
        (WTF::initializeMainThreadPlatform):
        (WTF::scheduleDispatchFunctionsOnMainThread):

783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801
2012-10-08  Byungwoo Lee  <bw80.lee@samsung.com>

        [EFL] Use ecore_main_loop_thread_safe_call_async() to wakeup main loop.
        https://bugs.webkit.org/show_bug.cgi?id=98505

        Reviewed by Kenneth Rohde Christiansen.

        Instead of ecore_pipe_write(),
        use ecore_main_loop_thread_safe_call_async() to wakeup ecore main loop.

        According to the EFL API document, this function is designed to dispatch
        a function on ecore main loop by avoiding dead lock or race condition. 
        With this function, webkit doesn't need to maintain ecore pipe also.

        * wtf/efl/MainThreadEfl.cpp:
        (WTF::monitorDispatchFunctions):
        (WTF::initializeMainThreadPlatform):
        (WTF::scheduleDispatchFunctionsOnMainThread):

802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867
2012-10-07  Caio Marcelo de Oliveira Filho  <caio.oliveira@openbossa.org>

        Rename first/second to key/value in HashMap iterators
        https://bugs.webkit.org/show_bug.cgi?id=82784

        Reviewed by Eric Seidel.

        Currently HashMap iterators follow the same interface in std::map: given an
        iterator it, we use it->first to access the key and it->second to access the
        value. This patch changes these accesses to it->key and it->value, improving the
        readability at call sites.

        One potential downside of this change would be the confusion between std::map and
        HashMap interfaces. However, they are already different in other aspects and the
        usage of std::map is more an exception than a rule in WebKit code, so we consider
        the confusion will be less likely to happen.

        * wtf/HashCountedSet.h:
        (WTF::::add):
        (WTF::::remove):
        (WTF::copyToVector):
        * wtf/HashIterators.h:
        (WTF::HashTableConstKeysIterator::get):
        (WTF::HashTableConstValuesIterator::get):
        (WTF::HashTableKeysIterator::get):
        (WTF::HashTableValuesIterator::get):
        * wtf/HashMap.h:
        (WTF::KeyValuePairKeyExtractor::extract):
        (WTF::HashMapValueTraits::isEmptyValue):
        (WTF::HashMapTranslator::translate):
        (WTF::HashMapTranslatorAdapter::translate):
        (WTF::::set):
        (WTF::::get):
        (WTF::::take):
        (WTF::operator==):
        (WTF::deleteAllValues):
        (WTF::deleteAllKeys):
        Removed deleteAllPairFirsts() and deleteAllPairSeconds() since they are now unused.

        * wtf/HashTable.h:
        (WTF::hashTableSwap):
        (WTF::::checkTableConsistencyExceptSize):
        * wtf/HashTraits.h:
        (WTF):
        (WTF::KeyValuePair::KeyValuePair):
        (KeyValuePair):
        (WTF::KeyValuePairHashTraits::constructDeletedValue):
        (WTF::KeyValuePairHashTraits::isDeletedValue):
        * wtf/MetaAllocator.cpp:
        (WTF::MetaAllocator::addFreeSpace):
        (WTF::MetaAllocator::incrementPageOccupancy):
        (WTF::MetaAllocator::decrementPageOccupancy):
        * wtf/RefCountedLeakCounter.cpp:
        (WTF::RefCountedLeakCounter::~RefCountedLeakCounter):
        * wtf/RefPtrHashMap.h:
        (WTF::::set):
        (WTF::::get):
        (WTF::::inlineGet):
        (WTF::::take):
        * wtf/Spectrum.h:
        (WTF::Spectrum::add):
        (WTF::Spectrum::get):
        (WTF::Spectrum::buildList):
        * wtf/ThreadingPthreads.cpp:
        (WTF::identifierByPthreadHandle):

868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899
2012-10-07  Benjamin Poulain  <benjamin@webkit.org>

        WTFURL: implement URL port removal for HTMLAnchorElement
        https://bugs.webkit.org/show_bug.cgi?id=98604

        Reviewed by Adam Barth.

        Add hasStandardScheme() (similar to isStandard from Google URL),
        hasPort() and removePort() to implement the port removal of KURL.

        * wtf/url/api/ParsedURL.cpp:
        (WTF::ParsedURL::hasStandardScheme):
        (WTF::ParsedURL::hasPort):
        (WTF::ParsedURL::removePort):
        * wtf/url/api/ParsedURL.h:
        (ParsedURL):
        * wtf/url/src/URLComponent.h:
        (WTF::URLComponent::move):
        * wtf/url/src/URLSegments.cpp:
        (WTF::URLSegments::moveComponentsAfter):
        * wtf/url/src/URLSegments.h:
        (URLSegments):
        * wtf/url/src/URLUtil.cpp:
        (URLUtilities):
        (WTF::URLUtilities::isStandard):
        * wtf/url/src/URLUtil.h:
        (URLUtilities):
        Remove LowerCaseEqualsASCII() from the interface, make it an internal template.

        (WTF::URLUtilities::isStandard):
        Since in WebKit, LChar is a superset of char, expose LChar and cast char* to LChar*.

900 901 902 903 904 905 906 907 908 909 910 911 912 913 914
2012-10-06  Ilya Tikhonovsky  <loislo@chromium.org>

        Web Inspector: NMI fix String instrumentation the way it was discussed in WK97964
        https://bugs.webkit.org/show_bug.cgi?id=98500

        Reviewed by Benjamin Poulain.

        Current instrumentation incorrectly covers the case when StringImpl object has been created via StringImpl::createWithTerminatingNullCharacter().
        Looks like the only way to detect the strings that has been created from literals is to compare the addresses of buffer and stringImpl + 1.

        * wtf/MemoryInstrumentationString.h:
        (WTF::reportMemoryUsage):
        * wtf/text/StringImpl.h:
        (WTF::StringImpl::hasInternalBuffer):

915 916 917 918 919 920 921 922 923 924 925 926
2012-10-06  Benjamin Poulain  <benjamin@webkit.org>

        Fix build of WTFURL after r130187
        https://bugs.webkit.org/show_bug.cgi?id=98588

        Reviewed by Kentaro Hara.

        * wtf/MemoryInstrumentationParsedURL.h:
        (WTF::reportMemoryUsage):
        * wtf/url/api/ParsedURL.h:
        (WTF::ParsedURL::spec):

927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949
2012-10-05  Simon Pena  <spena@igalia.com>

        [GTK] Add support for GBytes in GRefPtr
        https://bugs.webkit.org/show_bug.cgi?id=98489

        Reviewed by Carlos Garcia Campos.

        Adding support for GBytes in GRefPtr makes it easier
        for them to be used when adding GResources support,
        and is more consistent with the rest of the port.

        This calls g_bytes_ref and g_bytes_unref in the implementation
        of the refPtr and derefPtr template functions, in case the GLib
        version is met. Otherwise, it does nothing.

        * wtf/gobject/GRefPtr.cpp: Implement templates for ref and deref.
        (WTF::refGPtr):
        (WTF):
        (WTF::derefGPtr):
        * wtf/gobject/GRefPtr.h:
        (WTF):
        * wtf/gobject/GTypedefs.h: Define the GBytes datatype.

950 951 952 953 954 955 956 957 958 959 960 961 962
2012-10-05  Sheriff Bot  <webkit.review.bot@gmail.com>

        Unreviewed, rolling out r130478.
        http://trac.webkit.org/changeset/130478
        https://bugs.webkit.org/show_bug.cgi?id=98494

        It broke the Qt build (Requested by Ossy on #webkit).

        * wtf/gobject/GRefPtr.cpp:
        * wtf/gobject/GRefPtr.h:
        (WTF):
        * wtf/gobject/GTypedefs.h:

963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984
2012-10-05  Simon Pena  <spena@igalia.com>

        [GTK] Add support for GBytes in GRefPtr
        https://bugs.webkit.org/show_bug.cgi?id=98489

        Reviewed by Carlos Garcia Campos.

        Adding support for GBytes in GRefPtr makes it easier
        for them to be used when adding GResources support,
        and is more consistent with the rest of the port.

        This calls g_bytes_ref and g_bytes_unref in the implementation
        of the refPtr and derefPtr template functions.

        * wtf/gobject/GRefPtr.cpp: Implement templates for ref and deref.
        (WTF::refGPtr):
        (WTF):
        (WTF::derefGPtr):
        * wtf/gobject/GRefPtr.h:
        (WTF):
        * wtf/gobject/GTypedefs.h: Define the GBytes datatype.

985 986 987 988 989 990 991 992 993 994
2012-10-04  Dirk Pranke  <dpranke@chromium.org>

        Unreviewed, rolling out r130419.
        http://trac.webkit.org/changeset/130419
        https://bugs.webkit.org/show_bug.cgi?id=98406

        broke editing/pasteboard/data-transfer-items.html on chromium

        * wtf/HashTraits.h:

995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010
2012-10-04  Andreas Kling  <kling@webkit.org>

        Lower minimum table size of WTF::HashTable to reduce memory usage.
        <http://webkit.org/b/98406>
        <rdar://problem/12432140>

        Reviewed by Anders Carlsson.

        Lower the default minimumTableSize for WTF hash tables from 64 to 8 entries.
        This reduces WebProcess memory consumption by ~16MB on Membuster3 (a 6% progression!)

        No significant movement on PLT or JSC benchmarks on my machine. If there's a perf regression somewhere
        from this, we can tweak individual tables to have a larger minimumTableSize.

        * wtf/HashTraits.h:

1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025
2012-10-04  Michael Saboff  <msaboff@apple.com>

        String::remove will convert an 8 bit string to a 16 bit string
        https://bugs.webkit.org/show_bug.cgi?id=98299

        Reviewed by Benjamin Poulain.

        Added an 8 bit path to remove().  Added a private templated helper removeInternal.

        * wtf/text/WTFString.cpp:
        (WTF::String::removeInternal):
        (WTF::String::remove):
        * wtf/text/WTFString.h:
        (String):

1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050
2012-10-03  Kangil Han  <kangil.han@samsung.com>

        [Refactoring] Tidy NDEBUG optioning in RefCountedBase.
        https://bugs.webkit.org/show_bug.cgi?id=98252

        Reviewed by Benjamin Poulain.

        Fixed incomplete implementation for NDEBUG option.
        Additionally, adopted CHECK_REF_COUNTED_LIFECYCLE definition to suppress abusing NDEBUG option.

        * wtf/RefCounted.h:
        (WTF):
        (WTF::RefCountedBase::ref):
        (WTF::RefCountedBase::hasOneRef):
        (WTF::RefCountedBase::refCount):
        (WTF::RefCountedBase::turnOffVerifier):
        (WTF::RefCountedBase::relaxAdoptionRequirement):
        (WTF::RefCountedBase::RefCountedBase):
        (WTF::RefCountedBase::~RefCountedBase):
        (WTF::RefCountedBase::derefBase):
        (RefCountedBase):
        (WTF::adopted):
        (WTF::RefCountedBase::setMutexForVerifier):
        (WTF::RefCountedBase::setDispatchQueueForVerifier):

1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070
2012-10-03  Yury Semikhatsky  <yurys@chromium.org>

        Remove MemoryInstrumentation::addCollectionElements
        https://bugs.webkit.org/show_bug.cgi?id=98245

        Reviewed by Vsevolod Vlasov.

        Removed MemoryInstrumentation::addCollectionElements and switched all call sites
        to reportSequenceMemoryUsage.

        Drive-by fix: removed some unused methods on MemoryInstrumentation.

        * wtf/MemoryInstrumentation.h:
        * wtf/MemoryInstrumentationHashSet.h:
        (WTF::reportMemoryUsage):
        * wtf/MemoryInstrumentationSequence.h:
        (WTF::SequenceMemoryInstrumentationTraits::reportMemoryUsage):
        * wtf/MemoryInstrumentationVector.h:
        (WTF::reportMemoryUsage):

1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099
2012-10-02  Yury Semikhatsky  <yurys@chromium.org>

        Provide memory instrumentation for HashCountedSet
        https://bugs.webkit.org/show_bug.cgi?id=98138

        Reviewed by Pavel Feldman.

        Added memory instrumentation for HashCountedSet.

        Extracted common routines for collecting memory info for an iterable sequence.

        * GNUmakefile.list.am:
        * WTF.gypi:
        * WTF.pro:
        * WTF.vcproj/WTF.vcproj:
        * WTF.xcodeproj/project.pbxproj:
        * wtf/MemoryInstrumentation.h:
        (WTF):
        * wtf/MemoryInstrumentationHashCountedSet.h: Copied from Source/WTF/wtf/MemoryInstrumentationHashSet.h.
        (WTF):
        (WTF::reportMemoryUsage):
        * wtf/MemoryInstrumentationHashMap.h:
        (WTF::reportMemoryUsage):
        * wtf/MemoryInstrumentationHashSet.h:
        * wtf/MemoryInstrumentationSequence.h: Copied from Source/WTF/wtf/MemoryInstrumentationHashMap.h.
        (WTF):
        (WTF::SequenceMemoryInstrumentationTraits::reportMemoryUsage):
        (WTF::reportSequenceMemoryUsage):

1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126
2012-10-02  Joshua Bell  <jsbell@chromium.org>

        Add htons/htonl definitions and implementations
        https://bugs.webkit.org/show_bug.cgi?id=98054

        Reviewed by Darin Adler.

        For parsing or serializing binary data, byte order matters. The canonical htons/htonl/
        ntohs/ntohl functions are not present everywhere, so implementations are proliferating in
        parsers. Expose a new WTF header (wtf/ByteOrder.h) that includes the standard
        implementations on UNIX-like OSs and provides basic inlined implementations on Windows.

        * GNUmakefile.list.am:
        * WTF.gypi:
        * WTF.pro:
        * WTF.vcproj/WTF.vcproj:
        * WTF.xcodeproj/project.pbxproj:
        * wtf/ByteOrder.h: Added.
        (WTF::wswap32): Inline functions so arguments are only evaluated once.
        (WTF::bswap32):
        (WTF::bswap16):
        (ntohs): Inline functions on OS(WINDOWS) to match macros on OS(UNIX)
        (htons):
        (ntohl):
        (htonl):
        * wtf/CMakeLists.txt:

1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141
2012-10-02  Michael Saboff  <msaboff@apple.com>

        HTMLConstructionSite::insertTextNode isn't optimized for 8 bit strings
        https://bugs.webkit.org/show_bug.cgi?id=97740

        Reviewed by Darin Adler.

        Added an append method that takes an LChar source.  Made both the UChar and LChar versions optimally handle
        the appendee and appendend string bitness.

        * wtf/text/WTFString.cpp:
        (WTF::String::append):
        * wtf/text/WTFString.h:
        (String):

1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169
2012-10-02  Ilya Tikhonovsky  <loislo@chromium.org>

        Web Inspector: NMI: switch to non intrusive instrumentation of ParsedURL.
        https://bugs.webkit.org/show_bug.cgi?id=98150

        Reviewed by Yury Semikhatsky.

        Memory instrumentation for ParsedURL was extracted into separate header MemoryInstrumentationParsedURL.h

        Drive by fix: unnecessary include was removed from String*.cpp files.

        * GNUmakefile.list.am:
        * WTF.gypi:
        * WTF.pro:
        * WTF.xcodeproj/project.pbxproj:
        * wtf/MemoryInstrumentation.h:
        (WTF):
        * wtf/MemoryInstrumentationParsedURL.h: Added.
        (WTF):
        (WTF::reportMemoryUsage):
        * wtf/text/AtomicString.cpp:
        * wtf/text/StringImpl.cpp:
        * wtf/text/WTFString.cpp:
        * wtf/url/api/ParsedURL.cpp:
        * wtf/url/api/ParsedURL.h:
        * wtf/url/api/URLString.cpp:
        * wtf/url/api/URLString.h:

1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201
2012-09-29  Ilya Tikhonovsky  <loislo@chromium.org>

        Web Inspector: NMI make String* instrumentation non intrusive
        https://bugs.webkit.org/show_bug.cgi?id=97964

        Reviewed by Yury Semikhatsky.

        MemoryInstrumentationString.h was added.
        Intrusive instrumentation was removed.

        * GNUmakefile.list.am:
        * WTF.gypi:
        * WTF.pro:
        * WTF.vcproj/WTF.vcproj:
        * WTF.xcodeproj/project.pbxproj:
        * wtf/MemoryInstrumentation.h:
        (WTF):
        * wtf/MemoryInstrumentationString.h: Added.
        (WTF):
        (WTF::reportMemoryUsage):
        * wtf/text/AtomicString.cpp:
        (WTF):
        * wtf/text/AtomicString.h:
        (AtomicString):
        * wtf/text/CString.h:
        (WTF::CStringBuffer::length):
        * wtf/text/StringImpl.cpp:
        * wtf/text/StringImpl.h:
        (WTF::StringImpl::usesInternalBuffer):
        (WTF::StringImpl::baseString):
        (StringImpl):

1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241
2012-10-02  Sheriff Bot  <webkit.review.bot@gmail.com>

        Unreviewed, rolling out r130129.
        http://trac.webkit.org/changeset/130129
        https://bugs.webkit.org/show_bug.cgi?id=98125

        broke 4 webkit_unit_tests
        (MemoryInstrumentationTest.hashMapWith*) (Requested by caseq
        on #webkit).

        * GNUmakefile.list.am:
        * WTF.gypi:
        * WTF.pro:
        * WTF.vcproj/WTF.vcproj:
        * WTF.xcodeproj/project.pbxproj:
        * wtf/MemoryInstrumentation.h:
        (WTF):
        * wtf/MemoryInstrumentationString.h: Removed.
        * wtf/text/AtomicString.cpp:
        (WTF::AtomicString::reportMemoryUsage):
        (WTF):
        * wtf/text/AtomicString.h:
        (AtomicString):
        * wtf/text/CString.h:
        (WTF::CStringBuffer::length):
        (CStringBuffer):
        (WTF::CStringBuffer::reportMemoryUsage):
        (CString):
        (WTF::CString::reportMemoryUsage):
        * wtf/text/StringImpl.cpp:
        (WTF::StringImpl::reportMemoryUsage):
        (WTF):
        * wtf/text/StringImpl.h:
        (StringImpl):
        * wtf/text/WTFString.cpp:
        (WTF::String::reportMemoryUsage):
        (WTF):
        * wtf/text/WTFString.h:
        (String):

1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273
2012-09-29  Ilya Tikhonovsky  <loislo@chromium.org>

        Web Inspector: NMI make String* instrumentation non intrusive
        https://bugs.webkit.org/show_bug.cgi?id=97964

        Reviewed by Yury Semikhatsky.

        MemoryInstrumentationString.h was added.
        Intrusive instrumentation was removed.

        * GNUmakefile.list.am:
        * WTF.gypi:
        * WTF.pro:
        * WTF.vcproj/WTF.vcproj:
        * WTF.xcodeproj/project.pbxproj:
        * wtf/MemoryInstrumentation.h:
        (WTF):
        * wtf/MemoryInstrumentationString.h: Added.
        (WTF):
        (WTF::reportMemoryUsage):
        * wtf/text/AtomicString.cpp:
        (WTF):
        * wtf/text/AtomicString.h:
        (AtomicString):
        * wtf/text/CString.h:
        (WTF::CStringBuffer::length):
        * wtf/text/StringImpl.cpp:
        * wtf/text/StringImpl.h:
        (WTF::StringImpl::usesInternalBuffer):
        (WTF::StringImpl::baseString):
        (StringImpl):

1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286
2012-10-01  Daniel Drake  <dsd@laptop.org>

        Another SIGILL in JavaScriptCore on a Geode processor
        https://bugs.webkit.org/show_bug.cgi?id=96286

        Reviewed by Filip Pizlo.

        Disable LLint for the GTK build where the build target does not
        support SSE2 instructions. Restores support for non-SSE2 processors
        such as the AMD Geode.

        * wtf/Platform.h:

1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310
2012-10-01  Yury Semikhatsky  <yurys@chromium.org>

        Web Inspector: provide memory instrumentation for HashMap
        https://bugs.webkit.org/show_bug.cgi?id=98005

        Reviewed by Pavel Feldman.

        Extracted HashMap memory instrumentation into its own file. The map's content
        elements will be automatically traversed if their types are supported
        by the memory instrumentation. No need to call special method for hash map
        fields any more.

        * GNUmakefile.list.am:
        * WTF.gypi:
        * WTF.pro:
        * WTF.vcproj/WTF.vcproj:
        * wtf/MemoryInstrumentation.h:
        (MemoryInstrumentation):
        (WTF):
        * wtf/MemoryInstrumentationHashMap.h: Added.
        (WTF):
        (WTF::SequenceMemoryInstrumentationTraits::reportMemoryUsage):
        (WTF::reportMemoryUsage):

1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325
2012-10-01  Alberto Garcia  <agarcia@igalia.com>

        Check that __cplusplus is defined before comparing its value
        https://bugs.webkit.org/show_bug.cgi?id=98015

        Reviewed by Xan Lopez.

        If __cplusplus is not defined is interpreted as having the value
        0, but it produces a compilation warning with -Wundef.

        This is the case with some API tests that are written in C
        (JSNode.c, JSNodeList.c, minidom.c).

        * wtf/Compiler.h:

1326 1327 1328 1329 1330 1331
2012-10-01  Carlos Garcia Campos  <cgarcia@igalia.com>

        Unreviewed. Fix make distcheck.

        * GNUmakefile.list.am: Add missing header files to compilation.

1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342
2012-09-30  Mark Hahnenberg  <mhahnenberg@apple.com>

        Clean up HasTrivialConstructor/Destructor
        https://bugs.webkit.org/show_bug.cgi?id=97754

        Reviewed by Sam Weinig.

        Mixed up the HasTrivialDestructor/Constructor case for VS2010 and later in the previous patch.

        * wtf/TypeTraits.h:

1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353
2012-09-29  Sheriff Bot  <webkit.review.bot@gmail.com>

        Unreviewed, rolling out r129982.
        http://trac.webkit.org/changeset/129982
        https://bugs.webkit.org/show_bug.cgi?id=97971

        hit assert in fast/overflow/overflow-height-float-not-removed-
        crash3.html (Requested by eae on #webkit).

        * wtf/Platform.h:

1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370
2012-09-29  Emil A Eklund  <eae@chromium.org>

        Enable SATURATED_LAYOUT_ARITHMETIC for chromium
        https://bugs.webkit.org/show_bug.cgi?id=95053

        Reviewed by Abhishek Arya.

        Enable the SATURATED_LAYOUT_ARITHMETIC flag for the chromium port.
        This changes the behavior of FractionalLayoutUnit to clamp to the
        max or min value instead of overflowing.

        This may very well impact performance so the current plan is to enable
        it for a couple of hours to a day to collect performance data and then
        disable it again until we've had a chance to review the perf data.

        * wtf/Platform.h:

andersca@apple.com's avatar
andersca@apple.com committed
1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381
2012-09-28  Anders Carlsson  <andersca@apple.com>

        Remove Java bridge
        https://bugs.webkit.org/show_bug.cgi?id=97954

        Reviewed by Sam Weinig.

        The Java bridge is not used by any port; Mac now has a NPAPI Java plug-in.

        * wtf/Platform.h:

1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394
2012-09-28  Kai Koehne  <kai.koehne@digia.com>

        Disable YARR_JIT for Windows 64 bit
        https://bugs.webkit.org/show_bug.cgi?id=97772

        Reviewed by Simon Hausmann.

        Using YARR_JIT requires ASSEMBLER, which in turn enables the
        executable fixed allocator, which is mmap based (not available on
        Windows).

        * wtf/Platform.h:

1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421
2012-09-28  Yury Semikhatsky  <yurys@chromium.org>

        Web Inspector: make HashSet memory instrumentation non-intrusive
        https://bugs.webkit.org/show_bug.cgi?id=97879

        Reviewed by Vsevolod Vlasov.

        Removed reportMemoryUsage declarations as a friend of HashSet and HashTable. Also
        removed MemoryInstrumentationHashTable which is not needed if we don't have
        access to HashSet's guts.

        * GNUmakefile.list.am:
        * WTF.gypi:
        * WTF.pro:
        * WTF.vcproj/WTF.vcproj:
        * WTF.xcodeproj/project.pbxproj:
        * wtf/HashSet.h:
        (WTF):
        (HashSet):
        * wtf/HashTable.h:
        (HashTable):
        * wtf/MemoryInstrumentation.h:
        (WTF::MemoryClassInfo::addPrivateBuffer):
        * wtf/MemoryInstrumentationHashSet.h:
        (WTF::reportMemoryUsage):
        * wtf/MemoryInstrumentationHashTable.h: Removed.

1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433
2012-09-27  Anders Carlsson  <andersca@apple.com>

        Remove the clang pragmas to disable warnings in Noncopyable.h
        https://bugs.webkit.org/show_bug.cgi?id=97826

        Reviewed by Beth Dakin.

        Warnings about C++11 extensions are already disabled project-wide now so there's no need
        to keep these pragmas.

        * wtf/Noncopyable.h:

1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445
2012-09-26  Mark Hahnenberg  <mhahnenberg@apple.com>

        Clean up HasTrivialConstructor/Destructor
        https://bugs.webkit.org/show_bug.cgi?id=97754

        Reviewed by Darin Adler.

        Cleaned up HasTrivialConstructor and HasTrivialDestructor by defining them in terms of 
        other type traits we have. Also moved some ifdefs and comments to make things more clear.

        * wtf/TypeTraits.h:

1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466
2012-09-27  Ilya Tikhonovsky  <loislo@chromium.org>

        Web Inspector: NMI: move visited and countObjectSize methods implementation into separate class.
        https://bugs.webkit.org/show_bug.cgi?id=97461

        Reviewed by Yury Semikhatsky.

        These methods and the data collected by them need to be used in the instrumentation code for other components.
        As example when we are visiting bitmaps we need to visit platform specific objects.
        These objects will be instrumented with help of component's own instrumentation code
        but we have to keep the single set of visited objects and the map of counters.

        * wtf/MemoryInstrumentation.h:
        (MemoryInstrumentationClient):
        (WTF::MemoryInstrumentationClient::~MemoryInstrumentationClient):
        (WTF):
        (WTF::MemoryInstrumentation::MemoryInstrumentation):
        (MemoryInstrumentation):
        (WTF::MemoryInstrumentation::countObjectSize):
        (WTF::MemoryInstrumentation::visited):

1467 1468 1469 1470 1471 1472 1473 1474 1475
2012-09-27  Csaba Osztrogonác  <ossy@webkit.org>, Tor Arne Vestbø  <vestbo@webkit.org>

        [Qt] Enable the LLInt on Linux
        https://bugs.webkit.org/show_bug.cgi?id=95749

        Reviewed by Simon Hausmann.

        * wtf/Platform.h:

1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490
2012-09-26  Cosmin Truta  <ctruta@rim.com>

        [BlackBerry] Allow denormal floats in ARM VFP
        https://bugs.webkit.org/show_bug.cgi?id=97008

        Reviewed by Filip Pizlo.
        Reviewed internally by Yong Li.

        Cleared the Flush-to-Zero flag in the ARM FPSCR register on QNX.

        * wtf/ThreadingPthreads.cpp:
        (WTF::enableIEEE754Denormal): Added.
        (WTF::initializeThreading):
        (WTF::initializeCurrentThreadInternal):

1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507
2012-09-26  Michael Saboff  <msaboff@apple.com>

        Update ComplexTextController for 8 bit TextRun changes
        https://bugs.webkit.org/show_bug.cgi?id=97378

        Reviewed by Geoffrey Garen.

        Add a new create method to make a 16 bit string from 8 bit source data.  This is used in 
        ComplexTextController when we have LChar* + length text data, but we really want 16 bit
        data for the complex text rendering code.

        * wtf/text/WTFString.cpp:
        (WTF::String::make16BitFrom8BitSource):
        (WTF):
        * wtf/text/WTFString.h:
        (String):

1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526
2012-09-26  Ilya Tikhonovsky  <loislo@chromium.org>

        Web Inspector: NMI: replace manual JS external resources counting with MemoryInstrumentation
        https://bugs.webkit.org/show_bug.cgi?id=97662

        Reviewed by Yury Semikhatsky.

        Old schema uses sizeInBytes method on StringImpl. This method works incorrect for substrings.
        Also we'd like to know exact pointers to strings and buffers for verification purposes.

        * GNUmakefile.list.am:
        * WTF.gypi:
        * WTF.pro:
        * WTF.vcproj/WTF.vcproj:
        * WTF.xcodeproj/project.pbxproj:
        * wtf/MemoryInstrumentationArrayBufferView.h:
        (WTF):
        (WTF::reportMemoryUsage):

1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557
2012-09-25  Ilya Tikhonovsky  <loislo@chromium.org>

        Web Inspector: extract HashSet instrumentation from core NMI code and put it into MemoryInstrumentationHashSet.h
        https://bugs.webkit.org/show_bug.cgi?id=97198

        Reviewed by Yury Semikhatsky.

        Current implementation has overloads for HashSet.
        This prevents us from instrumenting complex cases like Vector<HashSet<...> >.

        * GNUmakefile.list.am:
        * WTF.gypi:
        * WTF.pro:
        * WTF.vcproj/WTF.vcproj:
        * WTF.xcodeproj/project.pbxproj:
        * wtf/HashSet.h:
        (WTF):
        (HashSet):
        * wtf/HashTable.h:
        (WTF):
        (HashTable):
        * wtf/MemoryInstrumentation.h:
        (WTF::MemoryClassInfo::addCollectionElements):
        (WTF::MemoryClassInfo::addHashCountedSet):
        * wtf/MemoryInstrumentationHashSet.h: Added.
        (WTF):
        (WTF::reportMemoryUsage):
        * wtf/MemoryInstrumentationHashTable.h: Added.
        (WTF):
        (WTF::reportMemoryUsage):

1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570
2012-09-26  Yury Semikhatsky  <yurys@chromium.org>

        Web Inspector: compare objects counted by the memory instrumentation with those allocated in the heap
        https://bugs.webkit.org/show_bug.cgi?id=97641

        Reviewed by Pavel Feldman.

        Added a method for checking if reported object was actually allocated in the heap.

        * wtf/MemoryInstrumentation.h:
        (MemoryInstrumentation):
        (WTF::MemoryInstrumentation::addObjectImpl):

1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587
2012-09-26  Gavin Barraclough  <barraclough@apple.com>

        String.localeCompare should normalize input
        https://bugs.webkit.org/show_bug.cgi?id=97639

        Reviewed by Filip Pizlo.

        From the spec: "It is strongly recommended that this function treat Strings that are
        canonically equivalent according to the Unicode standard as identical (in other words,
        compare the Strings as if they had both been converted to Normalised Form C or D first).
        It is also recommended that this function not honour Unicode compatibility equivalences
        or decompositions."

        * wtf/unicode/icu/CollatorICU.cpp:
        (WTF::Collator::createCollator):
            - Enable normalization.

1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598
2012-09-25  Cosmin Truta  <ctruta@rim.com>

        [BlackBerry] Enable LLInt
        https://bugs.webkit.org/show_bug.cgi?id=97604

        Reviewed by Yong Li.

        Set the prefix of LOCAL_LABEL_STRING to ".L" on QNX.

        * wtf/InlineASM.h:

1599 1600 1601 1602 1603 1604 1605 1606
2012-09-25  Patrick Gansterer  <paroga@webkit.org>

        Do not enable DFG JIT for COMPILER(MSVC).

        The current code does not support MSVC inline assembler, so disable it for now.

        * wtf/Platform.h:

1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622
2012-09-25  Pratik Solanki  <psolanki@apple.com>

        Remove HAVE_SBRK since we never set use_sbrk to true
        https://bugs.webkit.org/show_bug.cgi?id=97525
        <rdar://problem/12363601>

        Reviewed by Geoffrey Garen.

        The code under HAVE(SBRK) has not been used since 2005. We use mmap not sbrk for FastMalloc
        not sbrk. We can just remove the define and move all of this code inside #ifndef
        WTF_CHANGES.

        * wtf/Platform.h:
        * wtf/TCSystemAlloc.cpp:
        (TCMalloc_SystemAlloc):

1623 1624 1625 1626 1627 1628 1629 1630 1631
2012-09-25  Mark Lam  <mark.lam@apple.com>

        #undef some symbols before redefining them.
        https://bugs.webkit.org/show_bug.cgi?id=97568.

        Reviewed by Michael Saboff.

        * wtf/Platform.h:

1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655
2012-09-21  Ilya Tikhonovsky  <loislo@chromium.org>

        Web Inspector: extract Vector instrumentation from core NMI code into MemoryInstrumentationVector.h header.
        https://bugs.webkit.org/show_bug.cgi?id=96650

        Reviewed by Vsevolod Vlasov.

        Added reportMemoryUsage free template function with default body to core NMI code
        and add custom version of reportMemoryUsage function for Vectors.

        * GNUmakefile.list.am:
        * WTF.gypi:
        * WTF.pro:
        * WTF.vcproj/WTF.vcproj:
        * WTF.xcodeproj/project.pbxproj:
        * wtf/MemoryInstrumentation.h:
        (WTF):
        (MemoryInstrumentation):
        (WTF::MemoryInstrumentation::addObjectImpl):
        * wtf/MemoryInstrumentationVector.h: Added.
        (WTF):
        (WTF::instrumentVectorValues):
        (WTF::reportMemoryUsage):

1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666
2012-09-24  Mark Lam  <mark.lam@apple.com>

        Deleting the classic interpreter and cleaning up some build options.
        https://bugs.webkit.org/show_bug.cgi?id=96969.

        Reviewed by Geoffrey Garen.

        * wtf/OSAllocatorPosix.cpp:
        (WTF::OSAllocator::reserveAndCommit):
        * wtf/Platform.h:

1667 1668 1669 1670 1671 1672 1673 1674 1675 1676
2012-09-24  Patrick Gansterer  <paroga@webkit.org>

        Remove String::operator+=()
        https://bugs.webkit.org/show_bug.cgi?id=96172

        Reviewed by Benjamin Poulain.

        * wtf/Platform.h:
        * wtf/text/WTFString.h:

1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741
2012-09-24  Benjamin Poulain  <benjamin@webkit.org>

        Add support for query encoding to WTFURL
        https://bugs.webkit.org/show_bug.cgi?id=97422

        Reviewed by Adam Barth.

        Expose character conversion through the new abstract class URLQueryCharsetConverter.
        URLQueryCharsetConverter is implemented by WebCore to expose the TextEncoding classes.

        Unfortunatelly that forces us to bring over URLBuffer in the public API. We may be able
        to mitigate that later when moving WTFURL to more templates.

        The change fixes 2 of the URL layout tests.

        * WTF.xcodeproj/project.pbxproj:
        * wtf/url/api/ParsedURL.cpp:
        (WTF::ParsedURL::ParsedURL):
        * wtf/url/api/ParsedURL.h:
        (ParsedURL):
        ParsedURL was using the same constructor for ParsedURLString, and URL without a base.
        That was a mistake on my part, I did not intend that, fixed it now :)

        * wtf/url/api/URLBuffer.h: Renamed from Source/WTF/wtf/url/src/URLBuffer.h.
        (URLBuffer):
        (WTF::URLBuffer::URLBuffer):
        (WTF::URLBuffer::~URLBuffer):
        (WTF::URLBuffer::at):
        (WTF::URLBuffer::set):
        (WTF::URLBuffer::capacity):
        (WTF::URLBuffer::length):
        (WTF::URLBuffer::data):
        (WTF::URLBuffer::setLength):
        (WTF::URLBuffer::append):
        (WTF::URLBuffer::grow):
        * wtf/url/api/URLQueryCharsetConverter.h: Added.
        (URLQueryCharsetConverter):
        (WTF::URLQueryCharsetConverter::URLQueryCharsetConverter):
        (WTF::URLQueryCharsetConverter::~URLQueryCharsetConverter):
        * wtf/url/src/URLCanon.h:
        (URLCanonicalizer):
        * wtf/url/src/URLCanonFilesystemurl.cpp:
        (WTF::URLCanonicalizer::canonicalizeFileSystemURL):
        (WTF::URLCanonicalizer::ReplaceFileSystemURL):
        * wtf/url/src/URLCanonFileurl.cpp:
        (WTF::URLCanonicalizer::CanonicalizeFileURL):
        (WTF::URLCanonicalizer::ReplaceFileURL):
        * wtf/url/src/URLCanonInternal.h:
        (URLCanonicalizer):
        * wtf/url/src/URLCanonQuery.cpp:
        (WTF::URLCanonicalizer::CanonicalizeQuery):
        (WTF::URLCanonicalizer::ConvertUTF16ToQueryEncoding):
        * wtf/url/src/URLCanonRelative.cpp:
        (WTF::URLCanonicalizer::resolveRelativeURL):
        * wtf/url/src/URLCanonStdURL.cpp:
        (WTF::URLCanonicalizer::CanonicalizeStandardURL):
        (WTF::URLCanonicalizer::ReplaceStandardURL):
        * wtf/url/src/URLUtil.cpp:
        (URLUtilities):
        (WTF::URLUtilities::canonicalize):
        (WTF::URLUtilities::resolveRelative):
        (WTF::URLUtilities::ReplaceComponents):
        * wtf/url/src/URLUtil.h:
        (URLUtilities):

1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954
2012-09-24  Benjamin Poulain  <benjamin@webkit.org>

        Integrate most of GoogleURL in WTFURL
        https://bugs.webkit.org/show_bug.cgi?id=97405

        Reviewed by Adam Barth.

        This patch brings almost all of the implementatation of Google-URL in WTFURL
        with only minor changes.

        The changes from the original code are mostly:
        -Code cleaning.
        -Replace url_parse::Parsed by URLSegments.
        -Replace url_parse::Component by URLComponent
        -More code cleaning.
        -Adopt URLBuffer and RawURLBuffer instead of the CanonOutputT and RawCanonOutputT.
        -Use URLCharacterTypes instead of the litany of characters functions.
        -Some more code cleaning.
        -Fix the style to match WebKit as much as possible.
        -Rename the files to match WebKit style.

        * WTF.xcodeproj/project.pbxproj:
        * wtf/url/api/ParsedURL.cpp:
        (WTF::ParsedURL::ParsedURL):
        (WTF::ParsedURL::segment):
        * wtf/url/api/ParsedURL.h:
        (WTF::ParsedURL::isValid):
        * wtf/url/src/RawURLBuffer.h:
        * wtf/url/src/URLCanon.h: Added.
        (URLCanonicalizer):
        (CharsetConverter):
        (WTF::URLCanonicalizer::CharsetConverter::CharsetConverter):
        (WTF::URLCanonicalizer::CharsetConverter::~CharsetConverter):
        (CanonHostInfo):
        (WTF::URLCanonicalizer::CanonHostInfo::CanonHostInfo):
        (WTF::URLCanonicalizer::CanonHostInfo::IsIPAddress):
        (WTF::URLCanonicalizer::CanonHostInfo::AddressLength):
        (URLComponentSource):
        (WTF::URLCanonicalizer::URLComponentSource::URLComponentSource):
        (Replacements):
        (WTF::URLCanonicalizer::Replacements::Replacements):
        (WTF::URLCanonicalizer::Replacements::SetScheme):
        (WTF::URLCanonicalizer::Replacements::IsSchemeOverridden):
        (WTF::URLCanonicalizer::Replacements::SetUsername):
        (WTF::URLCanonicalizer::Replacements::ClearUsername):
        (WTF::URLCanonicalizer::Replacements::IsUsernameOverridden):
        (WTF::URLCanonicalizer::Replacements::SetPassword):
        (WTF::URLCanonicalizer::Replacements::ClearPassword):
        (WTF::URLCanonicalizer::Replacements::IsPasswordOverridden):
        (WTF::URLCanonicalizer::Replacements::SetHost):
        (WTF::URLCanonicalizer::Replacements::ClearHost):
        (WTF::URLCanonicalizer::Replacements::IsHostOverridden):
        (WTF::URLCanonicalizer::Replacements::SetPort):
        (WTF::URLCanonicalizer::Replacements::ClearPort):
        (WTF::URLCanonicalizer::Replacements::IsPortOverridden):
        (WTF::URLCanonicalizer::Replacements::SetPath):
        (WTF::URLCanonicalizer::Replacements::ClearPath):
        (WTF::URLCanonicalizer::Replacements::IsPathOverridden):
        (WTF::URLCanonicalizer::Replacements::SetQuery):
        (WTF::URLCanonicalizer::Replacements::ClearQuery):
        (WTF::URLCanonicalizer::Replacements::IsQueryOverridden):
        (WTF::URLCanonicalizer::Replacements::SetRef):
        (WTF::URLCanonicalizer::Replacements::ClearRef):
        (WTF::URLCanonicalizer::Replacements::IsRefOverridden):
        (WTF::URLCanonicalizer::Replacements::sources):
        (WTF::URLCanonicalizer::Replacements::components):
        (WTF::URLCanonicalizer::Replacements::Placeholder):
        * wtf/url/src/URLCanonEtc.cpp: Added.
        (WTF::URLCanonicalizer::removeURLWhitespace):
        (URLCanonicalizer):
        (WTF::URLCanonicalizer::canonicalSchemeChar):
        (WTF::URLCanonicalizer::CanonicalizeScheme):
        (WTF::URLCanonicalizer::CanonicalizeUserInfo):
        (WTF::URLCanonicalizer::CanonicalizePort):
        (WTF::URLCanonicalizer::CanonicalizeRef):
        * wtf/url/src/URLCanonFilesystemurl.cpp: Added.
        (WTF::URLCanonicalizer::CanonicalizeFileSystemURL):
        (URLCanonicalizer):
        (WTF::URLCanonicalizer::ReplaceFileSystemURL):
        * wtf/url/src/URLCanonFileurl.cpp: Added.
        (WTF::URLCanonicalizer::CanonicalizeFileURL):
        (URLCanonicalizer):
        (WTF::URLCanonicalizer::FileCanonicalizePath):
        (WTF::URLCanonicalizer::ReplaceFileURL):
        * wtf/url/src/URLCanonHost.cpp: Added.
        (WTF::URLCanonicalizer::CanonicalizeHost):
        (URLCanonicalizer):
        (WTF::URLCanonicalizer::CanonicalizeHostVerbose):
        * wtf/url/src/URLCanonICU.cpp: Added.
        (WTF::URLCanonicalizer::IDNToASCII):
        (URLCanonicalizer):
        (WTF::URLCanonicalizer::readUTFChar):
        * wtf/url/src/URLCanonIP.cpp: Added.
        (WTF::URLCanonicalizer::CanonicalizeIPAddress):
        (URLCanonicalizer):
        * wtf/url/src/URLCanonInternal.cpp: Added.
        (URLCanonicalizer):
        (WTF::URLCanonicalizer::AppendInvalidNarrowString):
        (WTF::URLCanonicalizer::ConvertUTF16ToUTF8):
        (WTF::URLCanonicalizer::ConvertUTF8ToUTF16):
        (WTF::URLCanonicalizer::SetupOverrideComponents):
        (WTF::URLCanonicalizer::SetupUTF16OverrideComponents):
        (WTF::URLCanonicalizer::_itoa_s):
        (WTF::URLCanonicalizer::_itow_s):
        * wtf/url/src/URLCanonInternal.h: Added.
        (URLCanonicalizer):
        (WTF::URLCanonicalizer::hexCharToValue):
        (WTF::URLCanonicalizer::isDot):
        (WTF::URLCanonicalizer::appendURLEscapedCharacter):
        (WTF::URLCanonicalizer::doAppendUTF8):
        (WTF::URLCanonicalizer::AppendCharToOutput):
        (WTF::URLCanonicalizer::AppendUTF8Value):
        (WTF::URLCanonicalizer::AppendUTF8EscapedValue):
        (WTF::URLCanonicalizer::AppendUTF16Value):
        (WTF::URLCanonicalizer::AppendUTF8EscapedChar):
        (WTF::URLCanonicalizer::Is8BitChar):
        (WTF::URLCanonicalizer::DecodeEscaped):
        (WTF::URLCanonicalizer::_itoa_s):
        (WTF::URLCanonicalizer::_itow_s):
        (WTF::URLCanonicalizer::_strtoui64):
        * wtf/url/src/URLCanonMailto.cpp: Added.
        (WTF::URLCanonicalizer::CanonicalizeMailtoURL):
        (URLCanonicalizer):
        (WTF::URLCanonicalizer::ReplaceMailtoURL):
        * wtf/url/src/URLCanonPath.cpp: Added.
        (WTF::URLCanonicalizer::CanonicalizePath):
        (URLCanonicalizer):
        (WTF::URLCanonicalizer::CanonicalizePartialPath):
        * wtf/url/src/URLCanonPathurl.cpp: Added.
        (WTF::URLCanonicalizer::canonicalizePathURL):
        (URLCanonicalizer):
        (WTF::URLCanonicalizer::ReplacePathURL):
        * wtf/url/src/URLCanonQuery.cpp: Added.
        (WTF::URLCanonicalizer::CanonicalizeQuery):
        (URLCanonicalizer):
        (WTF::URLCanonicalizer::ConvertUTF16ToQueryEncoding):
        * wtf/url/src/URLCanonRelative.cpp: Added.
        (WTF::URLCanonicalizer::isRelativeURL):
        (URLCanonicalizer):
        (WTF::URLCanonicalizer::resolveRelativeURL):
        * wtf/url/src/URLCanonStdURL.cpp: Added.
        (WTF::URLCanonicalizer::DefaultPortForScheme):
        (URLCanonicalizer):
        (WTF::URLCanonicalizer::CanonicalizeStandardURL):
        (WTF::URLCanonicalizer::ReplaceStandardURL):
        * wtf/url/src/URLCharacterTypes.cpp:
        * wtf/url/src/URLCharacterTypes.h:
        (WTF::URLCharacterTypes::isComponentChar):
        (WTF::URLCharacterTypes::isHexChar):
        (WTF::URLCharacterTypes::isIPv4Char):
        (WTF::URLCharacterTypes::isQueryChar):
        (WTF::URLCharacterTypes::isCharacterOfType):
        (URLCharacterTypes):
        * wtf/url/src/URLEscape.cpp: Removed.
        * wtf/url/src/URLFile.h: Added.
        (URLParser):
        (WTF::URLParser::isWindowsDriveSeparator):
        (WTF::URLParser::isWindowsDriveLetter):
        (WTF::URLParser::findNextSlash):
        (WTF::URLParser::doesBeginWindowsDriveSpec):
        (WTF::URLParser::doesBeginUNCPath):
        * wtf/url/src/URLParse.cpp: Added.
        (WTF::URLParser::ExtractScheme):
        (URLParser):
        (WTF::URLParser::IsAuthorityTerminator):
        (WTF::URLParser::ExtractFileName):
        (WTF::URLParser::ExtractQueryKeyValue):
        (WTF::URLParser::ParseAuthority):
        (WTF::URLParser::ParsePort):
        (WTF::URLParser::ParseStandardURL):
        (WTF::URLParser::ParsePathURL):
        (WTF::URLParser::ParseFileSystemURL):
        (WTF::URLParser::ParseMailtoURL):
        (WTF::URLParser::parsePathInternal):
        (WTF::URLParser::ParseAfterScheme):
        * wtf/url/src/URLParse.h: Added.
        (URLParser):
        * wtf/url/src/URLParseFile.cpp: Added.
        (WTF):
        (WTF::URLParser::ParseFileURL):
        (URLParser):
        * wtf/url/src/URLParseInternal.h: Added.
        (URLParser):
        (WTF::URLParser::isURLSlash):
        (WTF::URLParser::shouldTrimFromURL):
        (WTF::URLParser::trimURL):
        (WTF::URLParser::countConsecutiveSlashes):
        * wtf/url/src/URLParser.h: Removed.
        * wtf/url/src/URLQueryCanonicalizer.h: Removed.
        * wtf/url/src/URLSegments.cpp:
        * wtf/url/src/URLSegments.h:
        (WTF::URLSegments::URLSegments):
        (URLSegments):
        (WTF::URLSegments::operator=):
        (WTF::URLSegments::innerURLSegments):
        (WTF::URLSegments::setInnerURLSegments):
        (WTF::URLSegments::clearInnerURLSegments):
        * wtf/url/src/URLUtil.cpp: Added.
        (URLUtilities):
        (WTF::URLUtilities::IsStandard):
        (WTF::URLUtilities::FindAndCompareScheme):
        (WTF::URLUtilities::Canonicalize):
        (WTF::URLUtilities::resolveRelative):
        (WTF::URLUtilities::ReplaceComponents):
        (WTF::URLUtilities::LowerCaseEqualsASCII):
        (WTF::URLUtilities::DecodeURLEscapeSequences):
        (WTF::URLUtilities::EncodeURIComponent):
        (WTF::URLUtilities::CompareSchemeComponent):
        * wtf/url/src/URLUtil.h: Added.
        (URLUtilities):
        * wtf/url/src/URLUtilInternal.h: Renamed from Source/WTF/wtf/url/src/URLEscape.h.
        (URLUtilities):

1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965
2012-09-24  Joone Hur  <joone.hur@intel.com>

        [GTK] Implement GraphicsLayer using Clutter
        https://bugs.webkit.org/show_bug.cgi?id=73767

        Reviewed by Martin Robinson.

        Add ClutterActor and GraphicsLayerActor to GTypedefs.h.

        * wtf/gobject/GTypedefs.h:

1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981
2012-09-23  Byungwoo Lee  <bw80.lee@gmail.com>

        Fix build warnings : -Wunused-parameter, -Wparentheses, -Wuninitialized.
        https://bugs.webkit.org/show_bug.cgi?id=97306

        Reviewed by Benjamin Poulain.

        Fix build warning about -Wunused-parameter on FastMalloc.cpp,
        OSAllocatorPosix.cpp by using UNUSED_PARAM() macro.
        Fix header including order of FastMalloc.cpp.

        * wtf/FastMalloc.cpp:
        (WTF::fastMallocSize):
        * wtf/OSAllocatorPosix.cpp:
        (WTF::OSAllocator::reserveAndCommit):

1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998
2012-09-22  Sam Weinig  <sam@webkit.org>

        Add explicit conversion operator to RetainPtr for easier use in C++11 environments
        https://bugs.webkit.org/show_bug.cgi?id=97403

        Reviewed by Dan Bernstein.

        * wtf/Compiler.h:
        Add support for COMPILER_SUPPORTS(CXX_EXPLICIT_CONVERSIONS)

        * wtf/RetainPtr.h:
        (RetainPtr):
        (WTF::RetainPtr::get):
        (WTF::RetainPtr::operator PtrType):
        Add the explicit conversion operator and group all the underlying
        pointer accessors together.

1999 2000 2001 2002 2003 2004 2005 2006
2012-09-21  Simon Hausmann  <simon.hausmann@digia.com>

        [Qt] Error out early if we don't have ICU available

        Reviewed by Tor Arne Vestbø.

        * WTF.pri:

2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021
2012-09-20  Patrick Gansterer  <paroga@webkit.org>

        Add String::numberToStringFixedWidth()
        https://bugs.webkit.org/show_bug.cgi?id=96330

        Reviewed by Benjamin Poulain.

        Add this new function as replacement for the ShouldRoundDecimalPlaces flag of String::number()
        and remove the now unnecessary branch in String::number() for the old flags.

        * wtf/text/WTFString.cpp:
        (WTF::String::number):
        (WTF::String::numberToStringFixedWidth):
        * wtf/text/WTFString.h:

2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033
2012-09-19  Geoffrey Garen  <ggaren@apple.com>

        OSR exit sometimes neglects to create the arguments object
        https://bugs.webkit.org/show_bug.cgi?id=97162

        Reviewed by Filip Pizlo.

        * wtf/HashTraits.h:
        (NullableHashTraits):
        (WTF::NullableHashTraits::emptyValue):
        (WTF):

2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047
2012-09-18  Glenn Adams  <glenn@skynav.com>

        WTFString::show doesn't dump non-ASCII characters in a readable manner
        https://bugs.webkit.org/show_bug.cgi?id=96749

        Reviewed by Benjamin Poulain.

        Dump non-ASCII characters in a useful form for debugging.

        * wtf/text/WTFString.cpp:
        (asciiDebug):
        Dump non-ASCII characters (i.e., UTF-16 code elements) as well as non-printable ASCII characters
        using \uXXXX format. Also escape \ as \\ in order to remove ambiguity.

2048 2049 2050 2051 2052 2053 2054 2055 2056 2057
2012-09-18  Mark Hahnenberg  <mhahnenberg@apple.com>

        Use WTF::HasTrivialDestructor instead of compiler-specific versions in JSC::NeedsDestructor
        https://bugs.webkit.org/show_bug.cgi?id=96980

        Reviewed by Benjamin Poulain.

        * wtf/TypeTraits.h:
        (WTF):

2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073
2012-09-17  Glenn Adams  <glenn@skynav.com>

        Including HexNumber.h fails build if hexDigitsForMode is not referenced
        https://bugs.webkit.org/show_bug.cgi?id=96873

        Reviewed by Benjamin Poulain.

        Ensure release build is possible when hexDigitsForMode is not referenced by
        template expansion.

        * wtf/HexNumber.h:
        (WTF::Internal::hexDigitsForMode):
        Change hexDigitsForMode to inline (rather than static). Make string literals
        {lower,upper}HexDigits non-local and non-static, but const, to which the linker
        should merge references in the RO data segment.

2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090
2012-09-17  Filip Pizlo  <fpizlo@apple.com>

        The ThreadRescrictionVerifier should be more forcibly disabled on systems that use threads
        https://bugs.webkit.org/show_bug.cgi?id=96957

        Reviewed by Oliver Hunt.

        * wtf/ThreadRestrictionVerifier.h:
        (WTF):
        (WTF::ThreadRestrictionVerifier::ThreadRestrictionVerifier):
        (ThreadRestrictionVerifier):
        (WTF::ThreadRestrictionVerifier::setMutexMode):
        (WTF::ThreadRestrictionVerifier::setDispatchQueueMode):
        (WTF::ThreadRestrictionVerifier::turnOffVerification):
        (WTF::ThreadRestrictionVerifier::setShared):
        (WTF::ThreadRestrictionVerifier::isSafeToUse):

2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104
2012-09-17  Sheriff Bot  <webkit.review.bot@gmail.com>

        Unreviewed, rolling out r128796.
        http://trac.webkit.org/changeset/128796
        https://bugs.webkit.org/show_bug.cgi?id=96966

        It broke everything (Requested by Ossy_NIGHT on #webkit).

        * wtf/OSAllocatorPosix.cpp:
        (WTF::OSAllocator::reserveUncommitted):
        (WTF::OSAllocator::reserveAndCommit):
        (WTF::OSAllocator::commit):
        (WTF::OSAllocator::decommit):

2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123
2012-09-17  Uli Schlachter  <psychon@znc.in>

        Implement uncommitted memory for Linux.
        https://bugs.webkit.org/show_bug.cgi?id=65766

        Reviewed by Gavin Barraclough.

        The old approach used MAP_NORESERVE to allocate address space without
        committing it. However, that flag gets ignored if
        /proc/sys/vm/overcommit_memory is set to 2. The new approach uses a
        mapping with PROT_NONE. This works because mappings which aren't even
        readable don't get accounted as committed on Linux.

        * wtf/OSAllocatorPosix.cpp:
        (WTF::OSAllocator::reserveUncommitted):
        (WTF::OSAllocator::reserveAndCommit):
        (WTF::OSAllocator::commit):
        (WTF::OSAllocator::decommit):

2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136
2012-09-17  Filip Pizlo  <fpizlo@apple.com>

        Array profiling has convergence issues
        https://bugs.webkit.org/show_bug.cgi?id=96891

        Reviewed by Gavin Barraclough.

        Added functions for testing if something is a power of 2.

        * wtf/MathExtras.h:
        (hasZeroOrOneBitsSet):
        (hasTwoOrMoreBitsSet):

2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165
2012-09-17  Ilya Tikhonovsky  <loislo@chromium.org>

        Web Inspector: NMI: now when we can detect instrumented classes we can
        remove addInstrumentedMember and use addMember for everything.
        https://bugs.webkit.org/show_bug.cgi?id=96913

        Reviewed by Yury Semikhatsky.

        * wtf/MemoryInstrumentation.h:
        (WTF::MemoryInstrumentation::addRootObject):
        (WTF::MemoryInstrumentation::addObject):
        (WTF::MemoryInstrumentation::addObjectImpl):
        (WTF):
        (WTF::MemoryInstrumentation::addInstrumentedCollection):
        (WTF::MemoryInstrumentation::addInstrumentedMapEntries):
        (WTF::MemoryInstrumentation::addInstrumentedMapValues):
        * wtf/text/AtomicString.cpp:
        (WTF::AtomicString::reportMemoryUsage):
        * wtf/text/CString.h:
        (WTF::CString::reportMemoryUsage):
        * wtf/text/StringImpl.cpp:
        (WTF::StringImpl::reportMemoryUsage):
        * wtf/text/WTFString.cpp:
        (WTF::String::reportMemoryUsage):
        * wtf/url/api/ParsedURL.cpp:
        (WTF::ParsedURL::reportMemoryUsage):
        * wtf/url/api/URLString.cpp:
        (WTF::URLString::reportMemoryUsage):

2166 2167 2168 2169 2170 2171 2172
2012-09-17  Ilya Tikhonovsky  <loislo@chromium.org>

        Unreviewed compilation fix.

        * wtf/MemoryInstrumentation.h:
        (WTF::MemoryInstrumentation::reportObjectMemoryUsage):

2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194
2012-09-15  Yury Semikhatsky  <yurys@chromium.org>

        Web Inspector: automatically detect if class has reportMemoryUsage method
        https://bugs.webkit.org/show_bug.cgi?id=96756

        Reviewed by Alexander Pavlov.

        Implemeted automatic selector of the memory reporting method. If
        an object has reportMemoryUsage method then call it. Otherwise
        count only object's self size. As the next step we will delete
        addInstrumentedMember and addInstrumentedObjectImpl and will
        have only addMember and addObjectImpl that would automatically
        call reportMemoryUsage if it is present.

        * wtf/MemoryInstrumentation.h:
        (WTF::MemoryInstrumentation::selectInstrumentationMethod):
        (MemoryInstrumentation):
        (WTF::MemoryInstrumentation::reportObjectMemoryUsage):
        (WTF::MemoryInstrumentation::addInstrumentedObjectImpl):
        (WTF::MemoryInstrumentation::addObjectImpl):
        (WTF::::process):

2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205
2012-09-14  Yury Semikhatsky  <yurys@chromium.org>

        Web Inspector: OwnPtr and RefPtr reported by pointer can be double counted by the memory instrumentation
        https://bugs.webkit.org/show_bug.cgi?id=96791

        Reviewed by Alexander Pavlov.

        * wtf/MemoryInstrumentation.h:
        (WTF::MemoryInstrumentation::addObjectImpl): check if the smart pointer has already
        been visited before counting its size.

2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223
2012-09-15  Benjamin Poulain  <benjamin@webkit.org>

        Fix the build with WTF URL
        https://bugs.webkit.org/show_bug.cgi?id=96875

        Reviewed by Adam Barth.

        Add support for MemoryInstrumentation to WTF's URL classes.

        * wtf/url/api/ParsedURL.cpp:
        (WTF::ParsedURL::reportMemoryUsage):
        * wtf/url/api/ParsedURL.h:
        (ParsedURL):
        * wtf/url/api/URLString.cpp:
        (WTF::URLString::reportMemoryUsage):
        * wtf/url/api/URLString.h:
        (URLString):

2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235
2012-09-15  Raphael Kubo da Costa  <rakuco@FreeBSD.org>

        llint: Implement LOCAL_LABEL_STRING for the BSD platforms.
        https://bugs.webkit.org/show_bug.cgi?id=96870

        Reviewed by Filip Pizlo.

        * wtf/InlineASM.h: Extend the definition of LOCAL_LABEL_STRING
        currently used for OS(LINUX) to the BSDs, since they also normally
        use GNU as, and clang/llvm seems to parse that syntax just fine as
        well.

2236 2237 2238 2239 2240 2241 2242 2243 2244 2245
2012-09-14  Alexey Proskuryakov  <ap@apple.com>

        Minimize collisions when hashing pairs
        https://bugs.webkit.org/show_bug.cgi?id=96022

        Build fix (with newer clang?)

        * wtf/HashFunctions.h: (WTF::pairIntHash): Be explicit about casting from
        64 bit to 32 bit.

2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280
2012-09-14  Dana Jansens  <danakj@chromium.org>

        Minimize collisions when hashing pairs
        https://bugs.webkit.org/show_bug.cgi?id=96022

        Reviewed by Adrienne Walker.

        The current hash function for pairs has poor performance as it does a
        nice hash function on 64 bits, but then just drops the top 32 bits. The
        hash method for pairs tries to use Thomas Wang's 64 bit Mix Function,
        but this requires not dropping any bits in order to retain the
        characteristics mentioned by Thomas.

        A better method of hashing sets of 32-bit integers is to use
        multiplication in 64 bits with random integers. This method is a
        provably almost-universal hash function. Testing shows that this
        method decreases the time required, when compared with the current
        method, by more than 20% due to better hashing characteristics.

        * wtf/HashFunctions.h:
        (WTF):
        (WTF::pairIntHash):
        Implments the hashing method for a pair of unsigned integers.

        (WTF::PairHash::hash):
        Use pairIntHash() on the hash results of each object in the pair.

        (WTF::IntPairHash::hash):
        Implement an integer-specific PairHash class that does not need to
        hash each object in the pair. It uses pairIntHash on the two
        integers in the pair directly.

        (WTF::IntPairHash::equal):
        (IntPairHash):

2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292
2012-09-14  Tor Arne Vestbø  <tor.arne.vestbo@nokia.com>

        [Qt] Make force_static_libs_as_shared work on Mac OS

        We had to move a few LIBS += around that were in the wrong place,
        and not caught when everything was just linked into the final
        QtWebKit library.

        Reviewed by Simon Hausmann.

        * WTF.pri:

2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320
2012-09-14  Ilya Tikhonovsky  <loislo@chromium.org>

        Web Inspector: NMI: convert template versions of String*::reportMemoryUsage functions to normal functions.
        https://bugs.webkit.org/show_bug.cgi?id=96759

        Reviewed by Yury Semikhatsky.

        Now when MemoryInstrumentation.h is a part of WTF we can move reportMemoryUsage functions to cpp file.

        * wtf/text/AtomicString.cpp:
        (WTF::AtomicString::reportMemoryUsage):
        (WTF):
        * wtf/text/AtomicString.h:
        (WTF):
        (AtomicString):
        * wtf/text/StringImpl.cpp:
        (WTF::StringImpl::reportMemoryUsage):
        (WTF):
        * wtf/text/StringImpl.h:
        (WTF):
        (StringImpl):
        * wtf/text/WTFString.cpp:
        (WTF::String::reportMemoryUsage):
        (WTF):
        * wtf/text/WTFString.h:
        (WTF):
        (String):

2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333
2012-09-14  Ilya Tikhonovsky  <loislo@chromium.org>

        Web Inspector: NMI: remove current traits helper class because it is customizing the instrumentation at a wrong place and is not necessary at the moment.
        https://bugs.webkit.org/show_bug.cgi?id=96737

        Reviewed by Yury Semikhatsky.

        * wtf/MemoryInstrumentation.h:
        (MemoryInstrumentation):
        WTF::MemoryInstrumentationTraits): removed
        (WTF::MemoryInstrumentation::OwningTraits::addInstrumentedObject): direct call inserted
        (WTF::MemoryInstrumentation::OwningTraits::addObject):direct call inserted

2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 2347 2348 2349 2350 2351 2352
2012-09-13  Kenneth Rohde Christiansen  <kenneth@webkit.org>

        Evas_Object* is a ref'ed structure, so tread it as such
        https://bugs.webkit.org/show_bug.cgi?id=96659

        Reviewed by Gyuyoung Kim.

        Remove OwnPtr support for Evas_Object* and add support for it
        with RefPtr instead (the latter moved from WebCore).

        * wtf/PlatformEfl.cmake:
        * wtf/efl/OwnPtrEfl.cpp:
        * wtf/efl/RefPtrEfl.cpp: Renamed from Source/WebCore/platform/efl/RefPtrEfl.cpp.
        (WTF):
        (WTF::refIfNotNull):
        (WTF::derefIfNotNull):
        * wtf/efl/RefPtrEfl.h: Renamed from Source/WebCore/platform/efl/RefPtrEfl.h.
        (WTF):

2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365
2012-09-14  Gyuyoung Kim  <gyuyoung.kim@samsung.com>

        Unreviewed, rolling out r128507.
        http://trac.webkit.org/changeset/128507
        https://bugs.webkit.org/show_bug.cgi?id=96659

        Revert. r128507 makes too many crash in EFL layout test bots.

        * wtf/PlatformEfl.cmake:
        * wtf/efl/OwnPtrEfl.cpp:
        (WTF::deleteOwnedPtr):
        (WTF):

2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380
2012-09-13  Kevin Funk  <kevin.funk@kdab.com>

        Make compile with both OS(WINCE) and PLATFORM(QT) support
        https://bugs.webkit.org/show_bug.cgi?id=95536

        Reviewed by Simon Hausmann.

        Fixes for Windows CE.

        * WTF.pri:
        Also include path for mt19937ar.c
        * wtf/unicode/icu/CollatorICU.cpp:
        Fix undeclared strdup() on CE7
        * wtf/Platform.h:

2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395
2012-09-13  Byungseon Shin  <xingri@gmail.com>

        Fix for WTF fails to compile in thumb mode when llint is enabled.
        https://bugs.webkit.org/show_bug.cgi?id=96400

        Reviewed by Filip Pizlo.

        When using "+m" with Armv7 cross compiler assume offset range between +/- 4095
        (the largest possible offset range).
        However, ldrex/strex can only use offset range of 0~1020, so "+m" needed to be changed to "+Q".
        Ref. http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54480

        * wtf/Atomics.h:
        (WTF::weakCompareAndSwap):