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

Issue 2650883002: Reland: [Compiler] Enable handles created during parsing and scope analysis to be deferred. (Closed)

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

Description

Reland: [Compiler] Enable handles created during parsing and scope analysis to be deferred. In order to compile eager inner functions on a background thread we need to keep the handles created during parsing and scope analysis alive until the background compilation is complete. In order to do that, we allocate the handles in a deferred handle scope and keep the deferred handles alive with a shared_ptr in the ParseInfo and CompileInfo respectively. BUG=v8:5203 Review-Url: https://codereview.chromium.org/2650883002 Cr-Commit-Position: refs/heads/master@{#43107} Committed: https://chromium.googlesource.com/v8/v8/+/0a9d4a3b0c8097dc39ec95f7ab750b59e29cbc8a

Patch Set 1 #

Patch Set 2 : Fix handle check #

Patch Set 3 : shared_ptr and don't reopen handles #

Patch Set 4 : Add scope analysis #

Patch Set 5 : Move error handling out of internalization #

Patch Set 6 : Add test. #

Patch Set 7 : Fix Windows #

Patch Set 8 : And DeferredHandles #

Patch Set 9 : Remove unused variable #

Unified diffs Side-by-side diffs Delta from patch set Stats (+262 lines, -109 lines) Patch
M src/api.h View 1 2 3 4 5 6 7 1 chunk +1 line, -2 lines 0 comments Download
M src/api.cc View 1 2 3 4 5 1 chunk +12 lines, -5 lines 0 comments Download
M src/compilation-info.h View 1 2 3 2 chunks +5 lines, -4 lines 0 comments Download
M src/compilation-info.cc View 1 2 3 2 chunks +14 lines, -2 lines 0 comments Download
M src/compiler.cc View 1 2 3 4 5 7 chunks +54 lines, -12 lines 0 comments Download
M src/compiler-dispatcher/compiler-dispatcher.h View 1 2 3 2 chunks +10 lines, -2 lines 0 comments Download
M src/compiler-dispatcher/compiler-dispatcher.cc View 1 2 3 3 chunks +15 lines, -6 lines 0 comments Download
M src/compiler-dispatcher/compiler-dispatcher-job.h View 1 2 3 3 chunks +9 lines, -2 lines 0 comments Download
M src/compiler-dispatcher/compiler-dispatcher-job.cc View 1 2 3 4 6 chunks +21 lines, -19 lines 0 comments Download
M src/handles.h View 1 2 3 4 5 6 1 chunk +1 line, -2 lines 0 comments Download
M src/parsing/parse-info.h View 1 2 3 4 chunks +14 lines, -2 lines 0 comments Download
M src/parsing/parse-info.cc View 1 2 3 3 chunks +14 lines, -1 line 0 comments Download
M src/parsing/parser.h View 1 2 3 4 1 chunk +6 lines, -5 lines 0 comments Download
M src/parsing/parser.cc View 1 2 3 4 1 chunk +10 lines, -13 lines 0 comments Download
M src/parsing/parsing.h View 1 2 3 4 1 chunk +8 lines, -6 lines 0 comments Download
M src/parsing/parsing.cc View 1 2 3 4 3 chunks +19 lines, -7 lines 0 comments Download
M src/pending-compilation-error-handler.h View 1 2 3 4 2 chunks +0 lines, -15 lines 0 comments Download
M src/pending-compilation-error-handler.cc View 1 2 3 4 1 chunk +0 lines, -1 line 0 comments Download
M test/unittests/compiler-dispatcher/compiler-dispatcher-unittest.cc View 1 2 3 4 5 6 7 8 5 chunks +49 lines, -3 lines 0 comments Download

Depends on Patchset:

Dependent Patchsets:

Messages

Total messages: 54 (44 generated)
rmcilroy
Marja, PTAL. This is the next step in enabling off-thread compilation. I had to decouple ...
3 years, 10 months ago (2017-02-07 17:27:09 UTC) #21
marja
lgtm
3 years, 10 months ago (2017-02-08 09:50:30 UTC) #24
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/2650883002/160001
3 years, 10 months ago (2017-02-10 10:29:14 UTC) #38
commit-bot: I haz the power
Try jobs failed on following builders: v8_linux64_gyp_rel_ng on master.tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_linux64_gyp_rel_ng/builds/12809)
3 years, 10 months ago (2017-02-10 10:37:45 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/2650883002/180001
3 years, 10 months ago (2017-02-10 11:23:53 UTC) #43
commit-bot: I haz the power
Committed patchset #9 (id:180001) as https://chromium.googlesource.com/v8/v8/+/9346cd9b4c50466aa8d50e98c56b84ba47c2a115
3 years, 10 months ago (2017-02-10 11:46:20 UTC) #46
rmcilroy
A revert of this CL (patchset #9 id:180001) has been created in https://codereview.chromium.org/2687973003/ by rmcilroy@chromium.org. ...
3 years, 10 months ago (2017-02-10 12:30:06 UTC) #47
rmcilroy
On 2017/02/10 12:30:06, rmcilroy wrote: > A revert of this CL (patchset #9 id:180001) has ...
3 years, 10 months ago (2017-02-10 14:58:56 UTC) #49
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/2650883002/180001
3 years, 10 months ago (2017-02-10 14:59:11 UTC) #51
commit-bot: I haz the power
3 years, 10 months ago (2017-02-10 15:01:36 UTC) #54
Message was sent while issue was closed.
Committed patchset #9 (id:180001) as
https://chromium.googlesource.com/v8/v8/+/0a9d4a3b0c8097dc39ec95f7ab750b59e29...

Powered by Google App Engine
This is Rietveld 408576698