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

Issue 2632123006: Reland: [Parse] ParseInfo owns the parsing Zone. (Closed)

Created:
3 years, 11 months ago by rmcilroy
Modified:
3 years, 10 months ago
CC:
v8-reviews_googlegroups.com, Yang
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

Reland: [Parse] ParseInfo owns the parsing Zone. Moves ownership of the parsing Zone to ParseInfo with a shared_ptr. This is in preperation for enabling background compilation jobs for inner functions share the AST in the outer-function's parse zone memory (read-only), with the and zone being released when all compilation jobs have completed. BUG=v8:5203, v8:5215 Review-Url: https://codereview.chromium.org/2632123006 Cr-Original-Commit-Position: refs/heads/master@{#42993} Committed: https://chromium.googlesource.com/v8/v8/+/14fb337200d5da09c77438ddd40bea935b1dc823 Review-Url: https://codereview.chromium.org/2632123006 Cr-Commit-Position: refs/heads/master@{#42996} Committed: https://chromium.googlesource.com/v8/v8/+/9e7d5a6065470ca03411d4c8dbc61d1be5c3f84a

Patch Set 1 #

Total comments: 6

Patch Set 2 : Fix test-asm-wasm #

Patch Set 3 : Remove unused variable #

Patch Set 4 : Rebase #

Patch Set 5 : Fix destructor order #

Patch Set 6 : Rebase #

Patch Set 7 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+205 lines, -302 lines) Patch
M src/asmjs/asm-wasm-builder.cc View 1 2 3 4 5 2 chunks +14 lines, -14 lines 0 comments Download
M src/background-parsing-task.h View 1 chunk +0 lines, -1 line 0 comments Download
M src/background-parsing-task.cc View 2 chunks +1 line, -4 lines 0 comments Download
M src/compiler.cc View 1 2 3 4 5 9 chunks +9 lines, -17 lines 0 comments Download
M src/compiler-dispatcher/compiler-dispatcher-job.h View 2 3 4 5 1 chunk +0 lines, -1 line 0 comments Download
M src/compiler-dispatcher/compiler-dispatcher-job.cc View 1 2 3 4 5 6 chunks +4 lines, -8 lines 0 comments Download
M src/compiler/js-inlining.cc View 1 2 3 4 5 2 chunks +3 lines, -4 lines 0 comments Download
M src/compiler/pipeline.cc View 1 2 3 4 5 3 chunks +4 lines, -5 lines 0 comments Download
M src/crankshaft/hydrogen.h View 2 chunks +1 line, -3 lines 0 comments Download
M src/crankshaft/hydrogen.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M src/debug/debug-scopes.cc View 1 2 3 2 chunks +2 lines, -3 lines 0 comments Download
M src/parsing/parse-info.h View 1 2 3 4 5 4 chunks +13 lines, -5 lines 0 comments Download
M src/parsing/parse-info.cc View 1 2 3 4 5 3 chunks +13 lines, -5 lines 0 comments Download
M src/runtime/runtime-internal.cc View 1 2 3 1 chunk +1 line, -2 lines 0 comments Download
M test/cctest/asmjs/test-asm-typer.cc View 1 2 3 4 5 12 chunks +30 lines, -28 lines 0 comments Download
M test/cctest/compiler/function-tester.cc View 2 chunks +2 lines, -4 lines 0 comments Download
M test/cctest/compiler/test-linkage.cc View 1 2 3 3 chunks +3 lines, -3 lines 0 comments Download
M test/cctest/compiler/test-loop-assignment-analysis.cc View 1 chunk +1 line, -1 line 0 comments Download
M test/cctest/compiler/test-run-bytecode-graph-builder.cc View 1 2 131 chunks +70 lines, -133 lines 0 comments Download
M test/cctest/parsing/test-preparser.cc View 1 2 3 4 5 6 2 chunks +2 lines, -3 lines 0 comments Download
M test/cctest/test-parsing.cc View 1 2 3 4 5 6 24 chunks +24 lines, -40 lines 0 comments Download
M test/fuzzer/parser.cc View 1 chunk +1 line, -2 lines 0 comments Download
M test/unittests/compiler-dispatcher/compiler-dispatcher-unittest.cc View 1 2 3 4 5 4 chunks +3 lines, -7 lines 0 comments Download
M test/unittests/compiler-dispatcher/optimizing-compile-dispatcher-unittest.cc View 1 2 3 4 5 3 chunks +1 line, -4 lines 0 comments Download
M tools/parser-shell.cc View 2 chunks +2 lines, -4 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 77 (47 generated)
rmcilroy
This is the first step in enabling eager inner function CompilerDispatcherJobs to keep the parse ...
3 years, 11 months ago (2017-01-17 15:18:17 UTC) #2
marja
I was worried about 1) coupling the Zone lifetime with ParseInfo's lifetime, but it looks ...
3 years, 11 months ago (2017-01-17 15:39:08 UTC) #3
marja
Hmm, looking at the call sites of ParseInfo::zone(), it's not very worrying; looks like all ...
3 years, 11 months ago (2017-01-17 15:44:54 UTC) #4
ahaas
On 2017/01/17 at 15:44:54, marja wrote: > Hmm, looking at the call sites of ParseInfo::zone(), ...
3 years, 11 months ago (2017-01-17 15:51:00 UTC) #5
Toon Verwaest
Actually seems reasonable to me. LGTM
3 years, 11 months ago (2017-01-18 09:00:51 UTC) #6
Michael Starzinger
LGTM on the compiler plumbing. My biggest worry is point (1) that Marja raised in ...
3 years, 11 months ago (2017-01-18 09:12:20 UTC) #7
rmcilroy
Thanks all. re 2): see comment on parse-info.h. https://codereview.chromium.org/2632123006/diff/1/src/asmjs/asm-wasm-builder.cc File src/asmjs/asm-wasm-builder.cc (right): https://codereview.chromium.org/2632123006/diff/1/src/asmjs/asm-wasm-builder.cc#newcode146 src/asmjs/asm-wasm-builder.cc:146: std::unique_ptr<ParseInfo> ...
3 years, 11 months ago (2017-01-19 12:48:29 UTC) #12
marja
still lgtm
3 years, 11 months ago (2017-01-19 12:54:48 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2632123006/40001
3 years, 11 months ago (2017-01-19 16:31:19 UTC) #20
commit-bot: I haz the power
Failed to apply patch for src/compiler.cc: While running git apply --index -p1; error: patch failed: ...
3 years, 11 months ago (2017-01-19 17:14:51 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2632123006/40001
3 years, 11 months ago (2017-01-19 18:15:26 UTC) #24
commit-bot: I haz the power
Failed to apply patch for src/compiler.cc: While running git apply --index -p1; error: patch failed: ...
3 years, 11 months ago (2017-01-19 18:17:49 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2632123006/60001
3 years, 11 months ago (2017-01-20 09:25:20 UTC) #33
commit-bot: I haz the power
Committed patchset #4 (id:60001) as https://chromium.googlesource.com/v8/v8/+/839b06b64fcaaaa9cceb2c3fd8fd5429e2932095
3 years, 11 months ago (2017-01-20 09:27:03 UTC) #36
rmcilroy
A revert of this CL (patchset #4 id:60001) has been created in https://codereview.chromium.org/2645613008/ by rmcilroy@chromium.org. ...
3 years, 11 months ago (2017-01-20 10:38:36 UTC) #37
rmcilroy
The issue was destructor order in CompilerJobDispatcher::ResetOnMainThread. Should be fixed now - relanding.
3 years, 11 months ago (2017-01-20 12:31:06 UTC) #40
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2632123006/100001
3 years, 11 months ago (2017-01-20 14:13:50 UTC) #47
commit-bot: I haz the power
Committed patchset #5 (id:100001) as https://chromium.googlesource.com/v8/v8/+/4b0101d369af121a6daf5e5c731cb939c026d526
3 years, 11 months ago (2017-01-20 14:15:34 UTC) #50
rmcilroy
Relanding this CL since it turned out not to be the cause of chromium:684481
3 years, 10 months ago (2017-02-07 12:32:58 UTC) #57
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2632123006/120001
3 years, 10 months ago (2017-02-07 12:33:15 UTC) #60
commit-bot: I haz the power
Committed patchset #6 (id:120001) as https://chromium.googlesource.com/v8/v8/+/14fb337200d5da09c77438ddd40bea935b1dc823
3 years, 10 months ago (2017-02-07 12:35:03 UTC) #63
jochen (gone - plz use gerrit)
A revert of this CL (patchset #6 id:120001) has been created in https://codereview.chromium.org/2685543003/ by jochen@chromium.org. ...
3 years, 10 months ago (2017-02-07 13:02:29 UTC) #64
Michael Achenbach
A revert of this CL (patchset #6 id:120001) has been created in https://codereview.chromium.org/2678393002/ by machenbach@chromium.org. ...
3 years, 10 months ago (2017-02-07 13:03:19 UTC) #65
rmcilroy
On 2017/02/07 13:03:19, Michael Achenbach wrote: > A revert of this CL (patchset #6 id:120001) ...
3 years, 10 months ago (2017-02-07 13:41:03 UTC) #66
rmcilroy
On 2017/02/07 13:03:19, Michael Achenbach wrote: > A revert of this CL (patchset #6 id:120001) ...
3 years, 10 months ago (2017-02-07 13:41:05 UTC) #67
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2632123006/140001
3 years, 10 months ago (2017-02-07 13:42:00 UTC) #71
marja
Right, commented (confused) on the revert but commenting here too: so it's a legit in-flight ...
3 years, 10 months ago (2017-02-07 13:44:09 UTC) #72
commit-bot: I haz the power
Committed patchset #7 (id:140001) as https://chromium.googlesource.com/v8/v8/+/9e7d5a6065470ca03411d4c8dbc61d1be5c3f84a
3 years, 10 months ago (2017-02-07 14:04:51 UTC) #75
Michael Hablich
A revert of this CL (patchset #7 id:140001) has been created in https://codereview.chromium.org/2683733002/ by hablich@chromium.org. ...
3 years, 10 months ago (2017-02-07 19:35:32 UTC) #76
rmcilroy
3 years, 10 months ago (2017-02-07 20:15:57 UTC) #77
Message was sent while issue was closed.
On 2017/02/07 19:35:32, Michael Hablich wrote:
> A revert of this CL (patchset #7 id:140001) has been created in
> https://codereview.chromium.org/2683733002/ by mailto:hablich@chromium.org.
> 
> The reason for reverting is: Speculative revert because of revert needed for
> https://codereview.chromium.org/2632123006.

Why was this revert needed? Description seems recursive (mentioning revert
needed for <this CL>).

Powered by Google App Engine
This is Rietveld 408576698