Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(48)

Issue 527763002: Refactor Parser to make it usable on a background thread. (Closed)

Created:
6 years, 3 months ago by marja
Modified:
6 years, 3 months ago
Reviewers:
rossberg
CC:
v8-dev
Project:
v8
Visibility:
Public.

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

Unified diffs Side-by-side diffs Delta from patch set Stats (+85 lines, -47 lines) Patch
M src/parser.h View 1 2 4 chunks +21 lines, -3 lines 0 comments Download
M src/parser.cc View 1 2 3 4 15 chunks +50 lines, -39 lines 0 comments Download
M src/preparser.h View 2 chunks +2 lines, -2 lines 0 comments Download
M test/cctest/test-parsing.cc View 1 2 3 chunks +12 lines, -3 lines 0 comments Download

Messages

Total messages: 6 (1 generated)
marja
tentatively sending to rossberg@, please let me know if I should find somebody else to ...
6 years, 3 months ago (2014-09-02 08:06:49 UTC) #2
rossberg
lgtm https://codereview.chromium.org/527763002/diff/20001/src/parser.h File src/parser.h (right): https://codereview.chromium.org/527763002/diff/20001/src/parser.h#newcode603 src/parser.h:603: Parser(CompilationInfo* info, uintptr_t stack_limit, uint32_t hash_seed, Would it ...
6 years, 3 months ago (2014-09-02 08:47:40 UTC) #3
marja
Thanks for review! https://codereview.chromium.org/527763002/diff/20001/src/parser.h File src/parser.h (right): https://codereview.chromium.org/527763002/diff/20001/src/parser.h#newcode603 src/parser.h:603: Parser(CompilationInfo* info, uintptr_t stack_limit, uint32_t hash_seed, ...
6 years, 3 months ago (2014-09-02 09:48:40 UTC) #4
rossberg
lgtm
6 years, 3 months ago (2014-09-02 10:01:07 UTC) #5
marja
6 years, 3 months ago (2014-09-02 11:36:33 UTC) #6
Message was sent while issue was closed.
Committed patchset #5 (id:80001) manually as 23600 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698