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

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Feb 5 06:53:07 PST 2010


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


Darin Adler <darin at apple.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |darin at apple.com




--- Comment #39 from Darin Adler <darin at apple.com>  2010-02-05 06:53:01 PST ---
A way to avoid having two copies of the code and yet still have the
non-syntax-check version be fast, is to use C++ templates. You can have a
boolean template argument decide whether functions are for syntax checking or
for compiling, and then avoid adding any branches.

I considered mentioning this right when Oliver did his review, but for some
reason assumed that performance would not be a problem.

If this technique works then we get the best of both worlds. Only one set of
source code to maintain, but the full speed we'd otherwise get by having the
syntax checker entirely separate.

-- 
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