Reviewers: Sven Panne,
Message:
svenpanne@, wdyt about adding API for doing only one parsing pass (and
producing
the same data that PreParser used to produce on the go)? Seems wasteful to
do
two passes when we could get away with one. (Blink always parses right
after it
has preparsed.)
Description:
Proof of concept: API for doing only one parsing pass instead of first
preparsing and then parsing.
It will read the data only once, and produce the same data preparsing used
to
produce. The data can be saved in the cache if the upper layer wants so.
When Blink calls the preparsing API, it will always call the parsing API
right
after. There's no reason why Parser couldn't produce it during the actual
parsing pass.
BUG=
Please review this at https://codereview.chromium.org/181543003/
SVN Base: https://v8.googlecode.com/svn/branches/bleeding_edge
Affected files (+187, -65 lines):
M include/v8.h
M src/api.cc
M src/compiler.h
M src/compiler.cc
M src/parser.h
M src/parser.cc
M src/preparser.h
--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.