[Webkit-unassigned] [Bug 34019] Custom-written JavaScript parser

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Jan 26 23:39:45 PST 2010


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


Guillaume Chereau <charlie137 at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |charlie137 at gmail.com




--- Comment #20 from Guillaume Chereau <charlie137 at gmail.com>  2010-01-26 23:39:43 PST ---
Hello all,

I tried the new parser on the javascript parsing test from Holger's benchmarks
(http://gitorious.org/qtwebkit/performance), and I get the following results on
my laptop :

bison parser : 192 ms
new parser   : 115 ms

(it is ~ 1.6 time better)

The test consist of parsing a set of javascript codes taken from a list of
popular websites.


However I couldn't test the whole set because of an error when parsing lines of
this form :

  "new f(x++)"

I get :

ASSERTION FAILED: m_unaryMode == PrimaryMode || m_unaryMode == PrimaryDotMode
|| m_unaryMode == PrimaryArgumentMode
(../../../JavaScriptCore/parser/PredictiveGrammar.cpp:273 void
JSC::Grammar::primaryExpressionToNode())
Segmentation fault

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list