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

Issue 2611313002: [complier] Enable parallel eager inner function compilation with compiler dispatcher. (Closed)

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

Description

[complier] Enable parallel eager inner function compilation with compiler dispatcher. Enable enqueueing of eager inner function compilation onto the compiler dispatcher. This enables these tasks to be performed in parallel to compilation of the outer functio (only for Ignition functions). We currently synchronize to ensure all inner function compilations are complete before executing the outer function - future work will allow outer function execution to happenin parallel to inner function compilation. BUG=v8:5203, v8:5215 Review-Url: https://codereview.chromium.org/2611313002 Cr-Commit-Position: refs/heads/master@{#42667} Committed: https://chromium.googlesource.com/v8/v8/+/6d42c4504a2522e235975a0189c0bd90b6fde47f

Patch Set 1 #

Total comments: 14

Patch Set 2 : Address comments #

Patch Set 3 : Move flag #

Total comments: 7

Patch Set 4 : Fix tests #

Patch Set 5 : Fix tests #

Patch Set 6 : Remove need for ast-value-factory #

Patch Set 7 : Rebase #

Patch Set 8 : Rebase #

Patch Set 9 : Remove --ignition-filter from tests #

Patch Set 10 : Fix test #

Patch Set 11 : Rebase #

Patch Set 12 : Rebase #

Patch Set 13 : Rebase and depend on stack size change #

Patch Set 14 : Rebase #

Patch Set 15 : Add counter for wait time #

Patch Set 16 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+388 lines, -86 lines) Patch
M src/compiler.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -1 line 0 comments Download
M src/compiler.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 9 chunks +72 lines, -36 lines 0 comments Download
M src/compiler-dispatcher/compiler-dispatcher.h View 1 2 3 4 5 6 5 chunks +24 lines, -3 lines 0 comments Download
M src/compiler-dispatcher/compiler-dispatcher.cc View 1 2 3 4 5 6 9 chunks +84 lines, -13 lines 0 comments Download
M src/compiler-dispatcher/compiler-dispatcher-job.h View 1 2 3 4 5 6 12 13 5 chunks +16 lines, -4 lines 0 comments Download
M src/compiler-dispatcher/compiler-dispatcher-job.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 5 chunks +57 lines, -12 lines 0 comments Download
M src/compiler-dispatcher/compiler-dispatcher-tracer.h View 1 4 chunks +4 lines, -0 lines 0 comments Download
M src/compiler-dispatcher/compiler-dispatcher-tracer.cc View 1 5 chunks +20 lines, -4 lines 0 comments Download
M src/counters.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -1 line 0 comments Download
M test/debugger/debug/ignition/debug-step-prefix-bytecodes.js View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -2 lines 0 comments Download
M test/debugger/debug/ignition/debugger-statement.js View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -2 lines 0 comments Download
M test/mjsunit/ignition/stack-trace-source-position.js View 1 2 3 4 5 6 7 8 9 2 chunks +3 lines, -4 lines 0 comments Download
M test/mjsunit/regress/regress-618657.js View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M test/unittests/compiler-dispatcher/compiler-dispatcher-job-unittest.cc View 1 2 3 4 5 6 8 chunks +10 lines, -3 lines 0 comments Download
M test/unittests/compiler-dispatcher/compiler-dispatcher-unittest.cc View 1 2 3 4 5 6 12 13 2 chunks +95 lines, -0 lines 0 comments Download

Messages

Total messages: 91 (71 generated)
rmcilroy
This is still very much a WIP (it needs tests and probably some tweaks to ...
3 years, 11 months ago (2017-01-06 17:14:29 UTC) #6
marja
Some initial comments: https://codereview.chromium.org/2611313002/diff/1/src/compiler-dispatcher/compiler-dispatcher.cc File src/compiler-dispatcher/compiler-dispatcher.cc (left): https://codereview.chromium.org/2611313002/diff/1/src/compiler-dispatcher/compiler-dispatcher.cc#oldcode343 src/compiler-dispatcher/compiler-dispatcher.cc:343: return; Why? https://codereview.chromium.org/2611313002/diff/1/src/compiler-dispatcher/compiler-dispatcher.cc File src/compiler-dispatcher/compiler-dispatcher.cc (right): ...
3 years, 11 months ago (2017-01-10 09:58:54 UTC) #7
jochen (gone - plz use gerrit)
https://codereview.chromium.org/2611313002/diff/1/src/compiler-dispatcher/compiler-dispatcher.h File src/compiler-dispatcher/compiler-dispatcher.h (right): https://codereview.chromium.org/2611313002/diff/1/src/compiler-dispatcher/compiler-dispatcher.h#newcode84 src/compiler-dispatcher/compiler-dispatcher.h:84: bool Enqueue(Zone* zone, ParseInfo* parse_info, CompilationInfo* compile_info, I wonder ...
3 years, 11 months ago (2017-01-10 09:59:47 UTC) #8
rmcilroy
Changed the API to have the CompilerDispatcherJob now create and own ParseInfo and CompilationInfo. This ...
3 years, 11 months ago (2017-01-12 12:31:55 UTC) #18
jochen (gone - plz use gerrit)
https://codereview.chromium.org/2611313002/diff/80001/src/compiler-dispatcher/compiler-dispatcher.cc File src/compiler-dispatcher/compiler-dispatcher.cc (right): https://codereview.chromium.org/2611313002/diff/80001/src/compiler-dispatcher/compiler-dispatcher.cc#newcode395 src/compiler-dispatcher/compiler-dispatcher.cc:395: result &= FinishNow(it.second.get()); does that work? FinishNow() should delete ...
3 years, 11 months ago (2017-01-12 13:13:36 UTC) #22
rmcilroy
https://codereview.chromium.org/2611313002/diff/80001/src/compiler-dispatcher/compiler-dispatcher.cc File src/compiler-dispatcher/compiler-dispatcher.cc (right): https://codereview.chromium.org/2611313002/diff/80001/src/compiler-dispatcher/compiler-dispatcher.cc#newcode395 src/compiler-dispatcher/compiler-dispatcher.cc:395: result &= FinishNow(it.second.get()); On 2017/01/12 13:13:36, jochen wrote: > ...
3 years, 11 months ago (2017-01-12 13:59:47 UTC) #23
jochen (gone - plz use gerrit)
compiler-dispatcher/ lgtm
3 years, 11 months ago (2017-01-12 15:41:17 UTC) #24
Michael Starzinger
LGTM on compiler plumbing, didn't look at the rest.
3 years, 11 months ago (2017-01-12 15:49:34 UTC) #25
marja
I can haz a question: https://codereview.chromium.org/2611313002/diff/80001/src/compiler-dispatcher/compiler-dispatcher.cc File src/compiler-dispatcher/compiler-dispatcher.cc (right): https://codereview.chromium.org/2611313002/diff/80001/src/compiler-dispatcher/compiler-dispatcher.cc#newcode292 src/compiler-dispatcher/compiler-dispatcher.cc:292: AstValueFactory* ast_value_factory) { So ...
3 years, 11 months ago (2017-01-12 16:07:33 UTC) #26
rmcilroy
https://codereview.chromium.org/2611313002/diff/80001/src/compiler-dispatcher/compiler-dispatcher.cc File src/compiler-dispatcher/compiler-dispatcher.cc (right): https://codereview.chromium.org/2611313002/diff/80001/src/compiler-dispatcher/compiler-dispatcher.cc#newcode292 src/compiler-dispatcher/compiler-dispatcher.cc:292: AstValueFactory* ast_value_factory) { On 2017/01/12 16:07:33, marja wrote: > ...
3 years, 11 months ago (2017-01-13 11:28:02 UTC) #31
rmcilroy
https://codereview.chromium.org/2611313002/diff/80001/src/compiler-dispatcher/compiler-dispatcher.cc File src/compiler-dispatcher/compiler-dispatcher.cc (right): https://codereview.chromium.org/2611313002/diff/80001/src/compiler-dispatcher/compiler-dispatcher.cc#newcode292 src/compiler-dispatcher/compiler-dispatcher.cc:292: AstValueFactory* ast_value_factory) { On 2017/01/13 11:28:02, rmcilroy wrote: > ...
3 years, 11 months ago (2017-01-16 14:18:25 UTC) #38
marja
lgtm
3 years, 11 months ago (2017-01-16 15:09:12 UTC) #46
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/2611313002/240001
3 years, 11 months ago (2017-01-17 14:19:26 UTC) #61
commit-bot: I haz the power
Try jobs failed on following builders: v8_presubmit on master.tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_presubmit/builds/32562)
3 years, 11 months ago (2017-01-17 14:22:17 UTC) #63
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/2611313002/260001
3 years, 11 months ago (2017-01-17 14:27:26 UTC) #66
commit-bot: I haz the power
Committed patchset #11 (id:260001) as https://chromium.googlesource.com/v8/v8/+/f12661a1ece4e9c9cb8df5c2d349db960356e604
3 years, 11 months ago (2017-01-17 14:56:56 UTC) #69
Michael Achenbach
A revert of this CL (patchset #11 id:260001) has been created in https://codereview.chromium.org/2637123002/ by machenbach@chromium.org. ...
3 years, 11 months ago (2017-01-17 15:28:30 UTC) #70
rmcilroy
On 2017/01/17 15:28:30, Michael Achenbach wrote: > A revert of this CL (patchset #11 id:260001) ...
3 years, 11 months ago (2017-01-17 15:31:24 UTC) #71
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/2611313002/360001
3 years, 11 months ago (2017-01-25 22:40:01 UTC) #88
commit-bot: I haz the power
3 years, 11 months ago (2017-01-25 22:42:05 UTC) #91
Message was sent while issue was closed.
Committed patchset #16 (id:360001) as
https://chromium.googlesource.com/v8/v8/+/6d42c4504a2522e235975a0189c0bd90b6f...

Powered by Google App Engine
This is Rietveld 408576698