Reviewers: rossberg,

Message:
tentatively sending to rossberg@, please let me know if I should find somebody
else to review...

Description:
Refactor Parser to make it usable on a background thread.

- Background Parsers cannot get the following data from Isolate (pass it to the
ctor instead): stack limit (background parses need a different stack limit),
UnicodeCache (background parsers need a separate UnicodeCache), hash seed
(Parser cannot access the Heap to get it). The Parser::Parse API won't change.

- Make the internalization phase (where Parser interacts with the heap) more
explicit. Previously, Parser was interacting with the heap here and there.

- Move HandleSourceURLComments out of DoParseProgram, so that background parsing
can use DoParseProgram too.

BUG=

Please review this at https://codereview.chromium.org/527763002/

SVN Base: https://v8.googlecode.com/svn/branches/bleeding_edge

Affected files (+74, -43 lines):
  M src/parser.h
  M src/parser.cc
  M src/preparser.h
  M test/cctest/test-parsing.cc


--
--
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/d/optout.

Reply via email to