DescriptionRefactor 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 Parsers 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=
R=rossberg@chromium.org
Committed: https://code.google.com/p/v8/source/detail?r=23600
Patch Set 1 #Patch Set 2 : . #
Total comments: 2
Patch Set 3 : code review (rossberg@) #Patch Set 4 : oops, was overly eager with the code moving; trivial fix #Patch Set 5 : whitespace #
Messages
Total messages: 6 (1 generated)
|