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

Issue 908173003: Parsing: Make Parser not know about Isolate during background parsing. (Closed)

Created:
5 years, 10 months ago by marja
Modified:
5 years, 10 months ago
Reviewers:
titzer, rossberg
CC:
v8-dev
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

Parsing: Make Parser not know about Isolate during background parsing. Parser must be able to operate independent of Isolate and the V8 heap during parsing. After the heap-independent phase, there is a heap dependent phase, during which we internalize strings, handle errors, etc. This makes Isolate (also via CompilationInfo) unaccessible during parsing, and thus decreases the probability of accidental code changes which would add heap-dependent operations into the heap-independent phase. Since Isolate is also accessible via CompilationInfo, now CompilationInfo is only passed to the entry points of parsing, and not stored in Parser. R=rossberg@chromium.org BUG= Committed: https://crrev.com/df0cb9999ff0574c6476b29f0610c7ca69d3ae1f Cr-Commit-Position: refs/heads/master@{#26612}

Patch Set 1 #

Total comments: 2

Patch Set 2 : fix #

Patch Set 3 : rebased #

Total comments: 1

Patch Set 4 : rebased #

Patch Set 5 : main thread check #

Unified diffs Side-by-side diffs Delta from patch set Stats (+176 lines, -163 lines) Patch
M src/api.cc View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M src/background-parsing-task.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M src/compiler.cc View 1 2 3 4 chunks +4 lines, -4 lines 0 comments Download
M src/parser.h View 1 2 3 4 5 chunks +17 lines, -18 lines 0 comments Download
M src/parser.cc View 1 2 3 4 19 chunks +113 lines, -92 lines 0 comments Download
M src/preparser.h View 1 2 5 chunks +6 lines, -11 lines 0 comments Download
M src/runtime/runtime-debug.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download
M src/runtime/runtime-internal.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M test/cctest/compiler/function-tester.h View 1 2 chunks +2 lines, -2 lines 0 comments Download
M test/cctest/compiler/test-codegen-deopt.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M test/cctest/compiler/test-loop-assignment-analysis.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M test/cctest/test-parsing.cc View 1 2 3 17 chunks +23 lines, -25 lines 0 comments Download
M tools/parser-shell.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 15 (3 generated)
marja
rossberg, ptal. The second part of "make isolate unaccessible" changes. Should've done this ages ago.
5 years, 10 months ago (2015-02-10 16:10:38 UTC) #1
marja
whoops, something's wrong, tests are failing.. I'll ping this CL again when I've fixed them.
5 years, 10 months ago (2015-02-10 16:24:39 UTC) #2
marja
lulz, function naming is hard, function resolution is hard too. I'm not happy w/ the ...
5 years, 10 months ago (2015-02-10 17:26:59 UTC) #3
marja
(and that is to say, the latest patch set fixes the problems, pls review)
5 years, 10 months ago (2015-02-10 17:27:14 UTC) #4
titzer
I like getting rid of the isolate in the parser. As discussed in person, there ...
5 years, 10 months ago (2015-02-12 10:06:34 UTC) #6
marja
... concluded that I'll rebase this stuff on top of https://codereview.chromium.org/913183005/ after it has landed, ...
5 years, 10 months ago (2015-02-12 10:13:26 UTC) #7
rossberg
LGTM https://codereview.chromium.org/908173003/diff/1/src/parser.cc File src/parser.cc (right): https://codereview.chromium.org/908173003/diff/1/src/parser.cc#newcode917 src/parser.cc:917: // created. This kind of parsing can only ...
5 years, 10 months ago (2015-02-12 10:31:30 UTC) #8
marja
thx for review. The naming is not that great still, but idk... ParseSynchronous doesn't transmit ...
5 years, 10 months ago (2015-02-12 12:37:31 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/908173003/80001
5 years, 10 months ago (2015-02-12 12:37:49 UTC) #12
titzer
On 2015/02/12 12:37:31, marja wrote: > thx for review. > > The naming is not ...
5 years, 10 months ago (2015-02-12 12:42:42 UTC) #13
commit-bot: I haz the power
Committed patchset #5 (id:80001)
5 years, 10 months ago (2015-02-12 13:02:36 UTC) #14
commit-bot: I haz the power
5 years, 10 months ago (2015-02-12 13:02:57 UTC) #15
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/df0cb9999ff0574c6476b29f0610c7ca69d3ae1f
Cr-Commit-Position: refs/heads/master@{#26612}

Powered by Google App Engine
This is Rietveld 408576698