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

Issue 2223523002: [Interpreter] Avoid dereferencing handles on BytecodeGenerator for AST operations. (Closed)

Created:
4 years, 4 months ago by rmcilroy
Modified:
4 years, 4 months ago
Reviewers:
adamk, marja
CC:
v8-reviews_googlegroups.com, oth
Base URL:
https://chromium.googlesource.com/v8/v8.git@offheap_const_array
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[Interpreter] Avoid dereferencing handles on BytecodeGenerator for AST operations. Updates a number of AST operations to avoid dereferencing handles such that they can safely be called off-thread. Also adds a HandleDereferenceMode argument to some operations where handles are compared. If handle dereferencing is allowed, the handles are compared directly, if not then their locations are compared (which relies on the handles being created in a CanonicalHandleScope). BUG=v8:5203 TBR=adamk@chromium.org Committed: https://crrev.com/09e921d4c8ad734c1a6ade96228a60886ea5f19f Cr-Commit-Position: refs/heads/master@{#38526}

Patch Set 1 #

Total comments: 9

Patch Set 2 : Address comments #

Patch Set 3 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+167 lines, -61 lines) Patch
M src/api.cc View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M src/ast/ast.h View 1 2 6 chunks +33 lines, -11 lines 0 comments Download
M src/ast/ast.cc View 1 2 5 chunks +14 lines, -18 lines 0 comments Download
M src/ast/ast-value-factory.h View 1 2 2 chunks +4 lines, -2 lines 0 comments Download
M src/ast/ast-value-factory.cc View 1 2 3 chunks +6 lines, -6 lines 0 comments Download
M src/ast/variables.h View 1 3 chunks +30 lines, -8 lines 0 comments Download
M src/compiler.cc View 1 2 2 chunks +4 lines, -6 lines 0 comments Download
M src/compiler-dispatcher/compiler-dispatcher-job.cc View 1 1 chunk +6 lines, -0 lines 0 comments Download
M src/globals.h View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M src/interpreter/bytecode-array-writer.cc View 2 chunks +4 lines, -0 lines 0 comments Download
M src/interpreter/bytecode-generator.cc View 1 2 13 chunks +39 lines, -10 lines 0 comments Download
M src/interpreter/bytecode-peephole-optimizer.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M test/cctest/test-api.cc View 1 2 1 chunk +18 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 35 (23 generated)
rmcilroy
Adam, could you take a look please? Thanks.
4 years, 4 months ago (2016-08-05 17:06:39 UTC) #9
adamk
This looks fine to me, but I think marja is probably a better reviewer for ...
4 years, 4 months ago (2016-08-05 18:38:10 UTC) #11
marja
https://codereview.chromium.org/2223523002/diff/20001/src/ast/ast-value-factory.cc File src/ast/ast-value-factory.cc (right): https://codereview.chromium.org/2223523002/diff/20001/src/ast/ast-value-factory.cc#newcode272 src/ast/ast-value-factory.cc:272: This code snippet seems to be on a wrong ...
4 years, 4 months ago (2016-08-08 08:20:13 UTC) #12
rmcilroy
Thanks for the comments, PTAL. https://codereview.chromium.org/2223523002/diff/20001/src/ast/ast-value-factory.cc File src/ast/ast-value-factory.cc (right): https://codereview.chromium.org/2223523002/diff/20001/src/ast/ast-value-factory.cc#newcode272 src/ast/ast-value-factory.cc:272: On 2016/08/08 08:20:13, marja ...
4 years, 4 months ago (2016-08-08 13:05:56 UTC) #15
marja
lgtm Some offline discussion: This CL gives the same background thread <-> Isolate / Heap ...
4 years, 4 months ago (2016-08-09 08:33:26 UTC) #22
rmcilroy
On 2016/08/09 08:33:26, marja wrote: > lgtm > > Some offline discussion: > > This ...
4 years, 4 months ago (2016-08-10 08:53:30 UTC) #23
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/2223523002/60001
4 years, 4 months ago (2016-08-10 08:53:51 UTC) #25
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/21491)
4 years, 4 months ago (2016-08-10 09:03:33 UTC) #27
rmcilroy
I still need an lg from an AST owner. TBRing Adam since he thought it ...
4 years, 4 months ago (2016-08-10 09:29:15 UTC) #28
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/2223523002/60001
4 years, 4 months ago (2016-08-10 09:29:53 UTC) #31
commit-bot: I haz the power
Committed patchset #3 (id:60001)
4 years, 4 months ago (2016-08-10 09:33:06 UTC) #33
commit-bot: I haz the power
4 years, 4 months ago (2016-08-10 09:33:26 UTC) #35
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/09e921d4c8ad734c1a6ade96228a60886ea5f19f
Cr-Commit-Position: refs/heads/master@{#38526}

Powered by Google App Engine
This is Rietveld 408576698