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

Issue 2645403002: [Compiler] Enable use of seperate zones for parsing and compiling. (Closed)

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

Description

[Compiler] Enable use of seperate zones for parsing and compiling. In order to allow parallel compilation of eager inner functions, we need to seperate the zone used for parsing (which will be shared between all the parallel compile jobs) and the zone used for compilation. This CL changes CompilationInfo to require a zone (which can be different from the zone in ParseInfo). We then seal the ParseInfo zone after parsing and analysis is done to prevent any further allocation in that zone, so that it can be shared (read-only) with the parallel compile jobs. BUG=v8:5203 Review-Url: https://codereview.chromium.org/2645403002 Cr-Commit-Position: refs/heads/master@{#43089} Committed: https://chromium.googlesource.com/v8/v8/+/1fc93f2e2d33aaa0424901d0187a2548bc5051fc

Patch Set 1 #

Total comments: 3

Patch Set 2 : Address comments #

Patch Set 3 : Rebase #

Total comments: 4

Patch Set 4 : Add back header #

Unified diffs Side-by-side diffs Delta from patch set Stats (+107 lines, -58 lines) Patch
M src/compilation-info.h View 1 1 chunk +2 lines, -1 line 0 comments Download
M src/compilation-info.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download
M src/compiler.cc View 1 2 3 18 chunks +78 lines, -37 lines 0 comments Download
M src/compiler-dispatcher/compiler-dispatcher-job.h View 1 1 chunk +0 lines, -1 line 0 comments Download
M src/compiler-dispatcher/compiler-dispatcher-job.cc View 1 2 chunks +4 lines, -4 lines 0 comments Download
M src/compiler/js-inlining.cc View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M src/compiler/pipeline.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M src/crankshaft/hydrogen.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M src/crankshaft/hydrogen.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M src/zone/zone.h View 1 2 chunks +4 lines, -0 lines 0 comments Download
M src/zone/zone.cc View 1 2 chunks +4 lines, -1 line 0 comments Download
M test/cctest/compiler/function-tester.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M test/cctest/compiler/test-linkage.cc View 1 3 chunks +3 lines, -3 lines 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/compiler/test-run-bytecode-graph-builder.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M test/unittests/compiler-dispatcher/optimizing-compile-dispatcher-unittest.cc View 1 1 chunk +1 line, -1 line 0 comments Download

Dependent Patchsets:

Messages

Total messages: 31 (22 generated)
rmcilroy
mstarzinger@chromium.org: Please review changes in *compiler* verwaest@chromium.org: Please review changes in zone/ and crankshaft/ https://codereview.chromium.org/2645403002/diff/20001/src/compiler.cc ...
3 years, 11 months ago (2017-01-23 15:54:35 UTC) #7
Toon Verwaest
https://codereview.chromium.org/2645403002/diff/20001/src/crankshaft/hydrogen.h File src/crankshaft/hydrogen.h (right): https://codereview.chromium.org/2645403002/diff/20001/src/crankshaft/hydrogen.h#newcode41 src/crankshaft/hydrogen.h:41: compile_zone_(function->GetIsolate()->allocator(), ZONE_NAME), Is there value to creating separate zones ...
3 years, 11 months ago (2017-01-26 21:24:47 UTC) #10
rmcilroy
Comment addressed, PTAL, thanks. https://codereview.chromium.org/2645403002/diff/20001/src/crankshaft/hydrogen.h File src/crankshaft/hydrogen.h (right): https://codereview.chromium.org/2645403002/diff/20001/src/crankshaft/hydrogen.h#newcode41 src/crankshaft/hydrogen.h:41: compile_zone_(function->GetIsolate()->allocator(), ZONE_NAME), On 2017/01/26 21:24:47, ...
3 years, 10 months ago (2017-02-07 12:41:53 UTC) #13
rmcilroy
Ping?
3 years, 10 months ago (2017-02-08 17:28:54 UTC) #22
Michael Starzinger
LGTM from my end. https://codereview.chromium.org/2645403002/diff/60001/src/compiler.cc File src/compiler.cc (right): https://codereview.chromium.org/2645403002/diff/60001/src/compiler.cc#newcode1275 src/compiler.cc:1275: DCHECK(function->shared()->is_compiled()); Nice! Glad this finally ...
3 years, 10 months ago (2017-02-09 14:23:31 UTC) #23
rmcilroy
Toon, could you review for Crankshaft please? https://codereview.chromium.org/2645403002/diff/60001/src/compiler.cc File src/compiler.cc (right): https://codereview.chromium.org/2645403002/diff/60001/src/compiler.cc#newcode1275 src/compiler.cc:1275: DCHECK(function->shared()->is_compiled()); On ...
3 years, 10 months ago (2017-02-09 15:03:04 UTC) #24
Toon Verwaest
lgtm
3 years, 10 months ago (2017-02-10 08:30:57 UTC) #25
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/2645403002/80001
3 years, 10 months ago (2017-02-10 09:28:41 UTC) #28
commit-bot: I haz the power
3 years, 10 months ago (2017-02-10 09:55:29 UTC) #31
Message was sent while issue was closed.
Committed patchset #4 (id:80001) as
https://chromium.googlesource.com/v8/v8/+/1fc93f2e2d33aaa0424901d0187a2548bc5...

Powered by Google App Engine
This is Rietveld 408576698