Threaded HTML parser should pass fast/parser/parser-yield-timing.html
authorAdam Barth <abarth@webkit.org>
Sat, 23 Feb 2013 18:37:50 +0000 (18:37 +0000)
committerAdam Barth <abarth@webkit.org>
Sat, 23 Feb 2013 18:37:50 +0000 (18:37 +0000)
commitcfa807e3973c7afbe47a1f2c8bf3ea43a73faa3a
tree0374e8a8e71b6b164a57fe100fb8fde93d561fb2
parent496c2b655939cae31a428cd5cc1741cb8f055fa5
Threaded HTML parser should pass fast/parser/parser-yield-timing.html
https://bugs.webkit.org/show_bug.cgi?id=110647

Reviewed by Eric Seidel.

Previously, the threaded HTML parser would run for an arbitrary amount
of time without yielding after speculation succeeded. This might be the
cause of the good DOMContentLoaded numbers.

Note: This patch also demonstrates that the ParseHTML_max numbers
aren't correct currently because they're measuring the interior of this
loop instead of all the time spent in the loop. We should move the
instrumentation in a followup patch.

 * html/parser/HTMLDocumentParser.cpp:
(WebCore::HTMLDocumentParser::resumeParsingAfterYield):
(WebCore::HTMLDocumentParser::pumpPendingSpeculations):
(WebCore):
(WebCore::HTMLDocumentParser::resumeParsingAfterScriptExecution):
* html/parser/HTMLDocumentParser.h:
(HTMLDocumentParser):
* html/parser/HTMLParserScheduler.cpp:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@143845 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore/ChangeLog
Source/WebCore/html/parser/HTMLDocumentParser.cpp
Source/WebCore/html/parser/HTMLDocumentParser.h
Source/WebCore/html/parser/HTMLParserScheduler.cpp